What type of serialization uses Wcf behind the scenes?

前端 未结 2 1429
野的像风
野的像风 2021-02-14 18:12

I know there\'s 3 type s of serialization in .net :

Soap , Xml , Binary.

Wcf instructed the DataContract attribute which also serialize ... bu

2条回答
  •  不知归路
    2021-02-14 19:07

    It is the binding defined for the given endpoint which specifies the serialization mechanism. For example:

    • basicHttpBinding and wsHttpBinding use SOAP
    • netTcpBinding uses binary serialization
    • webHttpBinding could 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.

提交回复
热议问题