Generating code for Web service deployment

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

Before installing your application in WebSphere Application Server, generate deployment code for the application. This step is required for Web services-enabled modules and for any enterprise application archive (EAR) files that contain Web services-enabled modules.

  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, you can generate deployment code.

  2. In the J2EE Hierarchy view of the Assembly Toolkit, 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 Web Services > Deploy Web Service.Alternatively, you 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.

Install the Java 2 Platform, Enterprise Edition (J2EE) application on your server machine. You 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
Assembling applications with the Assembly Toolkit
wsdeploy command