Q:

Disable native Soap class in PHP5 and use nuSoap?

I've spent the last week developing code to connect to a Web Service using the nuSoap library. I just deployed the code to production, but immediately started getting error's that I hadn't seen before. I traced the problem back to a line of code that is trying to instantiate a new soapclient object. It turns out that both libraries have a class named 'soapclient' and the one that's being created in production is from the native Soap library, not the nuSoap library that I'm including. How can I disable the native Soap functionality and stick strictly to nuSoap?

A:

With the release of PHP5 there is a soapclient class included in the php_soap extension.  NuSOAP has renamed its class to nusoap_client.  If your copy of NuSOAP is current you should be able to use that.  This doesn't disable the php_soap extension, but should allow you to use the NuSOAP class without further conflict.

