Create a Web project for a DADX Web service

Before creating a Web service, the required version of WebSphere® Application Server must be installed and a server created before you begin creating your Web service. You must then create a Dynamic Web project for the Web service.
To create a WebSphere server:
  1. From the File menu, select New > Other > Server > Server > Next.
  2. Select WebSphere Application Server v5.1 or higher as the server type, electing the correct version of WebSphere for your install, and click Next. For WORF v8.2, the DADX Web services can run on WebSphere Application Server v5.1 or v6.0. For WORF v9.1, the DADX Web services can run on WebSphere Application Server v6.0 or v6.1. Note that you cannot target your Web service to a server that has security enabled.
  3. On the WebSphere server settings page enter a server name.
  4. Click Finish. To see the server you have created in the workspace, from the Window menu select Show view > Other > Server > Servers > OK.

To build a dynamic Web project that points to the server that you have created and is enabled for the appropriate DADX Web service provider:

  1. Create the service Web project by selecting File > New > Project > Web > Dynamic Web project. Enter the following information:
    • Web Project: enter a project name
    • Target Runtime: select the version of WebSphere Application Server you installed.
    • Ensure that Add project to an EAR is selected. If you do not have an existing EAR click New and enter the information for the EAR.
  2. Click Finish.
  3. To associate the project with the server, right-click the server you created in the Server view and select Add and remove projects. Select the EAR that you created or selected from the Available projects list and click Add.
  4. To select the correct DADX Web service provider version for the project, right-click on the Web project you have just created and select Properties. Select DADX Web service provider from the list and select the correct version. See the DB2 Web service provider documentation under Developing > Database Applications > Web services and Federated Web Applications for more information.
  5. Start the server by right-clicking it and selecting Start.
Note:
  • Two Dynamic Web projects with different WORF versions cannot share the same Web application server. The DADX Web Service tool will check that the server is not already assigned to another Web project with a different version of WORF at deployment time.
  • Once the DB2 Web service provider version has been selected it cannot be changed.

Once you have created the Web project for your Web service, you can create a DADX group as described in: Create a DADX group configuration


Feedback