RE: [PEAR] Requesting a webservice...

From: Date: Fri, 12 Dec 2003 10:12:23 +0000
Subject: RE: [PEAR] Requesting a webservice...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9483@lists.php.net to get a copy of this message
> -----Original Message----- > From: Dennis T. [mailto:viol8r@nospam.dk] > Sent: 10 December 2003 21:29 > To: pear-general@lists.php.net > Subject: RE: [PEAR] Requesting a webservice... > > > Mike Carter wrote: > > My suggestion would be something along the lines of an > object containing > > the details of a single location (stretname, town, county > etc.). Then add > > this single location object ($locationObj) to the master > $address array > > using: > > > > $address[] = new > SOAP_Value("{<enteryourWSnamespacehere>}Location", false, > > $locationObj); > > I have tried almost every combination objects, arrays and > creative thinking, > but it just doesn't seem to be posible to produce the correct xml. Are > there any examples out there on how to construct some xml via the > PEAR::SOAP, where there are repeating elements in the client call? > > Something like this... > > <element1> > <element2> > <element3>data1</elemenent3> > </element2> > <element2> > <element3>data2</elemenent3> > </element2> > </element1> > > > All I have found on google just shows some very simple > request to google or > amazon etc... :-( > > Also - is there a way to output the constructed xml which are > sent to the > server (i do not have access to the server)? After doing the call to the webservice I use: $wirey = htmlentities(html_entity_decode($this->wire)); print '<pre>' . $wirey . '</pre>'; Where $this is the instance of a SOAP Client class. 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 (#9483) next »