Absorbing Web Services

May 4 2007 6:39 AM
Hi, I am currently trying to see what the soap body looks like but being new to c# I do not know how to view the xml. So far I have the code (below) which sends the request and I get a response okay. But I wish to see the xml text of the soap request. How can I do this? [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="urn:tdsi_test", ResponseNamespace="urn:tdsi_test")] [return: System.Xml.Serialization.SoapElementAttribute("t")] public TemplateInfo[] Template(string token, int op, int src, TemplateInfo[] templateInfoIn, string reserved, out int rc) { object[] results = this.Invoke("Template", new object[] { token, op, src, templateInfoIn, reserved}); rc = ((int)(results[1])); return ((TemplateInfo[])(results[0])); }