Re: [SOAP] PHP5 soapenc:arrayType support?
| From: | David Zülke | Date: | Tue, 30 Dec 2008 13:15:12 +0000 |
| Subject: | Re: [SOAP] PHP5 soapenc:arrayType support? | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2868@lists.php.net to get a copy of this message | ||
What exactly is the problem? This array stuff definitely works in ext/soap.
- David
On 13.12.2008, at 21:25, Landon Chelf wrote:
I'm trying to use the SOAP extension of PHP5 and I'm having trouble being able to add a parameter to satisfy the soap array rooms. I've googled and read and I've not found a solution. I can do the rest of the components but not the rooms part due to it containing a soap array. Does anyone have a solution to this using the php5 native soap client calls? Down below has the section that I'm having trouble with. Thanks in advance to anyone that can help. <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:room="http://room.hotel.xml.travelnow.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <soapenv:Header/> <soapenv:Body><room:getPropertyAvailabilitysoapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><request xsi:type="room:PropertyAvailabilityRequest"> <currencyCode xsi:type="xsd:string">USD</currencyCode> <hotelId xsi:type="xsd:long">112583</hotelId> <arrivalDate xsi:type="xsd:string">12/25/2008</arrivalDate> <departureDate xsi:type="xsd:string">12/26/2008</departureDate><!----- THIS SECTION ------><rooms xsi:type="com:RoomGroup"xmlns:com="http://common.xml.travelnow.com"> <rooms xsi:type="com:ArrayOf_tns_Room" soapenc:arrayType="com:Room[]"> <room> <numberOfAdults>2</numberOfAdults> <numberOfChildren>0</numberOfChildren> </room> <room> <numberOfAdults>2</numberOfAdults> <numberOfChildren>0</numberOfChildren> </room> </rooms></rooms><!---- END SECTION -------></request> </room:getPropertyAvailability></soapenv:Body> </soapenv:Envelope> Landon --PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php