Adding Service Reference to a WCF Service in Silverlight project defaulting to XmlSerialization for
Posted
by Shravan
on Stack Overflow
See other posts from Stack Overflow
or by Shravan
Published on 2010-06-01T17:00:28Z
Indexed on
2010/06/01
17:03 UTC
Read the original article
Hit count: 309
silverlight-3.0
|wcfservice
Hi, I am adding a WCF Service Reference in a Silverlight project, it is generating code with XmlSerialization attributes for DataMembers than SOAP Serialization. But, if the same WCF service reference is added in an ASP.Net project, is generating code with SOAP Serialization attribtues. Can anybody let me know what could be the cause for it, and how can I force reference to generate SOAP Serialization? XmlSerialization - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.1")] SOAP Serialization - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] These are the attributes in the code generated for types, which I am looking into when saying it is using XmlSerialization/SOAP Serialization
© Stack Overflow or respective owner