Creating a WebSphere Server and Web project

If you plan to create a Web service that uses WebSphere Application Server as its server, the required version of WebSphere Application Server must be installed and a server created before you begin creating your Web service.

By default Rational Developer products create a WebSphere v6 server for you automatically when you open a workspace. You can use this server or create a new one.

To create a WebSphere server:

  1. From the File menu, select New > Other > Server > Server > Next.

  2. Select WebSphere Application Server v 5.x or v6.0 as the server type, electing the correct version of WebSphere for your install, and click Next.

  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 WebSphere server that you have created:

  1. Create the service Web project by selecting New > Web > Dynamic Web project. Enter the following information:

    • Web Project: enter a project name

    • Servlet version: 2.4

    • Target Server: WebSphere Application Server 5.x or 6.0 depending on the version you installed

    • Ensure that Add Module to an EAR module is selected. The EAR will be generated by the New project wizard.

  2. Click Finish.

  3. To associate the project with the server, right-click the WebSphere server you created in the Server view and select Add and remove projects. Select the service and client projects from the Available projects list and click Add.

  4. Start the server by right-clicking it and selecting Start.

 

Parent topic

Web services overview