I can't recall the exact details at the moment, but you can't directly access the SOAP xml. You have to implement a client side proxy handler for your Web Service that intercepts the various events that occur as the message is processed. THere are hooks at various stages and in this code you can retrieve the full XML.
+++ Rick ---
>Thanks, but what you are suggesting is the method I used in ASP. Now I am after something to give me the Soap response in .NET when having the web service added in web references.
>
>I suspect you didn't read my original post carefully enough, or maybe I failed to be specific enough.
>
>>>Hi
>>>
>>>I have this issue that I will try to describe here in connection to porting some code from ASP to VB.NET.
>>>
>>>In ASP, there is some code that generates a soap envelope and uses MSXML2.ServerXMLHTTP to open a conn and send the envelope to a web service. In reply, the code gets the .ResponseXML and does a transformation with a XSL stylesheet.
>>>
>>>In VB.NET I simply added a web reference to the web service and called a desired method that way. However, the web service method returns an object type defined in that service, and now I am wondering how I can get the XML from the service in order to pass the XML as to the XSL.Transform method f the stylesheet object.
>>>
>>>Hope this makes sense. Thanks.
>>
>>I believe this is what you are looking for.
>>xmlhttp is the MSXML2.ServerXMLHTTP object you mentioned.
>>xmlhttp.responseXML.xml