JavaWebServices

wsgen utility

wsgen utility helps generate WSDL given the webservice classes.

Here is the code for Hello.java:

Here is the syntax for creating wsdl from it:

wsgen -cp . -wsdl com.techkatak.Hello

This will generate a WSDL named HelloService.wsdl

wsgen can also be used to generate JAX-B artifacts.

Here is the syntax for the same :

wsgen -verbose -keep -cp . com.techkatak.Hello

wsgen1

© 2015, www.techkatak.com. All rights reserved.