如何生成wcf服务库项目的wsdl文件? [英] How to generate a wsdl file of a wcf service library project?

查看:25
本文介绍了如何生成wcf服务库项目的wsdl文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案中有几个 Wcf 服务库项目(不是 Wcf 服务应用程序).我必须将项目的 .wsdl 文件提供给将使用这些服务的同事.

I have a few Wcf service library projects (not Wcf service application) in my solution. I have to give the .wsdl files of the projects to my collegue who will consume the services.

我该怎么做?

提前致谢,

推荐答案

您可以使用 WCF Service Host 启动一个新的服务实例,然后在服务地址中添加 ?wsdl 以访问 wsdl (http://localhost:1234/MyService.svc?wsdl例如).

You can use the WCF Service Host to start a new instance of your service, and then add ?wsdl to the service address to access the wsdl (http://localhost:1234/MyService.svc?wsdl for instance).

WcfSvcHost 的语法如下:

WcfSvcHost's syntax is the following:

WcfSvcHost.exe /service:<PathToServiceDLL> /config:<PathToServiceConfig>

这篇关于如何生成wcf服务库项目的wsdl文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆