You can build, package, deploy, and run the appclient application by using either NetBeans IDE or Ant. To build the client, you must first have deployed helloservice, as described in Building, Packaging, and Deploying the Service.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to:
tut-install/examples/jaxws/ |
Select the appclient folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the appclient project and select Run.
You will see the output of the application client in the Output pane.
In a terminal window, go to:
tut-install/examples/jaxws/appclient/ |
Type the following command:
ant |
This command calls the default target, which runs the wsimport task and builds and packages the application into a JAR file, appclient.jar, located in the dist directory.
To run the client, type the following command:
ant run |