Contracts(Essential Windows Communication Foundation)
2010-03-30 13:18
465 查看
WCF heavily leverages SOAP for contract definitions. Specifically, it uses WDSL for describing service endpoints and XSD for describing data.The service operations defined in WSDL are used to route incoming messages to the correct .NET class at runtime. Similarly, the XML documentsdefined by XSD contracts are deserialized into .NET types and passed to the service operations at runtime. Together, the WSDL and XSD definitions provide a standards-based representation of the .NET types used within a service implementation. Three types of contracts were defined in detail: • Service contracts. Service contracts describe the functional operations implemented by the service. • Data contracts. Data contracts describe the data structures through which the service communicates. A data contract serializes CLR types to XML and is strictly opt-in with their data members. • Message contracts. Message contracts work with typed and untyped data and provide precise control over the SOAP headers and bodies.
相关文章推荐
- Channels(Essential Windows Communication Foundation)
- Basics(Essential Windows Communication Foundation)
- Bindings(Essential Windows Communication Foundation)
- Serialization and Encoding(Essential Windows Communication Foundation)
- Hosting(Essential Windows Communication Foundation)
- Behaviors(Essential Windows Communication Foundation)
- Essential Windows Communication Foundation
- Essential Windows Communication Foundation (WCF): For .NET Framework 3.5
- [转载]Windows Communication Foundation入门(Part Two)
- Windows Communication Foundation介绍(四)
- Windows Communication Foundation入门(Part One)
- 书讯--Microsoft Windows Communication Foundation Step by Step
- Windows Communication Foundation 体系结构
- Windows Communication Foundation and RESTful Web Services Primer(教你制作rest wcf)
- TS:70-503 Windows Communication Foundation TS: 70-505 Windows Form Application Dev 考试感言
- 什么是 Windows Communication Foundation
- 书讯--Microsoft Windows Communication Foundation Step by Step
- 书讯--Microsoft Windows Communication Foundation Step by Step
- Windows Communication Foundation之旅(Part Four)
- MSDN 提供的有关 Windows Communication Foundation (WCF) 的各个方面的示例说明