PHP SoapClient request: not a valid method for this service PHP SoapClient request: not a valid method for this service php php

PHP SoapClient request: not a valid method for this service


A simple request for the web service's available functions solved the problem.

$functions = $client->__getFunctions ();var_dump ($functions);

EchoTestRequest was not a valid function call. The proper function call was EchoTest, which is illustrated by the functions variable dump.

array(1) { [0]=> string(54) "EchoTestResponse EchoTest(EchoTestRequest $parameters)" } 


I assume you're not typo and the method is actually available.

Try this

ini_set("soap.wsdl_cache_enabled", "0");

It's might be because of wsdl was cached.