Wednesday 15 November 2017

Convert WSDL to POJO

We can convert WSDL files into Java POJO class in an easy way with wsimport command

Command :

wsimport -keep -s <directory> -p <pkg> -verbose WSDLfile

Example

wsimport -keep -s /home/ubuntu/example -p com.example.org -verbose http://example.org/helloservice?wsdl

For help use wsimport --help which will provide you the list of option

No comments:

Post a Comment