When designing ASMX web services, there is some sort of restriction on the types which you can use (Serialize/deserialize).
Can anyone let me know what these restrictions are? Can it be bypassed by just adding the serializable attribute to the code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nope. Traditional ASMX Web services use
XmlSerializerclass and stuff are subject to the restrictions imposed by that class, the most prominent of which is probably not being able to serialize dictionaries. It doesn’t care about the[Serializable]attribute asBinaryFormatterdoes.