托管WCF休息服务 [英] Hosting WCF Rest services
问题描述
我在框架4.0中创建了一个WCF Rest服务,它返回一个xml文档。我通过右键单击解决方案中的svc文件在浏览器中查看它,它很好。在我的本地计算机上获取响应xml的URL是 http:// localhost:50052 / Service1.svc / GetDocument /
但是,客户端需要像访问Web服务asmx URL一样访问我的服务URL。我需要托管WCF Rest服务。
如何在IIS 7.0中托管WCF Rest服务?第三方如何访问我的服务。
Hi,
I have created a WCF Rest service in framework 4.0 which returns a xml document. I viewed it in browser by right clicking the svc file in the solution, and it is fine. The URL to get the response xml on my local machine is http://localhost:50052/Service1.svc/GetDocument/
However, the client needs to access my service URL just like a web-service asmx URL. I need to host the WCF Rest service.
How do I host the WCF Rest service in IIS 7.0? How will the third party access my service.
推荐答案
您好,
以下链接可能对您有所帮助。看看。
http://social.technet.microsoft.com/wiki/contents/articles/1265.hosting-a-wcf-rest-service-on-iis -en-us.aspx [ ^ ]
http://blogs.msdn.com/b/ alikl / archive / 2010/06/07 / restful-wcf-architecture-hosting-restful-wcf-services-in-iis.aspx [ ^ ]
快乐编码.. :)
问候
anurag
Hi,
The below link might help you.Have a look.
http://social.technet.microsoft.com/wiki/contents/articles/1265.hosting-a-wcf-rest-service-on-iis-en-us.aspx[^]
http://blogs.msdn.com/b/alikl/archive/2010/06/07/restful-wcf-architecture-hosting-restful-wcf-services-in-iis.aspx[^]
Happy Coding..:)
regards
anurag
WCF REST服务可以从站点本身发布并直接托管。
The WCF REST service can be published from the site itself and directly be hosted.
这篇关于托管WCF休息服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!