A Step-by-Step approach of learning WCF architecture :
In any communication oriented scenario, there is always a service waits for messages to arrive and a client tries to consume the service. In WCF this happens with the help of metadata,WSDL definition, endpoint and channel. Let me take you to a step-by-step approach of WCF architecture and its functionality.
1. Service waits for message to arrive and on other side client wants to consume the service.
2. Like in network programming, we have sockets exposed by the server, here we have service exposing the metadata. To consume the service, client must be able to retrieve the metadata.
3. Service exposes the metadata, typically in the format of WSDL definition.
4. Client retrieve the WSDL definition & then run it through a client side metadata import tool.
5. This will produce client side endpoints that represents the information to communicate that service through one of the endpoints.
6. Client once has those endpoint definitions, can then choose any of the endpoint.
7. Client construct a channel based on the endpoint going to be used. Once the client has constructed the channel based on the endpoint, it can then begin sending messages to the service through that channel & can make method calls on the channel instance.
This completes the flow of WCF architecture (refer the figure above).
In any communication oriented scenario, there is always a service waits for messages to arrive and a client tries to consume the service. In WCF this happens with the help of metadata,WSDL definition, endpoint and channel. Let me take you to a step-by-step approach of WCF architecture and its functionality.
2. Like in network programming, we have sockets exposed by the server, here we have service exposing the metadata. To consume the service, client must be able to retrieve the metadata.
3. Service exposes the metadata, typically in the format of WSDL definition.
4. Client retrieve the WSDL definition & then run it through a client side metadata import tool.
5. This will produce client side endpoints that represents the information to communicate that service through one of the endpoints.
6. Client once has those endpoint definitions, can then choose any of the endpoint.
7. Client construct a channel based on the endpoint going to be used. Once the client has constructed the channel based on the endpoint, it can then begin sending messages to the service through that channel & can make method calls on the channel instance.
This completes the flow of WCF architecture (refer the figure above).
No comments:
Post a Comment