NuSoap with PHP5
For the past few days I have been working with SOAP on a number of platforms. I wanted to use NuSoap with PHP5 and here are a few steps which will allow you to do so. As PHP5 has an inbuilt support for webservices it will clash with the names in nusoap.php. To get over this rename the class soapclient to soap_client. Also rename the constructor soapclient to soap_client.
This is all that needs to be done. Once you do this you would be able to run NuSoap with PHP5.
This is all that needs to be done. Once you do this you would be able to run NuSoap with PHP5.
Comments
$evalStr = 'class soap_proxy_'.$r.' extends soapclient {
'.$evalStr.'
}';
I'm angry
I'm gonna kill my IT staff for not telling me the upgraded -- thusly blowing a huge library that worked with NuSoap.
And I found this post.
I love you. Thank you.
File: class.soapclient.php
line 25: class soap_client extends nusoap_base {...
line 92: function soap_client($endpoint,...
line 672: $evalStr = 'class soap_proxy_'.$r.' extends soap_client { ...
OK?
It works great.
I love you too!
:-))))
nusoap_client
instead of
soapclient
Recently, I have moved content from 'X' server to 'Y' server. 'X' server was using php4.x and 'Y' was asked to use only php5.x.
Now, nusoap web servies were not working. So I did change to work like below.
From:
function UserData(&$userid){
//formed xml arrayobject to return}
To:
function UserData($userid){
//formed xml arrayobject to return}
It works after removing & from input param.
Now I'm facing problem is, if server doesn't have input param, that it's not return array of objects.
Please help me.