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 / February 2006

Tip: Looking for answers? Try searching our database.

Logging SOAP transactions?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris  Ashley - 08 Feb 2006 15:21 GMT
Hi there,

I was just wondering if there was an easy (IE: Built into .NET) way of
automatically logging all the full SOAP messages that go through a web
service?

Thanks,

Chris
DBC User - 08 Feb 2006 16:31 GMT
I am also interested to know the same.
Udo Nesshoever - 08 Feb 2006 18:24 GMT
>I was just wondering if there was an easy (IE: Built into .NET) way of
>automatically logging all the full SOAP messages that go through a web
>service?

Use TcpTrace (http://www.pocketsoap.com/tcptrace/) and put it between
your application and the host. You'll find some documentation at the
website.

HTH

Cheers,
Udo
NuTcAsE - 08 Feb 2006 19:35 GMT
You can do this by creating a SoapExtention. Check this article out:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conAlteringSOAPMessageUsingSOAPExtensions.asp
.
The article contains an example code to create a trace extention for
web services..

Hope this helps...
NuTcAsE
Udo Nesshoever - 08 Feb 2006 23:58 GMT
>You can do this by creating a SoapExtention. Check this article out:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conAlteringSOAPMessageUsingSOAPExtensions.asp
.
>The article contains an example code to create a trace extention for
>web services..

Might work, too, but AFAIR Chris wanted an easy (in this case, I
guess, quick as well) way to accomplish this. ;)
With TcpTrace you don't really have to alter your source code. Just
change the port in the .config. That should do the trick - at least it
did it for me.

Cheers,
Udo
Chris  Ashley - 09 Feb 2006 09:22 GMT
> >I was just wondering if there was an easy (IE: Built into .NET) way of
> >automatically logging all the full SOAP messages that go through a web
[quoted text clipped - 3 lines]
> your application and the host. You'll find some documentation at the
> website.

Hi Udo,

Thanks for that. This looks like just what I need. I must confess to
being a little confused as to what I need to do in order to get this
working. What change should I make to the .config file in order to get
this working?

Thanks in advance,

Chris
Udo Nesshoever - 10 Feb 2006 11:57 GMT
>> Use TcpTrace (http://www.pocketsoap.com/tcptrace/) and put it between
>> your application and the host. You'll find some documentation at the
>> website.

>Thanks for that. This looks like just what I need. I must confess to
>being a little confused as to what I need to do in order to get this
>working. What change should I make to the .config file in order to get
>this working?

Let's assume your client communicates with the server over port 80.
Now configure TcpTrace so it listens to port 8080 and set the
destination address to your server's name and the destination port to
80. Now change your client's address to communicate with to localhost
and the port to 8080.

original:
client sends to [server:80] ---> server listens @ port 80

now:
client sends to [localhost:8080] ---> TcpTrace listens @ port 8080
  and
TrcTrace send to [server:80] ---> server (still) listens @ port 80

HTH

Cheers,
Udo

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.