How to wadl2java these days?

后端 未结 5 1404
傲寒
傲寒 2020-12-31 04:26

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. (l

5条回答
  •  萌比男神i
    2020-12-31 05:09

    Just to give an update with CXF version 3.2.1 it worked for me.

    Steps are

    1. Download anywhere
    2. Unzip
    3. Go to /bin
    4. Run wadl2java to get the usage
    5. Run wadl2java -p com.x.y.z wadl-file.xml to generate your classes in current directory.

    By the way I noticed that it created a class with a space in the name and also created classes with name starting with digits :)

提交回复
热议问题