PHP SoapClient request: not a valid method for this service

后端 未结 2 1968
迷失自我
迷失自我 2020-12-28 17:41

Okay, I think I need another pair of eyes to look over this. I\'m making a simple php soapclient call to an echo web service on a remote server. I\'m pretty sure I don\'t ha

相关标签:
2条回答
  • 2020-12-28 18:06

    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.

    0 讨论(0)
  • 2020-12-28 18:17

    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)" } 
    
    0 讨论(0)
提交回复
热议问题