In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to:
tut-install/examples/jaxws/ |
Select the webclient folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the webclient project and select Deploy.
This task runs the wsimport tasks, builds and packages the application into a WAR file, webclient.war, located in the dist directory, and deploys it to the server.
In a web browser, navigate to the following URL:
http://localhost:8080/webclient/HelloServlet
The output of the sayHello method appears in the window.