1 Reply Latest reply on Apr 22, 2005 11:24 AM by Noel Rocher

    From endpoint : accessing the Response SOAPMessage

    Noel Rocher Apprentice

      As for a servlet where we access to the client request, we also have access to the response.

      With saaj, we can access to the client SOAPMessage thru the MessageContext, but what if I need to access to the response SOAPMessage ?

        • 1. Re: From endpoint : accessing the Response SOAPMessage
          Noel Rocher Apprentice

          From jason greene


          The problem is that the response is not known until your SEI
          implementation returns, so within the SEI implementation there is no
          way to get at the response message. There is however another way. You can write a JAX-RPC handler, which is like an interceptor, so you can modify the request and response messages. Take a look at the javax.xml.rpc.GenericHandler class and the handlerflowtestcase in the testsuite.