Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the XML of the Soap Envelope
Message
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00951315
Message ID:
00953215
Views:
10
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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform