When I send back a Class, it ignores the DataContract - DataMember attributes and serializes all members of the class as well as sends the class name in the "__type" flag as well. How can I make it respect the DataMember attributes?
Asked
Active
Viewed 978 times
1 Answers
1
WebMethods use the legacy "ASMX Web Service" technology. DataContract is part of WCF.
They are totally unrelated technologies.

John Saunders
- 160,644
- 26
- 247
- 397
-
Which is preferred now, ScriptMethod or WebMethod? – Raine Sep 29 '09 at 18:36
-
http://stackoverflow.com/questions/941484/webmethod-vs-scriptmethod answers my question. – Raine Sep 29 '09 at 18:37