Harun Posted February 21, 2014 Share Posted February 21, 2014 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 = "http://59.162.33.102/ArzooWS/services/DOMFlightAvailability";$action_URL ="http://com.arzoo.flight.avail";$client = new SoapClient('http://59.162.33.102/ArzooWS/services/DOMFlightAvailability?wsdl', 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 Quote Link to comment https://forums.phpfreaks.com/topic/286368-php-working-with-arzoo-api/ Share on other sites More sharing options...
jonsjava Posted February 24, 2014 Share Posted February 24, 2014 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 http://59.162.33.102/ArzooWS/services/DOMFlightAvailability%22 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. Quote Link to comment https://forums.phpfreaks.com/topic/286368-php-working-with-arzoo-api/#findComment-1470343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.