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
> >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