How to log raw SOAP response msg?

B

Bob

The .NET web service proxy class is great for transparent app process via
SOAP calls. I have a need to log the raw SOAP response messages. Is there
an easy way to do this? I saw there is already a thread about intercepting
SOAP request messages and someone suggested programming SOAP Extensions to
do it. I'm trying to see if there is an easier way since all I need is to
get the message in either a string or stream, and save it somewhere.

Thanks
Bob
 
J

jon

I've got the same issue. If anyone can inform how to do this could you
forward me the reply. I'll do the same if you send me your email. Mine is
(e-mail address removed).
Ideally I want to log the request and the response SOAP messages to/from a
web service method call.

One thing I've investigated is using the <methodname>Async version of the
method call, implementing a trivial eventhandler method that will be called
on completion of the Async call, and then trying to probe (in the debugger)
the "sender" parameter that the handler method recieves. It seems that all
the SOAP header and body data is there, and some references to a
RequestStream and ResponseStream, which sounds promising. But so far I have
not got it to dump the soap message.

Thanks,

Jon
 
E

erymuzuan

you can utilise SOAPExtension which exposes the response and request
stream. and you have the ability to change them too. override the
ProcessMessage(SoapMessage message) method to get into the stream



regards
erymuzuan mustapa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top