Deploying the HelloWorld Web Service Client

Use

To consume the Web service, you have to deploy the Web service proxy and client application on an application server.

Prerequisites

The application server is running.

Procedure

Deploying HelloWorldWEBEAR Project on the Application Server

  1. In the Project Explorer , choose HelloWorldWEBEAR .

  2. Choose Start of the navigation pathProject Next navigation step Build AllEnd of the navigation path.

  3. Choose Start of the navigation pathWindow Next navigation step Show View Next navigation step ServersEnd of the navigation path.

  4. On the Servers tab page, right-click SAP Server , and then choose Add and Remove Projects .

  5. From the list of available projects, choose HelloWorldWEBEAR , and then choose Add .

  6. Choose Finish .

  7. If prompted, log on to the application server as Administrator.

Starting the Web Service Client Application

  1. Open the Web service client application in a Web browser by entering the following address.

    http://localhost:<port>/HelloWorldWEB/HelloServlet

    You can construct <port> by the formula 5 + NN + 00, where NN is the number of the Java instance.

  2. Enter first and last name in the provided fields.

  3. Choose Execute .

Result

The Web service client is on the application server.