tags:

views:

27

answers:

1

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?

+2  A: 

Nope. Traditional ASMX Web services use XmlSerializer class 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 as BinaryFormatter does.

Mehrdad Afshari