在WCF中序列化数据 [英] Serializing the data in WCF

查看:133
本文介绍了在WCF中序列化数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨开发者,



我使用DataContract传输数据黑白服务和客户端,我有点困惑我是否需要序列化DataContract手动或.NET框架的数据将处理这个。



提前谢谢。

解决方案

< blockquote>框架将处理它。

只有当你想要自定义你的消息然后发送它时你才需要自己做。

这可以是通过自定义服务的绑定/编码来完成。


Hi Developers,

I am using DataContract to transfer the data b/w service and client, i am having the bit confusion in whether i have to serialize the data which is DataContract manually or .NET framework will take care of this.

Thanks in advance.

解决方案

The framework will take care of it.
You need to do this on your own only when you want to customize your messsage and then send it.
This can be done by customizing the binding / encoding of the service.


这篇关于在WCF中序列化数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆