NULL values in SOAP requests

Question: how to pass a NULL value in a SOAP envelope?
Answer: Use the xsi:nil=”true” attribute on the element, and don’t forget the xsi namespace in the envelope.

Example SOAP request:

<soapenv:Envelope xmlns:soapenv="" xmlns:xsi="">
            <PassNullHere xsi:nil="true" />
This entry was posted in Work and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *