English 中文(简体)
Are there any tools for generating a WADL file?
原标题:

I ve built a RESTful web service (I m using asp.net 4, MVC 2) and I want to expose a WADL. Are there any tools built in or otherwise that I can use to build it? I m not looking (yet) to generate classes to consume it I m looking strictly for something that can generate the WADL file itself.

Thanks.

问题回答

Looks like REST Describe & Compile should do the trick.

On the WADL developer site Marc Hadley maintains a command line tool named WADL2Java. The ambitious goal of REST Describe & Compile is to provide sort of WADL2Anything. So what REST Describe & Compile does is that it:

  • Generates new WADL files in a completely interactive way.
  • Lets you upload and edit existing WADL files.
  • Allows you to compile WADL files to source code in various programming languages.

There is a maven plugin called maven-wadl-plugin by the jersey folks that does the trick.

Check the answers in this other question: WADL Generation Tool .

--A





相关问题
WADL: complex type from external xsd

I need to test authentication procedure using the wadl file below: <application xmlns="http://research.sun.com/wadl/2006/10" xmlns:sis="http://sis.thecompany.com/" > <grammars> ...

Are there any tools for generating a WADL file?

I ve built a RESTful web service (I m using asp.net 4, MVC 2) and I want to expose a WADL. Are there any tools built in or otherwise that I can use to build it? I m not looking (yet) to generate ...

maven dependency exists but classDefNotFound?

I have the following dependency in my pom file:- <dependency> <groupId>org.jvnet.ws.wadl</groupId> <artifactId>wadl-core</artifactId> <version>1.1-...

Representing arbitrary hierarchies in WADL

I am modeling a REST API and part of the API will represent resources that are organized into an arbitrary hierarchy of nodes with values and sub-nodes (kind of like a file system or the windows ...

RESTful service description

From what I understand, I need to use WADL to describe a RESTful web service. Still, I have read many answers in relevant posts, where users are strongly opposed the use of WADL. What are the ...

On REST: WADL or not IDL, is the following approach right?

This question is a bit long, please bear with me. In REST, i think we should not need WADL or any IDL. But rather something that would implicitly cover its concept. The way I think about it is when ...

Documenting POST parameters with WADL

Looking at the current version of the WADL proposal, I couldn t quite figure out how to document POST request parameters (with application/x-www-form-urlencoded encoding). I ve seen something like ...

REST api ambiguity and WADL

I have a REST api that s ambiguous, something like (this isn t the specific problem, just gives an idea of the ambiguity): /toplevel/${customer_number}/some_command/more stuff /toplevel/${...

热门标签