问题
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?
回答1:
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
回答2:
Another possible answer: http://code.google.com/p/rest-api-code-gen/
来源:https://stackoverflow.com/questions/1126448/how-do-i-generate-c-sharp-code-from-wadl-files