How to debug this.invoke in clientProxy

Can anyone explain what going on inside this.invoke e.g.debug this.invoke

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]

public string HelloWorld() {

object[] results = this.Invoke("HelloWorld", new object[0]);

return ((string)(results[0]));

}




Answer this question

How to debug this.invoke in clientProxy

  • prayami

    Thanks you very much Pablo.



  • Toomas

    There are a couple of methods available for debugging webservices. One simple way is to add the webservice into the tools-debug process and attach it, if the service is running in the samemachine.
  • cbeasle1

    Hi,

    You can't debug that method, it is a method provided by the .NET framework infrastructure. This method basically performs the following tasks:

    1. Serializes the web service arguments into a valid a XML soap envelope.

    2. Calls to the web service method

    3. Waits for the web service response

    4. Deserialize the web service response (Soap Envelope) into a valid .NET type (Return Argument)

    Regards,

    Pablo.

    The Invoke method actually does everything to call to the web service.



  • How to debug this.invoke in clientProxy