WSDL Cannot find dispatch method for

前端 未结 9 2071
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 06:43

For a web service call using a WSDL, I\'m getting the error Cannot find dispatch method for {http://ws.somecompany.com/services}ValidateUser, what does that me

9条回答
  •  感情败类
    2020-12-15 07:31

    In my case, the following exception was throwing even I've supplied all the parameters

    SoapFault exception: [S:Client] Cannot find dispatch method for {}parameters in
    

    After banging my head few hours, just adding a \ while initializing SoapClient solved the problem.

    From:

    $client = new SoapClient($soapURL);
    

    To:

    $client = new \SoapClient($soapURL);
    

提交回复
热议问题