Choosing an endpoint address
It's great that we've talked about the important C (the contract) in the ABCs of WCF endpoints, but the story is far from complete. So far, we have a service definition completely devoid of transport information. Where does someone go to consume this service? The goal of the endpoint address is to:
- Tell us the communication scheme
- Tell us the location of the service
WCF provides a number of out-of-the-box communication schemes for accessing WCF services. These include options such as:
- HTTP
- TCP
- MSMQ
When looking at a service URI such as https://packt:8081/VendorService/SecureVendorService.svc
, what am I able to infer from this WCF address? First, I can see that I'm using an HTTP/S scheme in order to secure my HTTP transmission channel via SSL certificates. Next, I can tell that the domain hosting this service is called packt
and uses port 8081
for the HTTP/S traffic. Finally, I can gather the path of the service that I wish to call.
We'll see shortly how to actually set up a WCF service to listen on the address of your choice. For now, simply note that the address of a service is a key part of the whole service endpoint.
- Implementing Modern DevOps
- Vue.js前端開發基礎與項目實戰
- Web交互界面設計與制作(微課版)
- Python Game Programming By Example
- React.js Essentials
- Xamarin.Forms Projects
- 精通網絡視頻核心開發技術
- JavaScript 程序設計案例教程
- 程序是怎樣跑起來的(第3版)
- Protocol-Oriented Programming with Swift
- PHP編程基礎與實例教程
- Internet of Things with ESP8266
- SQL Server 2016 從入門到實戰(視頻教學版)
- Data Manipulation with R(Second Edition)
- 算法訓練營:海量圖解+競賽刷題(入門篇)