PHP5 and NUSOAP

So last weekend I installed PHP5 on my server, to finally be able to do some new stuff, and this, it seemed, created some trouble with my SEO scripts that used NUSOAP. What is the problem? Well it’s easy: PHP5 has a soapclient built in, and this causes trouble :).

The solution is easy as well, rename class soapclient and function soapclient to nusoapclient in nusoap.php, and make sure you use new nusoapclient instead of new soapclient in your scripts.

Tags:


Yoast.com runs on the Genesis Framework

Genesis theme frameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides you with the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Read our Genesis review or get Genesis now!

7 Responses

  1. John EstickBy John Estick on 16 February, 2008

    Excellent post. I just encountered this problem, and 5 minutes later I have the answer. You have to love the Internet, and especially your little part of it.
    Thanks

  2. GaganBy Gagan on 13 May, 2008

    very useful and well written info.

  3. b.tavakkoliBy b.tavakkoli on 18 June, 2008

    Very usefull and i solved my problem with your topic.
    thank you

  4. AlBy Al on 4 July, 2008

    You could also just call ‘new nusoap_client’ instead of ‘new soapclient’ and that would do the trick as well without altering anything else – good tip though!

  5. php trivandrumBy php trivandrum on 16 April, 2009

    Last year for a project involving travelport xml api integration, we badly needed the soap requests to be gzipped, since the technical support people suggested.

    http://www.php-trivandrum.org/tips/gzip-nusoap-requests.html

  6. siavashBy siavash on 31 August, 2009

    includes\classes\lib\nusoap.php on line 7240

  7. Sean JacksonBy Sean Jackson on 24 November, 2009

    Yes you could use NuSoap EXCEPT that NuSoap has a HUGE problem in supporting web service requests via SSL when you are hosting on sites like BlueHost, HostGator, etc.

    Most of these providers use a proxy. Usually no problem in http requests but if you need to call a WSDL file using httpS then you are in trouble. See http://orlandowebdesign.blogspot.com/2008/04/godaddy-curl-https-and-nusoapphp.html for a description of the issue and work around.

    PHP5 has better support for SOAP than NuSoap. While this can be a pain for many, this one issue highlights why having the current version of PhP5 is a better option.