" /> OBN bulk - Genesys CTI User Forum

Author Topic: OBN bulk  (Read 3112 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
OBN bulk
« on: May 15, 2009, 04:58:48 AM »
Advertisement
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: OBN bulk
« Reply #1 on: May 15, 2009, 04:26:27 PM »
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&param2=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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OBN bulk
« Reply #2 on: May 15, 2009, 04:50:11 PM »
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: OBN bulk
« Reply #3 on: May 18, 2009, 05:29:50 PM »
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.