WCF Address

Introduction

WCF Address is the one of the measure element of WCF Service Endpoint. It contains the location of the WCF Service. This article describes details about WCF Address and the address format of the different schemes.

Getting Started

The address is the URL that defines the location of the service. The address is a way of letting the client know that where a service is located. in Wcf, every service associated with a unique address. This contains the location of the service and transport schemas.

The address format of WCF Transport schema always follows.
 [Transport] ://[Domain Name or Machine Name]:[Port]//[Service Name]   

WCF Supports following transport schemas

  1. HTTP
  2. TCP
  3. Per Network
  4. IPC(Inter-Process Communication over named pipes)
  5. MSMQ

Examples

HTTP Address Format

 http://localhost:81/MyService   
When the port number is not specified, the default port is 80.
 http://localhost/MyService   
TCP ddress Format
 net.tcp://localhost:82/MyService   
When a port number is not specified, the default port is 808.
 net.tcp://localhost/MyService   
Two HTTP and TCP address from the same host can share a port, even on the same matchine.
IPC Address Format
This address has no port number and communication using named pipes cannot be "cross-machine" (between two machines). Here also a different address format because the IIS address requires a virtual directory name as well as a service (.svc) filename. We can only open a named pipe once per machine and therefore it is not possible for two named pipe addresses to share a pipe name on the same machine.
 net.pipe://localhost/MyService   
MSMQ Address Format
MSMQ address format differs from others.
 net.msmq://localhost/private/MyService  
 net.msmq://localhost/MyService  
[private] is optional, but when used it contains the address of a target queue that is private queue.

Related Articles

  1. WCF Endpoints
  2. WCF Contracts
  3. WCF Bindings

Summary

In the above of this article we have discussed about WCF Address and different address format,Hope this article will make you helpful

Thanks

Kailash Chandra Behera

An IT Professional with 12 years experience in development life cycle in windows, service and Web based application using Microsoft.Net technologies. Proven record of developing all phases of projects in Microsoft.Net technology from initiation to closure aligning with the company's Business objectives to drive process improvements, competitive advantage and bottom-line gains. -> Good exposure of independently working and developing multiple projects ->Committed to efficient and effective development of projects in a fast-paced and deadline driver environment. Skill :- Develop and design projects in various technologies of Microsoft Technology. Total IT Experience- 13+

Previous Post Next Post

نموذج الاتصال