Show TOC

Configuring the Web Service Client in the SAP NetWeaver AdministratorLocate this document in the navigation structure

Use

During the design time and at a later stage during the runtime you have configured the Web service to use basic authentication. To consume the Web service, during the runtime, you have to configure a logical port to the Web service client. Configuring the logical port of the Web service client, you provide username and password, which ensure the secure communication.

This procedure enables you to create configuration at runtime using the smart SOA configuration application. You apply the configuration described in this procedure to only one consumer, however if you can use it in the same way to configure multiple consumers.

Procedure
  1. Open the SAP NetWeaver Administrator in a web browser by entering the following address.

    http://localhost:<port>/nwa

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

    Enter your user name and password if required.

1. Prepare a Communication Profile

Prepare a communication profile to establish a connection to the provider system on which the Converter Web service is running.

  1. Choose Start of the navigation path SOA Management Next navigation step Technical Configuration  Next navigation step  System Connections End of the navigation path.

  2. Choose the Communication Profiles tab and then choose New .

  3. On the General step, enter ConverterCommProfile in the Profile Name field, and then choose Next .

  4. On the Messaging step choose Next .

  5. On the Security step, on the Authentication area, select only User Name/Password (Basic) and then choose Finish .

2. Establish a Connection to the Provider System

Establish a connection between the provider system and the client system. In this particular case, your local system is a provider and a client system at the same time.

  1. Choose the Provider Systems tab and then choose New .

  2. On the Provider System step, proceed as follows:

    1. In the System Type area, choose Java .

    2. In the System Name field, enter LOC .

    3. In the Host field, enter localhos t .

    4. Choose Next .

  3. On the Metadata User step, enter your credentials to access the provider system and then choose Next .

  4. On the Communication Profile step, choose the following button , and then from the Choose Profile dialog box that opens, choose ConverterCommProfile .

  5. Choose Next .

  6. On the Services Search Settings step, proceed as follows:

    1. In the Mode area, choose Multiple Services .

    2. In the Services Source area, choose WSIL .

    3. In the WSIL URL field, enter http://localhost:<port>/inspection.wsil .

  7. Choose Finish .

  8. To test the connection to the provider system, choose Ping System .

3. Configure a User Account for the Converter Web Service

You have to configure a user account specifying the credentials with which you want to consume the secure Converter Web service.

  1. Open the SAP NetWeaver Administrator.

  2. Choose Start of the navigation path SOA Management Next navigation step Application and Scenario Communication  Next navigation step  User Account Management End of the navigation path.

  3. On the Maintenance tab, proceed as follows:

    1. Choose New .

    2. In the Name field, enter ConverterAccount , and then choose Next .

    3. In the Username, Password and Confirm Password fields, enter the administrator's credentials with which you consume the Converter Web service.

    4. Choose Finish .

  4. On the Assignment tab, proceed as follows:

    1. Choose New .

    2. On the User Account step, choose the following button , and then from the Choose User Account dialog box that opens, choose ConverterAccount .

    3. Choose Next .

    4. On the Provider step, choose the following button , and then from the Choose Provider System dialog box that opens, choose LOC on localhost .

  5. Choose Finish .

4. Configure the Service Group of the Consumer Application

To create a logical port for the consumer application and thus consume the Converter Web service, you configure the Service Group of the consumer application.

  1. Open the SAP NetWeaver Administrator.

  2. Choose Start of the navigation path SOA Management Next navigation step Application and Scenario Communication  Next navigation step Application Configuration End of the navigation path.

  3. In the Search field, enter com.sap.tutorial/c onverter webear and choose Go .

  4. From the result table, choose the consumer application, and then choose Edit .

  5. On the Service Groups tab, choose com.sap.tutorial.javaee.servicegroup.ConverterBeanPort.ConverterServiceGroup .

  6. Choose Assign Provider System .

  7. From the Assign Provider System dialog box that opens, choose LOC on localhost and then choose OK .

  8. Choose Save .