Decent PHP SOAP client?

Hey guys, has anyone used decent PHP SOAP Client recently and can recommend it?

Thanks!

edited Oct '17

I remember horrors working with damn SOAP services. And it's not about PHP support for SOAP. Thankfully world ran away from that shitware towards REST.

If you really have to do it, I suggest to rely on SoapClient class found in raw PHP. Back in the day, nuSOAP was also good alternative / option. Nowdays it's deprecated, but I see someone ported it to 7.1 even: https://github.com/econea/nusoap

Give it a try and good luck, I mean it! :D

Yeah... had few interactions wiath SOAP in the past years and it was not fun at all.

I'll check it out after I get the WSDL file :) Either will use nusoap or write a wrapper class over PHP's built in client.

Thanks :)

edited Oct '17

XML should've died out years ago, it offers no structure that you cannot replicate in json.... and the latter needs third the bandwidth.

Only services written using microsoft products still use soap, and unfortunately there are quite a few :D

PS: if you want to generate classes of the WSDL schema: https://github.com/wsdl2phpgenerator/wsdl2phpgenerator

Should have, but sadly it did not.. yet.. :)



4.7k
edited Oct '17

SOAP, Simple Object Access Protocol, is not simple, objective, easy to access, and the protocol leaves a lot left undefined. I usually ignore generic SOAP and use the protocol definition provided by the data source. 10 pages instead of 220 pages. Do they have other PHP based users? What does the data source recommend?

I do not find any problems with XML. When the original data is in XML, it is usually safer to leave the data in the same XML instead of converting it to another format.

edited Oct '17

@petermoo I remember when I had a chance to work with OSB (Oracle services bus) with XML-DSIG on top of it... oh boy what a pain that was. Thing is very simple but they made it way too complex. Same as with SOAP. SOAP and XML-DSIG are thankfully history and even eGov services today do not rely on those anymore like they used to.

@stamster speak for yourself, the hungarian tax agency still uses java + xml (+ dsig) xD