Go to All Forums

Monitor XML API

Hi,

I need to setup a simple call XML to an API.
I try it but I have this error : API has configuration error. Please check the configuration details. URI doesn't exist.

you find here my setup.


Could you help me to setup it ?

In PHP, call is :

$xml_post = "<FB_MultirateRQ><Header Login=\"DIRECTLINK\" Password=\"M2JnoY15\"/><Criteria Currency=\"EUR\" Language=\"fr\" NbAdults=\"2\" NbChildren=\"0\" ArrivalDate=\"2015-12-20\" NbDays=\"1\" HnumList=\"FRFR0101\" AccessCode=\"\"><Option Code=\"noHidePrice\"/><Option Code=\"noOnRequest\"/><Option Code=\"noGeoPricing\"/><Option Code=\"noRestrictions\"/><Option Code=\"withAllPromotionRates\"/><Option Code=\"withPriceOptions\"/><Option Code=\"withAllRooms\"/><Option Code=\"withTaxDetails\"/><Option Code=\"withRoomDescriptions\"/><Option Code=\"withPromotionDescription\"/><Option Code=\"withSalesConditions\"/></Criteria></FB_MultirateRQ>";
$ch = curl_init(" http://xml3.fastbooking.com/PORTAL/sites/xmlgen/" );
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, stripslashes($xml_post));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));
curl_setopt($ch, CURLOPT_ENCODING, "gzip");

curl_setopt($ch, CURLOPT_USERAGENT, "DIRECTLINK");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, XML_REQUEST_TIME_OUT / 1000);
curl_setopt($ch, CURLOPT_HEADER, False);
Like (1) Reply
Replies (4)

Hi,

Choose Request Body as "XML" under "HTTP Configuration" and Save the monitor.

Let us know if you still have issue after the above change.

Raghavan
Like (0) Reply

Sorry, it doesn't change anything.
Like (0) Reply

Sorry for the delay in response. I am trying to set it up in my account. I will get back to you with proper solution by tomorrow.


Like (0) Reply

Hi,

Does this URL requires Authentication or any IP based restriction in place. We were not able to load the page via browser too. Kindly confirm on this.


Like (0) Reply

Was this post helpful?