首页 > 其他 > 详细

WCF: Hosting WCF In IIS

时间:2017-06-14 23:48:54      阅读:315      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!