+

Search Tips   |   Advanced Search

 

Assembling a Web services-enabled enterprise bean JAR file from a WSDL file

 

This task explains how to assemble a Web services-enabled enterprise bean Java archive (JAR) file from a Web Services Description Language (WSDL) file with an assembly tool.

You can assemble Java-based Web services modules with assembly tools provided with WAS. We need the following artifacts to complete this task:

 

Overview

Assemble a Web services-enabled enterprise bean JAR file from a WSDL file by following the actions in the steps for this task section.

 

Procedure

  1. Start an assembly tool. See "Starting WAS Toolkit" in the Application Server Toolkit documentation for more information.

  2. If you have not done so already, configure the assembly tool so that it works on J2EE modules. We need to make sure that the J2EE and Web categories are enabled. See "Configuring WAS Toolkit" in the Application Server Toolkit documentation for more information.

  3. Migrate JAR files created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to an AST or Rational Application Developer assembly tool. To migrate files, import your JAR files to the assembly tool. See "Migrating code artifacts to an assembly tool" in the Application Server Toolkit documentation.

 

Results

You have the artifacts required to Web service-enable an EJB module for Web services. The artifacts are added to the JAR file. Now configure the deployment descriptors so that you can deploy the Web service into the WAS run time environment.

 

Example

After assembling the AddressBook.jar JAR filecontains the following files after assembly. The files added in this task are in bold. These files include the WSDL file, the deployment descriptors, and the JAX-RPC mapping file.

META-INF/MANIFEST.MF 
META-INF/ejb-jar.xml  addr/Address.class  addr/AddressBook_RI.class  addr/AddressBookSoapBindingImpl.class  addr/AddressBookHome.class  addr/Phone.class addr/StateType.class  addr/AddressBook.class 
META-INF/wsdl/AddressBook.wsdl
META-INF/ibm-webservices-bnd.xmi 
META-INF/ibm-webservices-ext.xmi
META-INF/webservices.xml
META-INF/AddressBook_mapping.xml 

 

What to do next

Configure the webservices.xml deployment descriptor . We need to configure the deployment descriptors for the Web service so that WAS can process the incoming Web services requests.



Assembling a JAR file that is enabled for Web services from an enterprise bean
Assembling Web services applications
Assembling an enterprise bean JAR file into an EAR file
Developing Web services applications from existing WSDL files with enterprise beans