问题描述
我要寻找一个代码生成比可以生成C#代码来访问的方式类似于如何工作。
I am looking for a code generator than can generate C# code to access RESTful web services described by WADL files in a way similar to how wadl2java works.
做索姆搜索我遇到了 REST的API代码根的项目,但尽管最新的源代码是否确实支持C#中,没有。 (C#的按钮是存在的,但它被禁用。)
Doing som searching I came across the rest-api-code-gen project on Google Code, but although the latest source does in fact support C#, the REST Describe & Compile demo site does not. (The C# button is there, but it's disabled.)
我知道我可以下载源代码并建立自己与最新版本的服务器,但我宁愿不要要,因为我需要的是一个命令行工具,而不是依赖于谷歌Web工具包的Web应用程序。我想我可以基于相同的源代码写我自己的一个命令行工具,但如果它已经完成,或其他工具可以做的工作,我宁愿避免它。
I realize I could download the source and set up my own server with the latest version, but I would prefer not to, as what I need is a command line tool and not a web application with dependencies to Google Web Toolkit. I guess I could write my own a command line tool based on the same source code, but if it has already been done, or other tools can do the job, I'd rather avoid it.
所以,我在想,是像外面有任何工具?
So, I'm wondering, are there any tools like that out there?
推荐答案
有没有C#和WADL正常的工具。 REST的API-代码生成项目似乎不再发展。并可能在未来什么都不会改变。有一个关于WADL需要对REST没有明确的看法,它是非标准像WSDL
There is no normal tool for C# and WADL. rest-api-code-gen project seems to be not developing anymore. And may be in future nothing will be changed. There is no definitive opinion about need of WADL for REST and it's non standard like a WSDL
这篇关于我如何生成WADL文件中的C#代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!