RE: [PEAR] Requesting a webservice...

From: Date: Wed, 10 Dec 2003 13:06:24 +0000
Subject: RE: [PEAR] Requesting a webservice...
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9449@lists.php.net to get a copy of this message
Mike Carter wrote: >> From: Dennis T. [mailto:viol8r@nospam.dk] >> 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. That would be the same as $address[]['Location']['AddressStreetName']="...", which doesn't work. I also tried it with objects, but there doesn't seem to be any difference.

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