[WCF] address

Source: Internet
Author: User

In WCF, the Service corresponds to address 1 one by one. The address tells us two information about the connection to the service: Location 2 and transmission protocol (transmission mode ).

 

WCF 1.0 supports five transmission modes:

L
HTTP

L
TCP

L
Peer
Network

L
IPC

L
MSMQ

 

Valid WCF addresses are strings in the format of [transmission mode]: // [location] [: Port] [/service name. For example:

L
Http: // localhost: 8001

L
Http: // localhost: 8001/myservice

L
Net. TCP: // localhost: 8002/myservice

L
Net. Pipe: // localhost/mypipe

L
Net. MSMQ: // localhost/private/myservice

 

TCP

Net. TCP indicates that data is transmitted over TCP. If no port is specified, port 808 is used by default.

 

HTTP

You can use HTTP or HTTPS to indicate that the HTTP protocol is used. The default port number is 80. In the example above, the two HTTP addresses can use the same port number.

 

IPC

Use Net. pipe to represent the IPC address. Use IPC
In Windows, the named pipe performs data transmission. In WCF, the named pipe cannot be called across machines.

 

MSMQ

Use Net. the MSMQ identifier. net. when MSMQ is used to transmit data, you must specify the name of the MSMQ queue. When operating on a private queue, you must specify the queue type (private)

 

Peer Network

Specify a P2P transmission using net. P2P.

 

1. Address

2.
Location

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.