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>
<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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
Bear in mind that, as Ali Baraka suggests, xsi namespace can be defined at root tag level as xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
, which allows you to remove from regular tags
General answer:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Add this to namespaces on root tag. Then add this property to tag
xsi:nil="true"
E.g:
<vp1:DateofBirth xsi:nil="true"></vp1:DateofBirth>
The following worked for me:
<rt6:DateofBirth xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />