I have an auto- cxf web service client for soap (using cxf ), and some elements are marked as optional.
If I do not set these elements, the request XML request to the web service has many elements as follows:
<PayText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/> <Name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
They are generated if wsdl contains:
minOccurs="0" nillable="true"
How to prevent the creation of these nil elements? Probably the web service itself does not need this information, because when I use soapUI and send clean xml requests that remove nil elements, the request still works.
My bind file:
<jaxb:globalBindings generateElementProperty="false" />
So how can I prevent them from being created during submission?
source share