Pass Null Value in DateTime Field in soap ui

Dilip picture Dilip · Aug 30, 2013 · Viewed 35.8k times · Source

I Want to Pass null value from Soap UI for Datetime Field one option is that i should delete the tag . There is any other way where i can pass null or some other value in date field.

 <rt6:DateofBirth></rt6:DateofBirth>

Answer

Betlista picture Betlista · Aug 30, 2013

<rt6:DateofBirth></rt6:DateofBirth> is not null, but empty String (not in all languages this is the same), use xsi:nil="true", so

<rt6:DateofBirth xsi:nil="true" />

where xsi namespace is xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance".