I am trying to retrieve from an xml file which holds list of the hotel bookings, using zend library called xmlrpc. This is the code:
$client = new Zend_XmlRpc_Client('http://username:password@distribution-xml.booking.com/xml-rpc');
$service = $client->getProxy();
$hotels = $service->bookings->getHotels();
How can I pass some parameters to the getHotels method?
I have done it! Just pass the parameters in an associative array like this:
$client = new Zend_XmlRpc_Client('http://username:password@distribution-xml.booking.com/xml-rpc');
$content = array(
'paramname' => array(paramvalues)
);
$service = $client->getProxy();
$hotels=$service->bookings->getHotels($content);
;)