.NET Compact Framework 3.5 支持 WCF 的子集

.NET Compact Framework 3.5 已经支持 Windows Communication Foundation (WCF)了,这是.NET CF 3.5 最让人兴奋的特性之一。不过,.NET CF 版的 WCF是.NET Framework 3.5 版 WCF 的功能子集。MSDN Library for Visual Studio 2008 Beta 2 (Development Tools and Languages|Visual Studio|.NET Framework Programming in Visual Studio|.NET Compact Framework|Application Development|Windows Communication Foundation (WCF) Development|Messaging in the .NET Compact Framework) 中是这样描述的:
The subset of Windows Communication Foundation (WCF) that is implemented in the .NET Compact Framework provides a unified programming model for building message-oriented applications. It enables developers to build secure messaging applications that work across platforms and that support interaction with existing WCF services on the desktop.
(译文:.NET 精简框架实现了 WCF 的子集,为构建面向消息的应用程序提供了统一的编程模型。这使得开发人员能够构建跨平台的安全的消息应用程序,并且支持跟现有的运行在桌面平台的 WCF 服务交互。)

WCF messaging layer on the .NET Compact Framework

Support for the WS-Security version 1.0 specification includes SOAP message security using X.509 certificates. The Message class is built on the WS-Addressing standard.

MSDN Library for Visual Studio 2008 Beta 2 对 Compact WCF与 Desktop WCF 之间的差异描述得不够详尽,只是简单描述了一下架构和安全方面的不同。

今天发现有人整理了一个比较详细的表格,供大家参考:

Feature

Desktop WCF

Compact WCF

Bindings:
· BasicHttpBindingYesYes
· CustomBindingYesYes
· WindowsMobileMailBindingN/AYes
· ExchangeWebServiceMailBindingYes, via NetCF installYes
Formatters:
· SoapFormatterYesYes
· BinaryFormatterYesNo
Encoders:
· TextMessageEncoderYesYes
· BinaryMessageEncodingBindingElementYesNo
· MTOMEncoderYesNo
· GzipEncoderSample availableSample available
Transports:
· HttpTransportBindingElementYesYes
· HttpsTransportBindingElementYesYes
· MailTransportBindingElementYes, via NetCF installYes
· MsmqTransportBindingElementYesNo
· TcpTransportBindingElementYesNo
· (other transports)YesNo
XmlDictionaryReader/WriterYesYes; stub around XmlTextReader/Writer
DataContractSerializerYesNo; but can be wire-compatible with DCS via XmlSerializer
Service proxy generationYes; via SvcUtil.exeYes; via NetCFSvcUtil.exe, not integrated into VS2008
· Non-HTTP transportsYesNo
· Custom headersYesNo
WS-AddressingYesYes
WS-Security message level security
· X.509YesYes
· Username/passwordYesNo
· SecurityAlgorithmSuite.Basic256Rsa15YesYes
· SecurityAlgorithmSuite.Basic256YesNo
WS-ReliableMessagingYesNo
Patterns
· Service modelYesNo
· Message layer programmingYesYes
· Buffered messagesYesYes
· Streaming messagesYesNo
· Endpoint descriptions in .config filesYesNo
Channel extensibilityYesYes
Security channel extensibilityYesNo

其中 Mail Binding 是很有意思的一个特性,我 以前的随笔有提过。不过这个功能需要跟 Exchange Server 配合使用,有一定的局限性。WCF Exchange Server Mail Transport 使用方法可以参考 MSDN 文档。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值