Fatal error: Call to undefined method soapclient::__soapCall() in D:\drupal-x.x\sites\default\modules\services\servers\soap_server\soap_server_test.php on line 42

should i define for this method can i get the solution

Comments

mvelshankar’s picture

Assigned: mvelshankar » Unassigned
melsawy’s picture

mvelshankar
__soapClient need to enable soap module on your php installation to check that you can use phpinfo() function.
also you can see this link for more information.
http://www.php.net/manual/en/soap.installation.php

sanjayk’s picture

I also get the same error

Fatal error: Uncaught SoapFault exception: [Client] Function ("getError") is not a valid method for this service in /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php:51 Stack trace: #0 [internal function]: SoapClient->__call('getError', Array) #1 /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php(51): SoapClient->getError() #2 {main} thrown in /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php on line 51

and

Fatal error: Uncaught SoapFault exception: [Client] Function ("call") is not a valid method for this service in /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php:79 Stack trace: #0 [internal function]: SoapClient->__call('call', Array) #1 /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php(79): SoapClient->call('system.connect') #2 {main} thrown in /viren/webroot/ninelan/sites/all/modules/soap_server/soap_server_test.php on line 79

please help me.

tayzlor’s picture

i am also experiencing this error when trying to test, i have soap enabled in phpinfo(). anyone got a solution?

tayzlor’s picture

to answer my own question, if you are using nuSoap you will need to use the following instead -


$client = new nusoap_client()
$client->call()

dizzy1’s picture

THANK YOU SO MUCH, one obstacle down 500 to go.

fxzeng’s picture

cool, thx.