Greetings,
I've looked around for an answer to this, but one is not jumping out at me
so I'll just ask people who have probably run across this already...
What is a simple way to get the raw SOAP Request/Envelope that I am sending
to a ASP.NET web service when I have the ASP.NET Web Service set as a Web
Reference in my project. Ideally I would always be working with a .NET
Consumer of a Web Service, but just in case I need to know the raw XML for
utilization in a non-.NET consumer.
Thanks,
Chris
Marc Landrum - 01 Jun 2005 00:00 GMT
Chris,
I believe you can access the raw SOAP by writing your own class that
inherits the SOAPExtension class. By overriding the ProcessMessage method,
you can access the SoapMessage at each stage any stage of
serialization/deserilization. Since you want the raw SOAP message recevied
by your Web service, you should gear your extension to do its work at
SoapMessageStage.BeforeDeserialize.
You can check the MSDN entry for SOAPExtension for a VB.NET and C# example
of a SOAPExtension that writes the SOAP messages to a output file.
Note -- you will also need to write a SoapExtensionAttribute class so that
your webservice will have access to the SoapExtension.
Hope that helps.
Marc
> Greetings,
>
[quoted text clipped - 10 lines]
>
> Chris