PHP and NuSoap

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I've downloaded the NuSoap class files. I've put them onto my localhost/
where I run my php scripts, just put the nusoap.php file in there. I've
got loads of different scripts to try out (including the ones that come
with soap) and I'm getting the same error for each of them:

Fatal error: Cannot redeclare class soapclient in
/opt/lampp/htdocs/Jims/Database/nusoap.php on line 6500

Can anyone tell me why I would get this? BTW its the last line in

/opt/lampp/htdocs/Jims/Database/ is just my developent folder for php.#


Re: PHP and NuSoap

Quoted text here. Click to load it

Not sure if it has anything to do with your problem, but when I have had
'error on line xxx', where xxx is the last line of my file, it was generally
because there were missing braces({}) in nested loops or function


Re: PHP and NuSoap

Aidan wrote:

Quoted text here. Click to load it


No, this is generating an error in nusoap.php, as in the dowloaded class
libraries, that, I would assume, is coplete and ready to go. I think the
problem is that I have to set something up concerning nusoap, but I
don't know what?

Thanks Jim.

Re: PHP and NuSoap

James Kennedy wrote:
Quoted text here. Click to load it

If you are using php5 and have the built-in soap classes (i.e.
SoapClient) enabled then it is going to think you are redeclaring the
SoapClient class and throw this error. If you want to use NuSOAP then
disable the built-in classes...


Site Timeline