Web Service Problem

From: Date: Tue, 15 Jun 2010 11:44:55 +0000
Subject: Web Service Problem
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-8371@lists.php.net to get a copy of this message
Really i need help coz i am trying to solve this problem from 4 weeks and i can not so please help me I want to use a web service ( created in ASP.NEt ) in my web site using php coz i will use the result in other php pages. the web service link is: <http://196.218.16.133/onlinereservation/service.asmx?WSDL> http://196.218.16.133/onlinereservation/service.asmx?WSDL function name: HotelData under HotelsSearch Is there a tool for PHP or any other way to pass string for HotelData and get an XML file containing the result? I tried to learn SOAP in the manual and I can not till now return data from this web service My Code is: <? header("Content-Type: text/plain"); $client = new SOAPClient('http://196.218.16.133/OnlineReservationTravelline/service.asmx?W SDL'); try { $params->HotelData = '<HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPasswo rd>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</Date To><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1 </Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></ Room><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1 </ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSeri al><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></Hotels Parameters>'; $result = $client->HotelsSearch($params); //echo $result; } catch (SOAPFault $exception) { print $exception; print htmlspecialchars($client->__getLastRequest()); } var_dump($result); ?> Note: the string is ' <HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPasswor d>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</DateT o><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1< /Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></R oom><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1< /ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSeria l><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></HotelsP arameters>' graphicano John Zakaria Sabry Senior Web Developer 3 El Nasr Street, EL Nozha EL Gedida, Heliopolis, Cairo, Egypt Phone: +202 262 00 755 - +2 012 551 5551 Fax: +202 262 00 755 Mobile: +2 018 131 91 89 <mailto:john.zakaria@graphicano.com> john.zakaria@graphicano.com <http://www.graphicano.com> www.graphicano.com

« previous php.webmaster (#8371) next »