问题描述
我在框架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.
推荐答案
这篇关于托管WCF休息服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!