WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Assembling a WAR file that is enabled for Web services from Java code

You can assemble a Web archive (WAR) file that is enabled for Web services from Java code 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 that are generated by the WSDL2Java command-line tool to complete this task:
  • An assembled WAR file that contains the web.xml file, but is not enabled for Web services.
  • The Java class for the service endpoint interface
  • A Web Services Description Language (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 classes that are generated by the WSDL2Java command.

About this task

Assemble a Web services-enabled WAR file from Java code 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 are 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


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

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/twbs_assembwarjava.html