+

Search Tips   |   Advanced Search

Generating code for web service deployment

Before deploying web services-enabled modules, or EAR files containing web service-enabled modules, onto an application server, generate deployment code for the application.

This topic assumes we have assembled a module enabled with web services, added it to an application, saved the application, and verified the application. It also assumes that we have started and configured an assembly tool.

We can use an assembly tool to generate deployment code for the web services-enabled module or for the EAR file containing the web services-enabled module.

  1. If we 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 the module results in compilation errors or validation errors, fix the errors before generating deployment code. However, if validating the module results in warning or information messages, we 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 to generate code for deployment.

  3. Click Deploy. Alternatively, we 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.


Results

Code is generated into the folder where the 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 Java EE application on the server machine. We can install the application onto a server using the console. Before installing the application, we might need to set class paths.


Related concepts

  • Application assembly and enterprise applications


    Related tasks

  • Install enterprise application files
  • Assembling applications

  • wsdeploy command