本文介绍了什么类型的序列化在幕后使用 Wcf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
限时送ChatGPT账号..我知道 中有 3 种类型的序列化:
I know there's 3 type s of serialization in :
Soap , Xml , Binary.
Wcf 指示 DataContract 属性也序列化...但通过 what ?
Wcf instructed the DataContract attribute which also serialize ... but via what ?
二进制不是 - 我知道.
Binary is not - i know.
那么通过什么机制?
推荐答案
它是为给定端点定义的绑定,它指定了序列化机制.例如:
It is the binding defined for the given endpoint which specifies the serialization mechanism. For example:
basicHttpBinding
和 wsHttpBinding
使用 SOAPnetTcpBinding
使用二进制序列化webHttpBinding
可以使用 XML、Json、...
basicHttpBinding
and wsHttpBinding
use SOAP
netTcpBinding
uses binary serialization
webHttpBinding
could use XML, Json, ...
您可以在这篇文章上阅读有关不同内置绑定及其属性的更多信息.由于 WCF 的可扩展性,您当然可以编写自己的自定义绑定.
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.
这篇关于什么类型的序列化在幕后使用 Wcf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论