PHP SoapClient request: not a valid method for this service

后端 未结 2 1982
迷失自我
迷失自我 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: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)" } 
    

提交回复
热议问题