15 years ago
Calling method with nullable parameter
In our web service, written in C# 2, there are methods with nullable parameters.
Here is a fragment from wsdl :
When we call any method with nullable parameter from SoapUI, passing null value (xsi:nil="true" ), it doesn't work.
But calling from WebServiceStudio(another tool for consuming web services) is succeeded.
When generating request, WebServiceStudio add "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" to soap
envelope, but SoapUI does not do it.
When I just copy request, generated by WebServiceStudio, into SoupUI, and then write xsi:nil="true" for this parameter and run the request, it works ok.
So the question is : can SoapUi automatically include this namespace -
"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - into request ? Thanks in advance.
Here is a fragment from wsdl :
When we call any method with nullable parameter from SoapUI, passing null value (xsi:nil="true" ), it doesn't work.
But calling from WebServiceStudio(another tool for consuming web services) is succeeded.
When generating request, WebServiceStudio add "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" to soap
envelope, but SoapUI does not do it.
When I just copy request, generated by WebServiceStudio, into SoupUI, and then write xsi:nil="true" for this parameter and run the request, it works ok.
So the question is : can SoapUi automatically include this namespace -
"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - into request ? Thanks in advance.