Create Client classes with wsgen

1.9k Views Asked by At

I have a wsdl reachable through an url. I'd like to generate client classes for using this web service using wsgen. How I can do it using as a parameter the wsdl url only? Thank you!

1

There are 1 best solutions below

0
On

I believe what you are after is wsimport, not wsgen:

wsimport -Xnocompile -keep -d <directory where you want your client class>  <path to the wsdl>

-Xnocompile allows you to keep the source