WCF Service Endpoints vs Host Base address

后端 未结 3 1876
终归单人心
终归单人心 2020-12-02 23:01

so i\'m a litle confused over what the service endpoints and host base address is for. In all the examples i have walked through so far they talk about setting up the endpoi

3条回答
  •  無奈伤痛
    2020-12-02 23:45

    When you host the WCF service on IIS, the base address can only be the URL to the .svc file. If you specify any other base address, it's ignored. You can still specify the relative URI for your endpoints, such as address="basic" or address = "ws". Then the address on the endpoint becomes /basic and /ws in this case.

提交回复
热议问题