Re: SOAP, WSDL, Lit+Documents and multi-node lists
| From: | Paul Wright | Date: | Thu, 17 Mar 2005 09:12:05 +0000 |
| Subject: | Re: SOAP, WSDL, Lit+Documents and multi-node lists | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18099@lists.php.net to get a copy of this message | ||
On Tue, 15 Mar 2005 23:29:16 -0500, Chuck Hagenbuch <chuck@horde.org> wrote:
> 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>
> > <RoomID>1</RoomID>
> > <NumRooms>3</NumRooms>
> > </RoomRequest>
> > <RoomRequest>
> > <RoomID>2</RoomID>
> > <NumRooms>1</NumRooms>
> > </RoomRequest>
> > </Requests>
>
> $request = &new SOAP_Value('Requests', 'struct',
> array(new SOAP_Value('RoomRequest', 'struct',
> 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.
Great, thanks for this it actually works compared to all the other
suggestions google threw up!
Paul.