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 / December 2004

Tip: Looking for answers? Try searching our database.

Capture SOAP envelope

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PokerJoker - 29 Dec 2004 18:35 GMT
I'm calling a web service provided to me by one of my company's vendors.  I
used visual studio to automatically generate the SOAP request but I am trying
to figure out a way to trap the soap envelope before it is sent.

Is there a program, technique, or sniffer that I can use to accomplish this?
Christoph Schittko [MVP] - 29 Dec 2004 18:57 GMT
Are you looking at trapping them to execute code before the message is
sent? Then you should look at building your own SoapExtension [0].

Depending on what you want to do, you'll need to plug in your code at
the BeforeSerialize or AfterSerialize stages.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

[0]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
tml/frlrfsystemwebservicesprotocolssoapextensionclasstopic.asp
> -----Original Message-----
> From: PokerJoker [mailto:PokerJoker@discussions.microsoft.com]
[quoted text clipped - 11 lines]
> Is there a program, technique, or sniffer that I can use to accomplish
> this?
PokerJoker - 29 Dec 2004 19:17 GMT
Thanks Chris, but I dont need it in code at all.  

The webservice at our vendor is returning errors, which in my opinion are
entirely unrelated to the envelope.  They have asked me to trap the request
and email it to them to assist with debugging.

> Are you looking at trapping them to execute code before the message is
> sent? Then you should look at building your own SoapExtension [0].
[quoted text clipped - 26 lines]
> > Is there a program, technique, or sniffer that I can use to accomplish
> > this?
Mujtaba Syed - 29 Dec 2004 19:22 GMT
Try Simon Fells' tcpTrace utility:

http://www.pocketsoap.com/tcptrace/

Mujtaba.

> Thanks Chris, but I dont need it in code at all.
>
[quoted text clipped - 32 lines]
> > > Is there a program, technique, or sniffer that I can use to accomplish
> > > this?
Christoph Schittko [MVP] - 29 Dec 2004 19:23 GMT
Then the trace tool MSSoapT shipped with the Soap Toolkit [0] that Dilip
mentioned or tcpTrace [1] should do just fine.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

[0]
http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4
088-9753-86F052EC8450&displaylang=en
[1] http://www.pocketsoap.com

> -----Original Message-----
> From: PokerJoker [mailto:PokerJoker@discussions.microsoft.com]
[quoted text clipped - 22 lines]
> >
> > [0]

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
> > tml/frlrfsystemwebservicesprotocolssoapextensionclasstopic.asp
> > > -----Original Message-----
[quoted text clipped - 13 lines]
> > > Is there a program, technique, or sniffer that I can use to accomplish
> > > this?
PokerJoker - 29 Dec 2004 19:35 GMT
Thanks again to everybody who is assisting...

The trace utility as far as i can tell is designed to reside on the "host"
of the webservice...

Is there a way to configure the utility to grab the request "before it
leaves"?

> Then the trace tool MSSoapT shipped with the Soap Toolkit [0] that Dilip
> mentioned or tcpTrace [1] should do just fine.
[quoted text clipped - 59 lines]
> accomplish
> > > > this?
PokerJoker - 29 Dec 2004 19:49 GMT
Nevermind... I changed the wsdl to send the request to localhost... then i
forwarded it using the trace utility to its final destination (our vendor).

Great little utility, thanks for the help guys!

> Thanks again to everybody who is assisting...
>
[quoted text clipped - 67 lines]
> > accomplish
> > > > > this?
Christoph Schittko [MVP] - 29 Dec 2004 19:50 GMT
The trace tools can run on any server, but you have to point your proxy
to the location/port where the tool is listening.

You should configure your proxy to dynamically pull the web service
location from the application's config file. Right click on the web
service node under Web References in the solution explorer and set the
URL Behavior to dynamic. Now rebuild your service consumer and you'll be
able to quickly configure the URL for the web service proxy to invoke.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

> -----Original Message-----
> From: PokerJoker [mailto:PokerJoker@discussions.microsoft.com]
[quoted text clipped - 20 lines]
> >
> > [0]

http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4
> > 088-9753-86F052EC8450&displaylang=en
> > [1] http://www.pocketsoap.com
[quoted text clipped - 28 lines]
> > > >
> > > > [0]

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
> > > > tml/frlrfsystemwebservicesprotocolssoapextensionclasstopic.asp
> > > > > -----Original Message-----
[quoted text clipped - 15 lines]
> > accomplish
> > > > > this?
Christoph Schittko [MVP] - 29 Dec 2004 19:50 GMT
The trace tools can run on any server, but you have to point your proxy
to the location/port where the tool is listening.

You should configure your proxy to dynamically pull the web service
location from the application's config file. Right click on the web
service node under Web References in the solution explorer and set the
URL Behavior to dynamic. Now rebuild your service consumer and you'll be
able to quickly configure the URL for the web service proxy to invoke.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

> -----Original Message-----
> From: PokerJoker [mailto:PokerJoker@discussions.microsoft.com]
[quoted text clipped - 20 lines]
> >
> > [0]

http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4
> > 088-9753-86F052EC8450&displaylang=en
> > [1] http://www.pocketsoap.com
[quoted text clipped - 28 lines]
> > > >
> > > > [0]

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
> > > > tml/frlrfsystemwebservicesprotocolssoapextensionclasstopic.asp
> > > > > -----Original Message-----
[quoted text clipped - 15 lines]
> > accomplish
> > > > > this?
Dilip Krishnan - 29 Dec 2004 19:09 GMT
Hello PokerJoker,
  You should be able to use the trace utility in the Microsoft Soap Toolkit,
if you just want to see the messages sent by the client

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> I'm calling a web service provided to me by one of my company's
> vendors.  I used visual studio to automatically generate the SOAP
[quoted text clipped - 3 lines]
> Is there a program, technique, or sniffer that I can use to accomplish
> this?

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.