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 (which are complex types), 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?