To build and package helloservice using Ant, in a terminal window, go to the tut-install/examples/jaxws/helloservice/ directory and type the following:
This command calls the default target, which builds and packages the application into an WAR file, helloservice.war, located in the dist directory.
To deploy the helloservice example, follow these steps:
In a terminal window, go to tut-install/examples/jaxws/helloservice/.
Make sure the Enterprise Server is started.
Run ant deploy.
You can view the WSDL file of the deployed service by requesting the URL http://localhost:8080/helloservice/hello?WSDL in a web browser. Now you are ready to create a client that accesses this service.
At this point in the tutorial, do not undeploy the service. When you are finished with this example, you can undeploy the service by typing this command:
As a convenience, the all task will build, package, and deploy the application. To do this, enter the following command: