Limitations in asmx web services
When designing ASMX web services, there is some kind of limitation on the types you can use (Serialization / Deserialization).
Can anyone please let me know what these restrictions are? Is there any way to get around it by simply adding a serializable attribute to the code?
+2
dotnetdev
source
to share
1 answer
Nope. Traditional web service use ASMX XmlSerializer
class and others is subject to the restrictions imposed by this class , the most famous of which is probably not being able to serialize dictionaries. It doesn't care about the attribute [Serializable]
like BinaryFormatter
.
+4
Mehrdad afshari
source
to share