tags:

views:

251

answers:

0

Hi All, I have a webservice implmented in JAX WS framework. It has one method which takes paramter as object of custom class. when I invoke it from client without specifying any handler it works fine. But when I configure SOAPMessageHandler on client side I get following exception:

javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: prefix ns3 is not bound to a namespace
        at com.sun.xml.wss.jaxws.impl.SecurityServerTube.processException(SecurityServerTube.java:381)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:593)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
        at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)

I tried to print SOAP message on client as well as server side. My Observation is without specifying handler SOAP message received on server side is same as client side but when I specify handler SOAP message gest changed. Namespace declaration gets moved from root element to repsecitve child elemments. I am not doing anything on handler just printing soap message.

Namespace declaration varies between these two messages.