Java 7 supports Java API for XML Web Services (JAX-WS) 2.2.4 or later. In this chapter, we shall discuss the procedure for using the new -clientjar
option in the wsimport
task/tool in Java 7. We require a Java IDE that supports Java 7 and a web container that also supports Java 7. We need to install the following JDK and software as discussed in the previous chapter:
Java SE 7
NetBeans IDE 7.0.1
Oracle GlassFish Server 3.1.1
The sample NetBeans project is available in the downloadable sample ZIP file. This chapter has the following sections:
What is new in Java 7 wsimport?
Creating a NetBeans project
Creating the implementation class
Creating the WSDL
Creating the deployment descriptors
Creating a client class
Creating the deployment targets
Creating an Apache Ant
build
fileBuilding and deploying the service
Building the client
Running the client
Testing the web service
Using the
wsimport
tool from the command line
The wsimport
tool or the wsimport
Ant task is...