wsgen vs java2wsdl
What is the difference between wsgen and Java2 WSDL tools?
Solution
The main purpose of wsgen in Jax - WS RI is to generate artifacts required by runtime, which are not provided by users Typically, this means wrapping beans and failing beans WSDL generation is primarily considered an additional optional but interesting side effect
Using the more modern Jax - WS runtime (such as CXF) and the latest daily night version (2.2), these artifacts are generated by the runtime in the runtime For example, CXF uses ASM to generate bean classes in memory at startup Therefore, using a more modern jax-ws implementation, wsgen is irrelevant, and the main purpose of the first Java tool is to generate WSDL rather than wrap beans This is why CXF's tool is named "java2wsdl" instead of wsgen