Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: cavagnaro on May 15, 2009, 04:58:48 AM
-
Hi guys,
Does anybody has a example on how does a OBN bulk has to feeded?
Docu says:
obnbulk=<xml version='1.0'>....
I have to send the variable with that data or I have to attach a xml file with that data? Any example? Documentation says something but I don't understand it ???
Thanks
-
Hi,
There are two ways how to send data from client using HTTP protocol - GET and POST. Using GET means that all data are part of URL (http://...server.../page.asp?param1=value1¶m2=value2...). Using POST means that data are part of body of HTTP request. That is the theory ;)
I don't have live experience with OBN but my understanding is that for OBN bulk you should "combine" these method. Of course, it isn't possible but you can still pass some parameters as part of URL even using POST. So you request should look like:
[code]POST /obninterface.php?notifyprocess=obnmanager&action=trigger HTTP/1.0
From: xxx@xxx.com
User-Agent: IE
Content-Type: application/x-www-form-urlencoded
Content-Length: 1024
obnbulk=<xml version='1.0'>....[/code]
Hope it helps you a bit
R.
-
Hi René,
That is what I also thought, but while practicing it was not. The documentation mentions "post data" but doesn't means that it has to be on POST (HTTP) because while reviewing the code of the application I found a variable "postdata" and pulled the obnbulk variable. However everytime I send it, it says "Invalid XML Format"...I found that the digest is done by the obn executable itself so I can't see which is the process it is doing...I'm stuck there.
Thanks
-
Hi Cav,
I don't have access to GVP now so just guessing... Could you try following format:
[code]POST /obninterface.php?notifyprocess=obnmanager&action=trigger&obnbulk= HTTP/1.0
From: xxx@xxx.com
User-Agent: IE
Content-Type: application/x-www-form-urlencoded
Content-Length: 1024
<xml version='1.0'>....[/code]
If it doesn't help then try "<?xml version='1.0' ?>" instead of "<xml version='1.0'>"
R.