码迷,mamicode.com
首页 > 其他好文 > 详细

WCF: Hosting WCF In IIS

时间:2017-06-15 00:39:09      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:end   service   files   computer   9.png   poi   can   sts   cti   

1. Create an IIS Application as below

技术分享

 

2. In the physical path, there‘re 2 files and 1 App_Code folder

  技术分享

 

  a. App_code contains the WCF Service contract and class implementing the contract

技术分享

 

  b. service.svc contains code hosts the service 

技术分享

  c. Web.config configure the service endpoints exposed to clients

技术分享

 3. Make sure items below is enabled for your computer

  a. IIS

  b. WCF HTTP Activation

技术分享

4. Go to http://localhost/IISHostedCalc/service.svc, we can see the service is created.

技术分享

 

WCF: Hosting WCF In IIS

标签:end   service   files   computer   9.png   poi   can   sts   cti   

原文地址:http://www.cnblogs.com/ATually/p/7011591.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!