+

Search Tips   |   Advanced Search

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

We can assemble a web application archive (WAR) file from a WSDL file enabled for web services.

We can assemble Java-based web services modules with assembly tools provided with WebSphere Application Server.

For JAX-WS web service applications, we need the portable artifacts that are generated by the wsimport command-line tool when starting from a WSDL file to complete this task. The wsimport tool processes a WSDL file as input and generates the following portable artifacts:

We can package the generated artifacts in a web application archive (WAR) file with the WSDL file and schema documents along with the endpoint implementation that we plan to deploy.

For JAX-RPC web service applications, we need the following artifacts generated by the WSDL2Java command-line tool to complete this task:

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


Tasks

  1. Start an assembly tool. Read about starting the assembly tool in the Rational Application Developer documentation.

  2. If we have not done so already, configure the assembly tool so that it works on Java EE modules. We 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. Import the JavaBeans implementation and the artifacts generated by the command-line tooling into the assembly tool.
  4. 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 information.

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


What to do next

Now we can assemble the WAR file enabled for Web services into an EAR file. To learn more, read about assembling a web services-enabled WAR into an EAR file.


Related:

  • Development and assembly tools
  • Assembling a web services-enabled WAR into an EAR file
  • Assembling a WAR file enabled for web services from Java code
  • WSDL2Java command for JAX-RPC applications