Re: SOAP, WSDL, Lit+Documents and multi-node lists
| From: | Chuck Hagenbuch | Date: | Wed, 16 Mar 2005 04:29:16 +0000 |
| Subject: | Re: SOAP, WSDL, Lit+Documents and multi-node lists | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18077@lists.php.net to get a copy of this message | ||
Quoting Paul Wright <wrighty@gmail.com>:
I have used the resulting $client without problem, except now. I need to pass parameters to a method in some way so that the client will create the following snippet of xml in the soap request: <Requests> <RoomRequest>$request = &new SOAP_Value('Requests', 'struct', array(new SOAP_Value('RoomRequest', 'struct',<RoomID>1</RoomID> <NumRooms>3</NumRooms></RoomRequest> <RoomRequest><RoomID>2</RoomID> <NumRooms>1</NumRooms></RoomRequest> </Requests>
array(new SOAP_Value('RoomID', '', 1),
new SOAP_Value('NumRooms', '', 3))),
new SOAP_Value('RoomRequest', 'struct',
array(new SOAP_Value('RoomID', '', 2),
new SOAP_Value('NumRooms', '', 1)))));
echo $request->serialize($client);
Should do the trick.
-chuck
--
"But she goes not abroad in search of monsters to destroy." - John
Quincy Adams