Java SOAP WSDL 1.1 message sending all the parameters (even future ones)
Posted
by Eduardo
on Stack Overflow
See other posts from Stack Overflow
or by Eduardo
Published on 2010-05-08T08:54:40Z
Indexed on
2010/05/08
8:58 UTC
Read the original article
Hit count: 208
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.
© Stack Overflow or respective owner