- Where Developers Learn, Share, & Build Careers


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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -