开发者

The URL/Endpoint Address of a running WCF service

开发者 https://www.devze.com 2023-03-20 11:46 出处:网络
I have a WCF servi开发者_StackOverflowce (A) that runs in a web type container (IIS etc etc). I need to send the endpoint address/URL of this service (A) to another service (B). The service (A) is con

I have a WCF servi开发者_StackOverflowce (A) that runs in a web type container (IIS etc etc). I need to send the endpoint address/URL of this service (A) to another service (B). The service (A) is configured via web.config and the system.serviceModel tags. How can I find the endpoint address/URL of the service (A) in c#.


Have you looked at OperationContext.Current.EndpointDispatcher.EndpointAddress

From MSDN Documentation:

Gets the address of the endpoint.

0

精彩评论

暂无评论...
验证码 换一张
取 消