In this chapter we discussed the procedure to develop a JAX-WS web service and test the web service with a client. We used the wsimport
task/tool to generate client-side web service artifacts and used the new -clientjar
option in wsimport
of Java 7 to package the artifacts and WSDL/s into a JAR file. Making a JAR file containing web service artifacts and WSDLs in the runtime of the client precludes the requirement to access the WSDLs over the network at runtime, thus saving on network overhead.