The web service is called, the browser shows the following error:
Class 'SoapServer' not found...

Does anyone have any idea on it?

PHP and SOAP are installed/enabled on Apache server.
the message returned by phpinfo() about SOAP is:
Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400

It's a web service without WSDL. In php file,

$server = new SoapServer(null,array('uri' => 'aa.bb.com/test.php'));
$server->addClass('add_account');
$server->handle();

    AFAIK there is no addClass method in the SoapServer class. Did you mean setClass?

      I saw addClass somewhere...I think setClass should be correct...

      but is it the reason that soapserver not found?

        I tried to make it throw an error but all I got was:

        Call to undefined method SoapServer::addClass()

        in the error log.

        I can imagine you would get the "soapserver not found" error message in the error log but in the browser? I wouldn't have thought so.

        Is there anything in your client or server that returns this message?

        What does your error log say?

        Perhaps if you post your client and server files?

          [man]SOAP[/man]
          ....no, no sign of "addClass" there. There is a "setClass".....

          But the error is earlier. The class isn't found. Check that it's installed (requirements for this are given on the page above (except for Windows, where you'd uncomment the dll in php.ini).

            Write a Reply...