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

Testing the web service

Having generated the web service artifacts, packaged and deployed the web service, generated the runtime JAR file for the web service client, and compiled the client class, next we shall test the web service client. We shall run the build.xml targets in the following order:

  • server target: To generate and deploy the web service WAR file to the GlassFish Server
  • client target: To generate the JAR file using the -clientjar option of wsimport and compile the client class
  • run target: To run the client class

Right-click on the server target and select Run Target:

Testing the web service

The output from the server target indicates that the clean, setup, build-server-wsdl, ...

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