Show TOC

Deploying the HelloWorld Web Service ClientLocate this document in the navigation structure

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 path Project Next navigation step Build All End of the navigation path.

    Note

    In the Project menu, the Build Project option is grayed out if the Build Automatically option is enabled in the same menu. In this case, the project is built automatically.

  3. Choose Start of the navigation path Window Next navigation step Show View Next navigation step Servers End 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.