Cainiao learns WCF notes-concept, cainiao wcf notes

Source: Internet
Author: User
Tags msmq

Cainiao learns WCF notes-concept, cainiao wcf notes
Background

The term "WCF" has never been unfamiliar. It has been used many times in actual projects, but it has never been time to learn a system, take a look at Jiang Jinnan's "Comprehensive Analysis of WCF" and take some notes. If you have any mistakes, please let us know.

This chapter aims to give a rough understanding of the Vocabulary Involved in Windows communication programming.

Reference: http://baike.baidu.com/view/1140438.htm? Fr = aladdin (I have to say that Baidu encyclopedia, Wikipedia, and other materials are abundant) and "Comprehensive Analysis of WCF".

 

Introduction to WCF

Windows Communication Foundation (WCF)

It is.. NET Framework. NET Framework3.0 is released as a component. To adapt to the trend of SOA development, it integrates the original Windows communication. NET Remoting, WebService, Socket, MSMQ and other technical mechanisms (WCF is an integration of existing distributed communication technologies), and integrates HTTP and FTP technologies.

 

SOA Service-Oriented Architecture

Service-oriented (SO) represents a design concept. Like object-oriented and component-oriented, Service-oriented (SO) represents an idea unrelated to technology.

A service-oriented architecture that allows you to deploy, combine, and use loosely coupled coarse-grained application components in a distributed manner based on your needs. The service layer is the basis of SOA and can be directly called by applications to effectively control the human dependency between the system and the software agent.

WSDL, UDDI, and SOAP are basic components of SOA.

WSDL is used to describe the service. UDDI is used to register and search for the service. SOAP is used as the transport layer to send messages between consumers and service providers.

SOAP is the default mechanism of Web Services. Other technologies enable binding of other types of services. A consumer can search for a service in the UDDI registry, obtain the WSDL description of the service, and then call the service through SOAP.

 

  • WSDL
The Network Service Description Language is an XML language used to describe Web Services and describe how to communicate with Web Services (a subset of standard General Markup Language. Provides you with detailed interface instructions. WSDL is a Web Service Description Language and an interface definition language used to describe Web Service Interface Information. The WSDL document can be divided into two parts. The top part consists of abstract definitions, and the bottom part consists of specific descriptions.
  • UDDI

Universal Description Discovery and Integration is a unified Description, Discovery, and Integration protocol. Enterprises can use it to register and search Web services.

  • SOAP

Simple Object Access Protocol is a protocol specification for data exchange. It is a lightweight, simple, XML-based protocol (a subset of standard General Markup Language, it is designed to exchange structured and solidified information on the WEB.

SOAP can be used in combination with many existing Internet protocols and formats, including Hypertext Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), and multi-purpose Internet Mail Extension protocol (MIME ).

It also supports a large number of applications from the message system to Remote Process calling (RPC. SOAP uses a combination of XML-based data structures and Hypertext Transfer Protocol (HTTP) to define a standard method to use distributed objects in different operating environments on the Internet.

 

In the past several years, Microsoft has released a series of distributed communication technologies, typical of which include COM/DCOM, Enterprise Service,. NET Remoting, XML Web Service, and MSMQ.

COM and DCOM

COM is a component-based software platform developed by Microsoft since 1993. It is used for Inter-process communication (IPC) and as a platform for component-based software development.

DCOM supports communication between components on different machines, regardless of whether they are running on the LAN, Wan, or Internet. It is an extension of COM for Distributed Remote calls.

 

. NET Remoting

. NET Remoting is the first Microsoft-based. to some extent, it draws on the design of DCOM and strengthens many aspects of DCOM, so that it can become a high-performance and Scalable Distributed communication framework. However, it cannot provide cross-platform support. It only provides communication between the server and the client on the. NET platform.

The author has recently studied, if you have any questions welcome all the great god correction: http:// I .cnblogs.com/EditPosts.aspx? Catid = 615438

 

Web Services

To achieve cross-platform support, Microsoft released ASP. NET Web Service and Web Service provide cross-platform interoperability because it is built on a series of open standards, including XML, XSD, SOAP, and WSDL.

 

XML

Extensible Markup Language, a subset of Standard Generic Markup languages, a markup language used to mark electronic files to make them structured. It can be used to mark data and define data types. It is a source language that allows users to define their own markup language. It is ideal for World Wide Web transmission and provides a unified way to describe and exchange structured data independent of applications or vendors.

 

XSD

XML Schema Definition defines a legal component group for an XML document, just as the document type Definition (DTD. The Extensible Markup Language architecture is based on Extensible Markup Language (a subset of standard General Markup Language), which is used to replace Document Type Definitions (DTD ); an XML schema file describes the structure of the extensible markup language document, which is more powerful than the DTD.

 

WSDL

The Network Service Description Language is an XML language used to describe Web Services and describe how to communicate with Web Services (a subset of standard General Markup Language. Provides you with detailed interface instructions.

WSDL is a Web Service Description Language and an interface definition language used to describe Web Service Interface Information.

 

WSE

To support WS-*, Microsoft. WSE (Web Services Enhancements) is launched on the basis of the NET Web service, and WSE is launched to make up for ASP. NET Web Service, which implements the existing ASP.. NET Web Service.

 

WS -*

Some new standards have been or are being developed to expand WEB service capabilities. These standards are often referred to as WS headers (Web Service for short). Below is an incomplete list of WS series append standards:

  • WS Security)

Defines how to use XML encryption or XML signature in SOAP to protect message transmission. It can be used as an alternative or extension to HTTPS protection.

  • WS-Reliability)

A standard protocol from OASIS that provides reliable message transmission between WEB Services.

  • WS-ReliableMessaging)

It is also a protocol that provides trusted messages, which is released by Microsoft, BEA, and IBM. Currently, OASIS is standardizing it.

  • WS Addressing (WS-Addressing)

Defines how to describe the sending/Receiving address in a SOAP message.

  • WS Transaction (WS-Transaction)
Define the transaction processing method.
MSMQ

Message Queue is Microsoft's pioneering attempt in the message service field. It adopts a special communication mechanism, which is of great significance to improve and improve system scalability and availability.

Advantages: Support for offline communication, separation of senders and processors, reliable message transmission and error handling, and support for transactions.

 

Summary

Note writing is a bit messy, just writing related introductions and concepts. If you have any mistakes, please correct them.

 

Author: Sakya bitter monk Source: http://www.cnblogs.com/woxpp/p/4013670.html this article copyright belong to the author and blog park a total, welcome to reprint, but without the author's consent must retain this paragraph of the statement, and in the Article Page clearly given the original connection.

 


Cainiao assists WCF in serializing dataset

Why not? That's right.

The following is a list of features not supported by the WCF test client:

Type: Stream, Message, XmlElement, XmlAttribute, XmlNode, IXmlSerializable interface (including relevant XmlSchemaProviderAttribute attributes), XDocument, XElement, and ADO. NET able type and DataSet type (and its typed Derived classes ).

Duplex protocol.

Transaction.

Security: CardSpace, certificate, and user name/password.

Binding: WSFederationbinding, any context binding and Https binding, and WebHttpbinding (Json Response Message support ).

The WCF test client does not support calling or using a client application. We recommend that you add a reference to the Service in the client application and try again.

Question from cainiao

It's your generic problem.

This should be possible:

[OperationContract]
[ServiceKnownType (Dictionary <int, IList <Item>]
Dictionary <int, IList <Item> TransDataTable (DataSet dt1 );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.