Passing null value to web service
Posted: Sun Jan 17, 2010 10:13 pm
I am passing data to a web service.
The service has an array object called FormInfo and there are 2 strings that can be null or can have values.
From my understanding, the only values you can set in the WSDL are the elements that end with 'text()' the xpath for the string is below.
/ns1:saveForm/form/additionalInfo/FormInfo/ID1/text()
/ns1:saveForm/form/additionalInfo/FormInfo/ID2/text()
Besides passing null to the 2 strings fields, I need to also set the FormInfo Array to null if these values are not given. Is there a way to set the Array to null in the columns. As I said, I thought I would only set values in the columns with 'text()', but I also need to set this array object FormInfo to null. Sorry if this is confusing, but if anyone understands what i'm trying to do, please feel free to offer advice!
Thanks,
Nicole
The service has an array object called FormInfo and there are 2 strings that can be null or can have values.
From my understanding, the only values you can set in the WSDL are the elements that end with 'text()' the xpath for the string is below.
/ns1:saveForm/form/additionalInfo/FormInfo/ID1/text()
/ns1:saveForm/form/additionalInfo/FormInfo/ID2/text()
Besides passing null to the 2 strings fields, I need to also set the FormInfo Array to null if these values are not given. Is there a way to set the Array to null in the columns. As I said, I thought I would only set values in the columns with 'text()', but I also need to set this array object FormInfo to null. Sorry if this is confusing, but if anyone understands what i'm trying to do, please feel free to offer advice!
Thanks,
Nicole