CXF wsdl2java Example explains about Generating Java Code From WSDL Document (WSDL) Using CXF wsdl2java Tool.
You can also use this tool for creating client proxy and invoking the web service
I am showing here, an example of generating annotated java code from WSDL document using WSDL To Java tool.
You can also generate server side and client side code using this tool, you can go to below reference
You can see how to generate java codes by following wsdl2java sample