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 / General / July 2007

Tip: Looking for answers? Try searching our database.

Getting soap request before sending message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jens - 25 Jul 2007 09:56 GMT
Hello,

I have some code that calls an external webservice. To debug I want to
get the Soap message before it's send to the webservice. Is there a
way to get the soap message?

Some example of my code:

Dim iEx As New MySoap.TInfoEx
iEx.Value1 = 1
iEx.Value2 = "Value"

Dim Result() As MySoap.TResult
Result = ps.Calculate(iEx)

I want to get the Soap request before it's send to the webservice in
the last line.
Hope someone can help me with this. Thanks!
Peter Bromberg [C# MVP] - 25 Jul 2007 20:08 GMT
If you are using the .NET platform, you need to look at the SOAPExtension
class. This allows you to hook the stream of SOAP inbound or outbound, do
whatever you want, then chain the stream on to its eventual destination in
the framework.

http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.soapexten
sion(VS.71).aspx


-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
bogMetaFinder:    http://www.blogmetafinder.com

> Hello,
>
[quoted text clipped - 14 lines]
> the last line.
> Hope someone can help me with this. Thanks!

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.