Jump to content

PHP: working with arzoo api


Recommended Posts

I've tried all day looking for the official documentation for the Arzoo api but didn't find one.. all i can see from the net is code examples(like the one below) from people and following that isn't really helpful

<?php    $location_URL = "";$action_URL ="http://com.arzoo.flight.avail";$client = new SoapClient('', array('soap_version' => SOAP_1_1,'location' => $location_URL,'uri'      => $action_URL,'style'    => SOAP_RPC,'use'      => SOAP_ENCODED,'trace'    => 1,));$request = array('Request'=>array('Origin' => 'BOM','Destination' => 'DEL','DepartDate' => '2013-09-05','ReturnDate' => '2013-09-06','AdultPax' => '1','ChildPax' => '0','InfantPax' => '0','Currency' => 'INR','Clientid' => '777xxxx','Clientpassword' => '*5AF72AA053B7823D8EBBFE696080C9AD6B3DF69A','Clienttype' => 'ArzooFWS1.0','Preferredclass' => 'E','mode' => 'ONE','PreferredAirline' => 'AI,G8,IC,6E,9W,S2,IT,9H,I7,SG'));try{    $result = $client->__call('getAvailability',$request);    $response= htmlentities($result);}catch(Exception $e){    echo "<h2>Exception Error!</h2>";    echo $e->getMessage();}var_dump($response);?>

i want to use the Arzoo api to look up hotel and air ticket prices..any references on the official documentation of Arzoo api or any relevant material would be helpful


Link to comment
Share on other sites

Have you went to the WSDL page with a SOAP browser to see the defined methods?  Unfortunately, SOAP is something you have to learn.  Not quite something most people will code for you.  Just go and click on the part you want to do.  It will tell you the fields and what you can request.


Again, there is a learning curve to SOAP, but there are tons of resources out there to help you learn it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.