mercredi 2 avril 2014

Use WebServiceTemplate to call a Web Service Operation with mutliple parts


Vote count:

0




I have a WSDL message that is composed of two parts:



<wsdl:message name="GenericWebServiceOperationRequestMessage">
<wsdl:part name="Body" element="ns:MyRequest"/>
<wsdl:part name="Security" element="ns:Security"/>
</wsdl:message>


The workflow I am using is running xjc.exe on the wsdl to generate the JAXB artifacts and then using them to call the webservice. Well that's all good, except I cannot figure out what the right workflow is to invoke a message that has mutliple parts using Spring WebServiceTemplate. I can create the MyRequest and Security objects, but the function:


WebServiceTemplate().marshalSendAndReceive(Object requestPayload); Only takes a single object. Not parts... What's the right way to call this type of Web Service Operation?



asked 58 secs ago






Aucun commentaire:

Enregistrer un commentaire