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.
To create a WebSphere server:
- From the File menu, select New > Other > Server > Server
> Next.
- Select WebSphere Application Server as the server type,
electing the correct version of WebSphere for your install, and click Next.
- On the WebSphere server settings page enter a server name.
- 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:
- Create the service Web project by selecting New > Web > Dynamic
Web project. Enter the following information:
- Project Name: enter a project name
- Target runtime: select the version of WebSphere Application Server that
you have installed. If it is not listed, click New and
browse to the location where it is installed.
- Ensure that Add project to an EAR is selected.
The EAR will be generated by the New project wizard.
- Click Next.
- On the Project Facets page you can change the versions for various facets
by clicking on the Version column and selecting from the drop-down list. Click Finish.
- To associate the project with the server, right-click the WebSphere server
you created in the Servers view and select Add and remove projects.
Select the service and client projects from the Available projects list and
click Add.
- Start the server by right-clicking it and selecting Start.