WSDL Cannot find dispatch method for

前端 未结 9 2033
没有蜡笔的小新
没有蜡笔的小新 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:25

    I had the same issue in my .NET Application, In my case setting url same as "http://x-xxx-xx-xx-01:8080//TestProject/testproject?wsdl" (dummy url) solved the problem in the below code.

    Vb.Net

    Dim rptGen as WSTestProject.testproject = Nothing
    rptGen = New WSTestProject.testproject With {
            .Url = "http://x-xxx-xx-xx-01:8080//TestProject/testproject?wsdl",
            .Timeout = 1200000
            }
    

    Here, WSTestProject is the WebService NameSpace and testproject is the web method.

    0 讨论(0)
  • 2020-12-15 07:28

    I had a similar problem and struggling, googling for 1 day. But it was a simple mistake that instead of:

    {http://ws.somecompany.com/services}ValidateUser
    

    It should be

    {http://ws.somecompany.com/services/}ValidateUser
    

    I had not checked my WSDL clearly.

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