> -----Original Message----- > From: Richard Lynch [mailto:ceo@xxxxxxxxx] > Sent: Monday, January 14, 2008 7:21 PM > To: Tim Traver > Cc: Bastien Koert; PHP General List > Subject: Re: PHP SOAP Client formats > > On Wed, January 9, 2008 9:45 pm, Tim Traver wrote: > > Thank you for answering, but the issue is that the PHP SOAPClient > > classes actually create that xml to send, so I have no control over > > the > > xml that is sent with a call command to the SOAP object... > > > > I just wondered if there was any flags that I am missing that might > > bring the php stuff in line with what the server expects. > > If there are any such flags, they'd be documented in the manual. > > If there aren't, perhaps you can find another SOAP constructor tool in > PHP. > > I know there have been at least 3 or 4 popular ones over the years. > > And while the built-in one in PHP 5 is by far the best/easiest to use > generally, you might be better off using nuSoap or somesuch even if > it's a PITA, because it might construct the kind of SOAP envelope the > other server is expecting. > > I would definitely recommend abstracting it as much as possible, > though, so you can upgrade easily to a better SOAP implementation if > the other end changes their software. > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/from/lynch > Yeah, I get a buck. So? > The only problem I had with nuSOAP was a name clash with the PHP 5 native extension. But they fixed it in November (there was a previous non-official fix also.. but can't remember the link right now). nuSOAP has been around for several years and it's working for PHP 4 or PHP 5. So far it's doing the job pretty well (what's more, for a SOAP API, chances are that nuSOAP is included along with the code samples). Though I didn't run any benchmarks, its speed is more than enough for my taste, when caching the WSDL object (in fact, most of the time will be spent in the server to server roundtrip). So... my vote for nuSOAP. However, if you are using the native extension and have specific needs for the XML request, you can override the __doRequest() method http://php.net/manual/en/function.soap-soapclient-dorequest.php (there's an example in the manual notes). Regards, Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 Email: info@xxxxxxxxxxxxx | MSN Chat: best@xxxxxxxxxxxxx | SKYPE: bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php