In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what is WCF metadata exchange". In daily operation, I believe many people have doubts about what WCF metadata exchange is. I have consulted all kinds of materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "what is WCF metadata exchange"! Next, please follow the small series to learn together!
Once we understand the concept of WCF service metadata, we can understand why we want to expose service metadata. The metadata for a WCF service describes the core information about the service that clients need to know in order to communicate with the service.
To achieve communication between heterogeneous platforms or systems, the previous technology was to use Web Services because of its self-describing, extensible, platform-independent advantages. The client only needs to obtain the relevant information of the service according to the Web Service address, reverse the sequence to the local code, and invoke the service through the service proxy.
One of the main features of WCF services is cross-platform service interaction. The important reason for exposing service metadata is to solve the key problem of heterogeneous client service interaction. Metadata is XML-based and self-describing. The client can generate native code based on the service's metadata inverse, whether it's c#, vb, or java. WCF services have two scenarios for publishing their own metadata. One provides metadata based on the HTTP-GET protocol; the other is MEX endpoint metadata exchange, which uses a specialized endpoint like WCF services, called MEX metadata exchange endpoint.
Definition in MetadataExchangeClientMode enumeration type in System.ServiceModel.Description namespace using System; namespace System.ServiceModel.Description { // Summary: // Specifies the exchange mode used to obtain metadata. public enum MetadataExchangeClientMode { // Summary: // A WS-Transfer Get request is used. MetadataExchange = 0, // // Summary: // An HTTP GET request is used. HttpGet = 1, } }
WCF metadata exchange endpoints are similar to other endpoints, containing their own addresses, bindings (communication protocol Binding), contracts (service, operation, data Contract), but using the service contract IMetadataExchange provided by WCF. The two ways to publish metadata use two different standard network transport protocols, the former HTTP/GET request, the latter WS-MetadataExchange(MEX: WCF supports basic binding HTTP, HTTPS, TCP, IPC and other binding protocols). When the WCF Metadata Exchange service is enabled, metadata exchange behavior must be explicitly configured.
At this point, the study of "What is WCF Metadata Exchange" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.