How to eliminate optional element from soap request
I have a class with two properties which are exclusive to each other, mean either of one can have value at any time and other one will be null.
I have marked both the property as '@XmlElement(required = false, nillable = true)'
When the SOAP request is getting generated it includes the element (for null property) with 'xsi:nil="true"'
Is there any way to prevent JAXB from generating this xml element because web service doesn't expect it to be in request.
Thanks in advance