Generating code for Web service deployment

Before deploying Web services-enabled modules or any enterprise application archive (EAR) files that contain Web services-enabled module onto an application server, generate deployment code for the application.

 

Before you begin

This article assumes you have assembled a module enabled with Web services, added it to an application, saved the application, and verified the application.

This article also assumes that you have started an assembly tool such as the Application Server Toolkit (AST) or Rational Web Developer and have configured the assembly tool for work on Web services.

 

Overview

Use an assembly tool to generate deployment code for the Web services-enabled module or for the EAR file that contains the Web services-enabled module.

 

Procedure

  1. If you have turned automatic validation off, manually validate any modules that use Web services with the JSR109 Web services validator before generating deployment code for them. If validating your module results in compilation errors or validation errors, fix the errors before generating deployment code. However, if validating your module results in warning or information messages, one can generate deployment code.

  2. In the Project Explorer view of the assembly tool, right-click on the Web services-enabled module (WAR, enterprise bean JAR, or application client JAR file) for which you want to generate code for deployment.

  3. Click Deploy. Alternatively, one can generate deployment code for Web services-enabled modules using the deployment tool for Web services (wsdeploy) from a command prompt.

  4. If messages indicate that automatic file overwriting is not enabled, click Yes to All so the generated files are added to the module.

  5. If errors such as Unbound classpath variable: WAS_50_PLUGINDIR appear in the Tasks list, change the Java build path libraries properties to define that variable to be the WAS installation directory.

 

Result

Code is generated into the folder where your Web services-enable module is located. Problems with the generation of code result in a window that displays error messages.

 

What to do next

Install the J2EE application on your server machine. We can install the application onto a server using the administrative console. Before installing the application, you might need to set class paths.


 

See Also


Application assembly and J2EE applications

 

Related Tasks


Assembling applications

 

See Also


wsdeploy command