简体   繁体   中英

How do I generate C# code from WADL files?

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.

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.)

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?

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

另一个可能的答案: http//code.google.com/p/rest-api-code-gen/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM