Forum Discussion
3 Replies
Sort By
- SmartBear_SuppoSmartBear Alumni (Retired)Hello,
The correct way to pass a null value is to useor . The schema for the type should specify that it is allowed to have a null value, with the attribute nillable="true".
If you wish some other value to be interpreted as null, then this is something your server needs to do. SoapUI should be able to send any value you specify.
Regards,
Dain
eviware.com - amnagOccasional ContributorHi,
I am using the form view in SoapUi Pro3.01. I also need to pass on a NULL value. You mentioned what needs to be done to pass on a NULL value. It helps me a lot. But unfortunately, I am a tester and not an XML guy. So could you or someone please tell the sequence of the steps that needs to be performed? Like where this statement needs to be added and how can it be done by still using the form view?
I really appreciate it.
Thanks, - SmartBear_SuppoSmartBear Alumni (Retired)Hello,
If the element is nillable in the schema (has nillable="true") then leaving the value empty in the Form editor should produce a correct null value (xsi:nil="true"). However, this also requires the element not to be optional, else soapUI will remove it instead. If you require an element to be both optional and nillable and want to send a null value, then you would have to write an event handler. There is an example of doing something similar to this here under "Using an Event Handler".
Regards,
Dain
eviware.com
Related Content
Recent Discussions
- 9 hours agoruchisingh