Assembling a Web services-enabled WAR file from a WSDL file

You can assemble a Web archive (WAR) file from a Web Services Description Language (WSDL) file that is enabled for Web services.

Before you begin

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

You need the following artifacts that are generated by the WSDL2Java command-line tool to complete this task:
  • An assembled WAR file that contains the Enterprise JavaBeans (EJB) implementation, all the classes that generate from the WSDL2Java command-line tool and the web.xml deployment descriptor file.
  • A WSDL file
  • The complete webservices.xml, ibm-webservices-bnd.xmi, and ibm-webservices-ext.xmi deployment descriptors, and the Java API for XML-based remote procedure call (JAX-RPC) mapping file.

About this task

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

Procedure

  1. Start an assembly tool. See "Starting WebSphere Application Server 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. You need to make sure that the J2EE and Web categories are enabled. See "Configuring WebSphere Application Server Toolkit" in the Application Server Toolkit documentation for more information.
  3. Import the JavaBeans implementation and the artifacts generated by the command-line tooling into the assembly tool.
  4. Migrate WAR files created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to an Application Server Toolkit or Rational Application Developer assembly tool. To migrate files, import your WAR files to the assembly tool. See "Migrating code artifacts to an assembly tool" in the Application Server Toolkit documentation.

Results

The artifacts required to enable the Web module for Web services is added to the WAR file.

What to do next

Now you can assemble the WAR file that is enabled for Web services into an EAR file.



In this information ...


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 Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 6:03:36 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-base-iseries&topic=twbs_assembwarwsdl
File name: twbs_assembwarwsdl.html