Hello,
I am trying to intercept a
soap response coming from a web service (Deployed on Weblogic 8.1) on the client side before it gets converted to a
java response object. I have tried extending weblogic.webservice.GenericHandler available in Weblogic to do so. More specifically, I wrote a handler implementing the handleResponse() part of weblogic.webservice.GenericHandler, and then registered my SoapMessageHandler with the client as follows:
QName portName = new QName( <targetNameSpaceURI>, <portName>
;
HandlerRegistry registry = service.getHandlerRegistry();
List handlerList = new ArrayList();
handlerList.add( new HandlerInfo( <SoapMessageHandler classname>, null, null ) );
registry.setHandlerChain( portName, handlerList );
My understanding is that the SoapMessageHandler should always be invoked when a soap response is received, but it doesn't happen. The handler is not invoked.
Is there something more I need to write or configure to make this work? Could this be because the client is not a
J2EE application? Could someone help me with this?
Thank You,
Vasavi