Hi All,
I am currently in the process of creating a web service client. For all optional data elements if we don't have values available we don't pass that element in the
SOAP request payload and things work fine but for some specific use cases which we cannot control these elements are being passed something like this
which causes the web service to fail. In general what is the correct way to handle this. should we not be passing the elements in the absence of values or should we pass empty elements
(
).
In the latter two I believe the value the Web service receives is blank ("") hence causes it to fail.
Should the web service be handling blank strings or not passing the element at all is the right way to represent null values.
Let me know your thoughts
Thanks,