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.
Joost is an internet entrepreneur and the founder of Yoast. He has a long history in WordPress and digital marketing. On our blog, he has written a lot about SEO in general, technical SEO and important topics related to SEO.
November 08, 2025
Team Yoast is Speaking at WordCamp Athens 2025! Click through to see who will be there, what we will do, and more!
See where you can find us next »
13 November 2025
Learn how to improve your website performance with effective strategies for WordPress speed that keep clients satisfied and engaged.
All Yoast SEO Webinars
Discussion (7)
Sean JacksonNov. 24, 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.
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.
siavashAug. 31, 2009
includesclasseslibnusoap.php on line 7240
php trivandrumApr. 16, 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.
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!
b.tavakkoliJun. 18, 2008
Very usefull and i solved my problem with your topic.
thank you
GaganMay. 13, 2008
very useful and well written info.
John EstickFeb. 16, 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
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.
includesclasseslibnusoap.php on line 7240
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
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!
Very usefull and i solved my problem with your topic.
thank you
very useful and well written info.
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