Monitor XML API
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);