Assembling a web services-enabled client WAR file into an EAR file
Now that you have generated your application artifacts, you need to assemble these artifacts to create an enterprise archive (EAR) file that is used in the web services application. Assemble the client code and artifacts that enable the application client to access a web service into an EAR file.
Before you begin
You can assemble Java-based web services modules with assembly tools provided with WebSphere® Application Server. If you use Rational® Application Developer for the assembly, refer to the Rational Application Developer documentation.
Procedure
- Start an assembly tool.
- If you have not done so already, configure the assembly tool so that it works on Java EE modules. You need to make sure that the Java EE and Web categories are enabled.
- Migrate WAR files created with the Assembly Toolkit, Application
Assembly Tool (AAT) or a different tool to the Rational Application Developer assembly tool. To migrate
files, import your WAR files to an assembly tool. Read about importing web application archive (WAR) files using an assembly tool in the Rational Application Developer documentation.
Results
Example
WEB-INF/MANIFEST.MF
WEB-INF/web.xml
WEB-INF/wsdl/AddressBook.wsdl
WEB-INF/AddressBook_mapping.xml
WEB-INF/ibm-webservicesclient-ext.xmi (optional)
WEB-INF/ibm-webservicesclient-bnd.xmi
com/ibm/websphere/samples/webservices/addr/Address.class
com/ibm/websphere/samples/webservices/addr/AddressBook.class
com/ibm/websphere/samples/webservices/addr/AddressBookClient.class
com/ibm/websphere/samples/webservices/addr/AddressBookService.class
...other generated classes...
META-INF/MANIFEST.MF
AddressBookWeb.war
META-INF/application.xml
What to do next
For Java™ API for XML-Based Web Services (JAX-WS) applications, you are ready to deploy the web services client application.
For Java API for XML-based RPC (JAX-RPC) applications, you need to configure the client deployment descriptor bindings with an assembly tool so that the client can communicate with a web service that is deployed on a server.