Web Service Error path property must set before ca

2019-07-21 08:12发布

问题:

path property must set before calling the send method

What is the cause of this error?

Thanks

回答1:

The usually means that the WSDL that you are using doesn't have a Service section defined to say where the web service is located. So the error is basically telling you that it doesn't know where to send the method call because there is no destination defined.

When you create an instance of the serivce try setting the Url property to the location of the service and then try calling the method again.