Generate Java server code from the wsdl

To generate the java code, server side, from the wsdl, the better way is to use the tool apache-cxf ( ) . Unzip this tool and go to the folder bin.

In this folder you will find the script, use it for the generation.

example :

aboufahj@yaka:~/Applications/apache-cxf-2.7.6/bin$ ./wsdl2java -p -all -d /home/aboufahj/tmp/xdsr2/ /home/aboufahj/Documents/workspace/ITI/wsdl/XCARespondingGatewayQuery.wsdl

After generating, there still missing annotations in the generated interfaces, add : 


and on the generated implementation class, you have to add :