从 WSDL 创建“返回"类 [英] Creating classes 'back' from WSDL

查看:25
本文介绍了从 WSDL 创建“返回"类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些我需要实现的协议的 WSDL 描述(-> 客户端知道"API,我只需要为它编写服务器).有没有什么 C# 工具可以为我生成一些起始类?

I've got some WSDL description of a protocol which I need to implement (-> client 'knows' the API, I need just to write server for it). Is there any tool for c# that will generate some starting classes for me?

推荐答案

当然 - 查看 svcutil.exe .

Sure - check out svcutil.exe .

来自 MSDN:

ServiceModel 元数据实用工具用于生成服务模型代码从元数据文档和元数据来自服务模型代码的文档.

The ServiceModel Metadata Utility tool is used to generate service model code from metadata documents and metadata documents from service model code.

ServiceModel 元数据实用工具可以在 Windows SDK 中找到安装位置,具体来说,C:\程序文件\微软SDKs\Windows\v6.0\Bin

The ServiceModel Metadata Utility Tool can be found at the Windows SDK installation location, specifically, C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin

svcutil.exe 是用于此工作的 WCF 相关工具 - WCF 在 .NET 3.0 及更高版本中可用.

svcutil.exe is the WCF-related tool for this job - with WCF being available in .NET 3.0 and higher.

这篇关于从 WSDL 创建“返回"类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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