How to wadl2java these days?

user215054 picture user215054 · Jul 21, 2011 · Viewed 20.3k times · Source

I have real difficulty finding commandline tool to convert WADL to java. No matter how much I try to google, follow blogs or java.net doc, there is no real download link. (links are broken or obsolete).

What particular vendor, community group is supplying this tool ? Does free download link exist ?

The generated code should be able to reconstruct POJOs from XML responses and survive inside Tomcat 7. Thank you

Answer: (this works only after June 2011):

  • Take Apache-CXF-2.4.1.zip (not any of the earlier versions)
  • Extract it to root folder
  • Take Apache-CXF-2.4.1.src.zip
  • Search for folder named distribution inside src
  • Extract ditribution folder and merge it with no overwrites to root folder
  • goto bin and spot the wadl2java.bat
  • run wadl2java.bat from command prompt
  • continue with no brainer details

Answer

Brian Kelly picture Brian Kelly · Jul 22, 2011

Apache CXF recently added support for WADL-first development of REST services. For more background information on its wadl2java tool, this blog entry by one of the CXF committers should help.