WCF and location transparency
Objects in DCOM и .Net Remoting - все объекты воспринимаются как локальные: удаленные объекты доступны через прокси.
Objects in WCF: все объекты, и локальные , и удаленные, доступны через прокси.
Objects in WCF: все объекты, и локальные , и удаленные, доступны через прокси.
Address
In WCF every service is associated with an unique address:- location of the service
- transport protocol, or scheme
Transport protocols
- HTTP/HTTPS (http or https, 80 port as default for http, 443 for https)
- TCP (net.tcp, 808 port as default)
- IPC - Inter-Process Communication (net.pipe)
- Peer network
- MSMQ(net.msmq)
- Service bus (sb, http, https)
С портами вообще непонятно, муж говорит, на уровне хттп порты не определяются. Как вы думаете?
Location of service:
[base address]:[optional URI]
Base address:
[transport]:/[machine or domain]:[optional port]
[transport]:/[machine or domain]:[optional port]
Samples:
http://localhost:8001
http://localhost:8001/MyService
net.tcp://localhost:8002/MyService
net.pipe://localhost/MyPipe
net.msmq://localhost/private/MyQueue
net.msmq://localhost/MyQueue
http://localhost:8001/MyService
net.tcp://localhost:8002/MyService
net.pipe://localhost/MyPipe
net.msmq://localhost/private/MyQueue
net.msmq://localhost/MyQueue
The way to read an address such as:
http://localhost:8001 is like this:
“Using HTTP, go to the machine called localhost, where on port 8001 someone is waiting for my calls.”
“Using HTTP, go to the machine called localhost, where on port 8001 someone is waiting for my calls.”
If there is also a URI, as in: http://localhost:8001/MyService the address will read as follows:
“Using HTTP, go to the machine called localhost, where on port 8001 someone called MyService is waiting for my calls
“Using HTTP, go to the machine called localhost, where on port 8001 someone called MyService is waiting for my calls
Комментариев нет:
Отправить комментарий