Reputation: 27
How to set null
from this script:
<dat:customerNo></dat:customerNo>
I already tried to do this:
<dat:customerNo xsi:nil="true" />
But got error:
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>WSDoAllReceiver: cannot convert into document; nested exception is:
org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "dat:customerNo" is not bound.</faultstring>
Please anyone can help? Thank You!
Upvotes: 1
Views: 5852
Reputation: 199
You need to add the definition of the xsi element in your field or in your soap envelope.
<dat:customerNo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
Upvotes: 3