Show TOC Start of Content Area

Procedure documentation Configuring the Web Service Client in the SAP NetWeaver Administrator  Locate the document in its SAP Library 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 SOA Management Technical Configuration System Connections.

       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:

                            a.      In the System Type area, choose Java.

                            b.      In the System Name field, enter LOC.

                            c.      In the Host field, enter localhost.

                            d.      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 This graphic is explained in the accompanying text, 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:

                            a.      In the Mode area, choose Multiple Services.

                            b.      In the Services Source area, choose WSIL.

                            c.      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 SOA Management Application and Scenario Communication User Account Management.

       3.      On the Maintenance tab, proceed as follows:

                            a.      Choose New.

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

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

                            d.      Choose Finish.

       4.      On the Assignment tab, proceed as follows:

                            a.      Choose New.

                            b.      On the User Account step, choose the following button This graphic is explained in the accompanying text, and then from the Choose User Account dialog box that opens, choose ConverterAccount.

                            c.      Choose Next.

                            d.      On the Provider step, choose the following button This graphic is explained in the accompanying text, 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 SOA Management Application and Scenario Communication Application Configuration.

       3.      In the Search field, enter com.sap.tutorial/converterwebear 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.

Next Step

Setting Severity to Web Services and Web Service Clients

 

End of Content Area