Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

What is a simple way to get the raw SOAP Request/Envelope that I am sending to a web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Hayes - 31 May 2005 02:58 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.