I know there’s 3 type s of serialization in .net :
Soap , Xml , Binary.
Wcf instructed the DataContract attribute which also serialize … but via what ?
Binary is not – i know.
So by which mechanism ?
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.
It is the binding defined for the given endpoint which specifies the serialization mechanism. For example:
basicHttpBindingandwsHttpBindinguse SOAPnetTcpBindinguses binary serializationwebHttpBindingcould use XML, Json, …You can read more about the different built-in bindings and their properties on this article. Thanks to the extensibility of WCF you could of course write your own custom bindings.