java - Sending Object from SOAP Handler to Web Service -
How can I send objects to a web service with SOAP handlers? I know that I can modify the SOAP message but I am trying to send back the whole message. I do not have access to the SOAP envelope in the web service. Besides, this is implementing a wsdl and I can not change the parameter type, which is a specific type of XML. So I'm thinking of using some kind of parallel messaging mechanism between the SOAP handler and the web service.
in SOAP handler,
public boolean handle message (SOAPMessageContext mc ) {... BytereunputSpread Out = New Bytereanputstream (); SOAPMessage soapMsg = mc.getMessage (); Mc.put ("Soap Messaging", Outside); Mc.setScope ("Soap Messaging", MessageContext.Scope.APPLICATION); ...} In the Web service:
Message Contintbox Message Ctx = context.getMessageContext (); String Doc = (messageCtx.get ("soapMsg")). ToString ();
Comments
Post a Comment