You can build and run the simpleclient application 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.
Do the following to build and run simpleclient:
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/jaxws/.
Select the simpleclient folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the simpleclient project and select Run.
You will see the output of the application client in the Output pane.
In a terminal navigate to tut-install/examples/jaxws/simpleclient/ and type the following command:
This command calls the default target, which builds and packages the application into a JAR file, simpleclient.jar, located in the dist directory.
The run the client, type the following command: