O'Reilly logo

Java 7 JAX-WS Web Services by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the wsimport tool from the command line

We used the Ant task wsimport to generate the client JAR file in the generate-client target. We may also use the wsimport tool to generate the client JAR from the command line. First, we need to start the GlassFish Server using the following command:

asadmin start-domain domain1

Domain1 starts successfully as shown in the command output:

Using the wsimport tool from the command line

Next, generate the client JAR file using the wsimport tool with the following options:

Option

Value

Description

-p

hellowsclient

Package name of the client-side classes

-d

C:\Users\dvohra\Documents\

NetBeansProjects\HelloWS\build\classes

Destination ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required