0% found this document useful (0 votes)
46 views7 pages

Configuring The Web Service Client in The SAP NetWeaver Administrator

Uploaded by

gagamel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views7 pages

Configuring The Web Service Client in The SAP NetWeaver Administrator

Uploaded by

gagamel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Configuring the Web Service Client

in the SAP NetWeaver Administrator


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 localhos t .

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 , 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 , 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 , 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/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 .

Next Step

Setting Severity to Web Services and Web Service Clients

Setting Severity to Web Services


and Web Service Clients
Use
You set severity to increase or decrease the logging and tracing information of Web service clients. This

procedure is optional and you can use it to preview system calls to the Converter Web service.

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.

2. Choose Problem Management Logs and Traces Log Configuration .


Alternatively, you can use the quick link /log-config as follows:

http://<host>:<port>/nwa/log-config
3. In the Show field, choose Tracing Locations , and then choose Go .

4. In the Tracing Locations table, choose com sap engine services webservices .

5. In the Severity field, choose All .

Note

Increasing the severity level may impact the performance of the system. We recommend that you

decrease severity after you complete the tutorial.

6. Choose Copy To Sub-Tree .

7. Choose Save Configuration .


Result

The system logs all calls to the Web service.

Starting the Converter Web Service Client Application


Starting the Converter Web Service
Client Application
Use

To consume the Web service, start the client application.

Procedure
1. Open the Web service client application in a web browser, by entering the following address.
http://localhost:<port>/
com.sap.tutorial~converterwebclient/ConverterServlet
You can construct <port> by the formula 5 + NN + 00, where NN is the number of the Java

instance.

2. In both fields of the client application, enter positive integer values which you want to convert.

3. Choose Convert .

Next Step

Viewing Converter Web Service Logs and Traces

Viewing Converter Web Service and


Web Service Client Logs and Traces
Use

You use logs and traces to locate and examine a problem behavior of the Web services.

Prerequisites

You increased the severity level of the Web service. More information: Setting Severity to Web Services

and Web Service Clients

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.


2. Choose SOA Management Application and Scenario Communication Single Service

Administration .

Viewing Converter Web Service Calls

1. Choose the Service Definitions tab.


2. In the Find field, enter *ConverterLocal .

3. In the Search by field, enter WSDL Porttype Name and choose Go .


4. In the results list, choose ConverterLocal and then choose the Logs & Trac es tab.

Viewing Converter Web Service Client Calls

1. Choose the Consumer Proxies tab.


2. In the Value field, enter *ConverterLocal and choose Go .

3. In the Search by field, enter WSDL Porttype Name and choose Go .


4. In the results list, choose ConverterLocal and then choose the Logs & Traces tab.
Result

The system displays all calls to the Web service invoked by the Web service client.

You might also like