什么类型的序列化在幕后使用 Wcf?

编程入门 行业动态 更新时间:2024-10-26 15:21:34
本文介绍了什么类型的序列化在幕后使用 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:

basicHttpBindingwsHttpBinding 使用 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:关键词]

本文发布于:2023-04-26 20:21:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1142806.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:幕后   类型   序列化   Wcf

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!