How to log raw SOAP response msg?

Discussion in 'ASP .Net Web Services' started by Bob, Apr 20, 2005.

  1. Bob

    Bob Guest

    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
     
    Bob, Apr 20, 2005
    #1
    1. Advertising

  2. Bob

    jon Guest

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

    "Bob" wrote:

    > 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
    >
    >
    >
     
    jon, May 3, 2005
    #2
    1. Advertising

  3. Bob

    erymuzuan Guest

    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

    jon wrote:
    > 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
    > .
    > 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
    >
    > "Bob" wrote:
    >
    >
    >>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
    >>
    >>
    >>
     
    erymuzuan, May 5, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. comp.text.xml
    Replies:
    0
    Views:
    515
    comp.text.xml
    Sep 20, 2006
  2. Ivan S
    Replies:
    0
    Views:
    536
    Ivan S
    Aug 13, 2008
  3. akila_natarajan

    Read .msg attachment from a mail(.msg)

    akila_natarajan, May 13, 2011, in forum: Java
    Replies:
    0
    Views:
    391
    akila_natarajan
    May 13, 2011
  4. Charles Lowe
    Replies:
    0
    Views:
    226
    Charles Lowe
    May 13, 2007
  5. Charles Lowe
    Replies:
    0
    Views:
    173
    Charles Lowe
    Aug 22, 2007
Loading...

Share This Page