简体   繁体   中英

The URL/Endpoint Address of a running WCF service

I have a WCF service (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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM