Java SOAP WSDL 1.1 message sending all the parameters (even future ones)
- by Eduardo
I have to communicate with a SOAP Web Service defined in a WSDL 1.1. All the parameters are optional in the WSDL like:
<xsd:element name="Submitter" type="xsd:string"/>
but if I do not send them I get an error because the parameter was not sent, so instead I have to send an empty string for any parameter I do not intent to send. So instead of not sending the element I have to send:
<Submitter></Submitter>
The problem is that the WebService publisher does not have any problem adding new parameters at any point in time but I must sent at least an empty string for all the parameters.
How may I call this WebService in Java so every time I call the WebService the WSDL is read so that all the parameters are sent having the parameters I care for are actually filled with the data I provide?
I am currently using Apache CXF but I am open to anything to solve this problem.