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

You can assemble a Web services-enabled enterprise bean Java™ archive (JAR) file from a Web Services Description Language (WSDL) file with an assembly tool.

Before you begin

You can assemble Java-based Web services modules with assembly tools provided with WebSphere® Application Server.

You need the following artifacts to complete this task:

About this task

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. Read about starting the assembly tool in the Rational® Application Developer documentation.
  2. 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. Read about configuring the assembly tool in the Rational Application Developer documentation.
  3. Migrate JAR files created with the Assembly Toolkit, Application Assembly Tool or a different tool to the Rational Application Developer assembly tool. To migrate files, import your JAR files to the assembly tool. Read about migrating code artifacts to an assembly tool in the Rational Application Developer 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 you need to configure the deployment descriptors so that you can deploy the Web service into the application server runtime environment.

Example

The AddressBook.jar JAR file contains 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

For JAX-RPC Web services, configure the webservices.xml deployment descriptor . You need to configure the deployment descriptors for the Web service so that WebSphere Application Server can process the incoming Web services requests.



In this information ...


Related concepts

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Oct 21, 2010 3:36:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-express-iseries&topic=twbs_assembjarwsdl
File name: twbs_assembjarwsdl.html