RE: [PEAR] Requesting a webservice...

From: Date: Wed, 10 Dec 2003 11:21:01 +0000
Subject: RE: [PEAR] Requesting a webservice...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9447@lists.php.net to get a copy of this message
> -----Original Message----- > From: Dennis T. [mailto:viol8r@nospam.dk] > > Hey, > > I haven't found an example of this anywhere, so i'm hoping > somebody here can > help me... > > > > The call in php would then be something like this. > > $wsdl = new SOAP_WSDL('http:/...'); > $locations = $wsdl->getProxy(); > $result = $locations->getLocation($address,false,$user); > > > The problem is the $address variable - how should it look? > > I found out that it needs to be like this: > > $address['Location']['AdressStreetName'] = "Some-street"; > > And that works fine as long as there is only one element of > Location. But > how can I specify more Locations (since it isn't posible to > have an array > with several of the same keys ['Location']). Try an array of objects. Each objetc with a 'Location' attribute. Regards, Mike C. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

« previous php.pear.general (#9447) next »