DOTNET REVANTH

Windows Communication Foundation (WCF) Part-2

Important Points on WCF service

WCF stands for Windows Communication Foundation. The elementary feature of WCF is interoperability. It is one of the latest technologies of Microsoft that is used to build service-oriented applications. Based on the concept of message-based communication, in which an HTTP request is represented uniformly, WCF makes it possible to have a unified API irrespective of diverse transport mechanisms.

WCF was released for the first time in 2006 as a part of the .NET framework with Windows Vista, and then got updated several times. WCF 4.5 is the most recent version that is now widely used.
A WCF application consists of three components −
  • WCF service,
  • WCF service host, and
  • WCF service client.
WCF platform is also known as the Service Model.

Fundamental Concepts of WCF

Message

This is a communication unit that comprises of several parts apart from the body. Message instances are sent as well as received for all types of communication between the client and the service.

Endpoint

It defines the address where a message is to be sent or received. It also specifies the communication mechanism to describe how the messages will be sent along with defining the set of messages. A structure of an endpoint comprises of the following parts −
  • Address − Address specifies the exact location to receive the messages and is specified as a Uniform Resource Identifier (URI). It is expressed as scheme://domain[:port]/[path]. Take a look at the address mentioned below −
    net.tcp://localhost:9000/ServiceA
    Here, 'net.tcp' is the scheme for the TCP protocol. The domain is 'localhost' which can be the name of a machine or a web domain, and the path is 'ServiceA'.
  • Binding − It defines the way an endpoint communicates. It comprises of some binding elements that make the infrastructure for communication. For example, a binding states the protocols used for transport like TCP, HTTP, etc., the format of message encoding, and the protocols related to security as well as reliability.
  • Contracts − It is a collection of operations that specifies what functionality the endpoint exposes to the client. It generally consists of an interface name.

Hosting

Hosting from the viewpoint of WCF refers to the WCF service hosting which can be done through many available options like self-hosting, IIS hosting, and WAS hosting.

Metadata

This is a significant concept of WCF, as it facilitates easy interaction between a client application and a WCF service. Normally, metadata for a WCF service is generated automatically when enabled, and this is done by inspection of service and its endpoints.

WCF Client

A client application that gets created for exposing the service operations in the form of methods is known as a WCF client. This can be hosted by any application, even the one that does service hosting.

Channel

Channel is a medium through which a client communicates with a service. Different types of channels get stacked and are known as Channel Stacks.

SOAP

Although termed as ‘Simple Object Access Protocol’, SOAP is not a transport protocol; instead it is an XML document comprising of a header and body section.

Advantages of WCF

  • It is interoperable with respect to other services. This is in sharp contrast to .NET Remoting in which both the client and the service must have .Net.
  • WCF services offer enhanced reliability as well as security in comparison to ASMX (Active Server Methods) web services.
  • Implementing the security model and binding change in WCF do not require a major change in coding. Just a few configuration changes is required to meet the constraints.
  • WCF has built-in logging mechanism whereas in other technologies, it is essential to do the requisite coding.
  • WCF has integrated AJAX and support for JSON (JavaScript object notation).
  • It offers scalability and support for up-coming web service standards.
  • It has a default security mechanism which is extremely robust.

  • Windows Communication Foundation (WCF) is a framework for building services that process XML messages. WCF allows you to transmit messages using different transport protocols (such as HTTP, TCP, and MSMQ) and using different XML representations (such as text, binary, or MTOM, which is commonly referred to as the message encoding in WCF.
  • If you want to host many WCF Services on one machine and want them to use shared memory for their communication, use a named pipe=>net.pipe, and then use tcp for the communication to WCF Services on different machines.
  • Configuration of nettcp binding focuses on creating a channel stack that will perform better in Windows environments, giving you a great option for replacing your various COM+ and .NET remoting investments.
  • BasicHttpBinding was designed for scenarios where interoperability is of utmost importance. As a result, BasicHttpBinding uses HTTP for the transport and text for the message encoding.


Windows Communication Foundation (WCF) Part-2 Windows Communication Foundation (WCF) Part-2 Reviewed by Revanth on December 30, 2017 Rating: 5

13 comments:

  1. hai,
    nice blog it is usefull information.thanks for sharing..
    thank you
    DOTNET training in hyderabad

    ReplyDelete

  2. very nice article you shared.
    if you want to know the technologies updates,visit below site.
    dot net and latest technologies Tutorials

    ReplyDelete
  3. Thanks for sharing such a nice blog...It is very useful and informative..
    mitrozetech

    ReplyDelete
  4. Commenting on a blog is an art. Good comments create relations.
    To know how to get better results by using different microphones this profile will fit to know about mic test
    process please visit.

    ReplyDelete
  5. Thank you for sharing this information. I have shared the new profile on fake details generator with others. Which generates fake generated data according to your requirement.

    ReplyDelete
  6. The article is so good and so inspiring. What is the most popular microphone? I think you should know the information so we are presenting our article about microphones and there are different types. Where is the Microphone on a MacBook Pro?

    ReplyDelete
  7. A fascinating discussion is the value comment. I think it is best to write extra on this matter, thank you very much. We are presenting in front of you with such a new and different topic how to fix HP laptop microphone not working issues?. This article will prove beneficial for everyone.

    ReplyDelete
  8. It was great to have you on our website. These themes and colors are great. Have you created this website yourself? When I build my own website, I'd like to know where you got the theme, or what it's called, so I can try it out. I appreciate your kind words. We have compiled an article related to Wheel Spinner because it is common for people to waste their time in taking important decisions. You can use this random name picker to help you pick a random name.

    ReplyDelete
  9. You've shared some great information in this article, and I'll share it with my friends. If your webcam is not working properly, you can take data from this profile if your webcam is not working properly. You can follow this profile test webcam for more tips and information.

    ReplyDelete
  10. This article was a lot of fun to read. You gave us a lot of important information. You provided me with just what I was looking for. Continue to share similar information in the future. Thank you very much. This post explains how to post on Instagram from pc or mac without having an Instagram account.


    ReplyDelete

Facebook

Powered by Blogger.