简体   繁体   中英

Hosting a WCF webservice and WCF Net.Tcp service in the same IIS container?

I'm trying to build a system which consists of:

  1. A centralized IIS component
  2. A Client application written in .Net
  3. A Third party application.

The .Net Client should on startup connect to a WCF Net.Tcp Binding on the IIS application and register it's self as a consumer of requests (Callbacks).

The Third party application will then make Web Service calls to the IIS server which will farm out the request to the .Net Clients.

How do I host mutliple WCF services IIS? Is this possible?

I assume that I'd have to instantiate the services in the web.config as endpoints but I'm not sure how to do this.

You could use multiple SVC files hosted within the same application or you could use MVC-style Routing to establish the multiple ServiceHosts .

Here is an MSDN example on hosting WCF within IIS using web.config and SVC files.

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