The .NET framework for working with web services creates a class that represents the web service for use in your application. Selection fields (or dates or other numerical fields) get represented by numbers, DateTimes, or enums which can't be null in .NET, because they are value types and not reference types. As a result, any time you try to retrieve a record that has NULL in one of those fields, you will get an error. The work around we found was to manually edit the WSDL after you create the web service and change the type of all of those fields to a string. String is a reference type and can be null, so you will no longer get the error. If you need to work with the values in the correct data type in your .NET code, you can convert the string to the desired data type after retrieving it from the web service and then work with it that way.
Lyle -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of maggie2007 Sent: Tuesday, April 07, 2009 1:45 PM To: [email protected] Subject: serialize webservice response error:The string '' is not a valid AllXsd value. on my remedy form, there is a drop-down list field which has some predefined value, Remedy system also has predefined value like "(clear)". I created a webservice on that form, every webmethod is default. Created a .Net Webservice client to call that Remedy Webservice OpGetList, if select "(clear)" for that drop-down list field ( in soap response message, that field value is empty), then I got error "The string '' is not a valid AllXsd value." when OpGetList is called. I think that makes sense since "" is not defined as an enumeration type for that drop-down list field. I did try to modify the default webservice to add MinOccurs=0, Nillable=true, still got same error. -- View this message in context: http://www.nabble.com/serialize-webservice-response-error%3AThe-string-%27%27-is-not-a-valid-AllXsd-value.-tp22936482p22936482.html Sent from the ARS (Action Request System) mailing list archive at Nabble.com. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"

