Show TOC Start of Content Area

Procedure documentation Viewing Web Services Logs and Traces  Locate the document in its SAP Library structure

Use

In the SAP NetWeaver Administrator, you can find and view the logs and traces of calls made to Web services and from Web service clients deployed on the local system. In the SAP NetWeaver Administrator, logs and traces of Web services or Web service clients are grouped into calls. Each call to a Web service or form a Web service client may contain trace and/or log records of different severity and status.

Web services and Web service clients log at the following location: com.sap.engine.services.webservices. The location’s default severity level is PATH. If you want the system to log more trace and log information, you can increase the severity of the location to ALL or DEBUG. If you also want to view calls to and from WS-RM enabled Web services and Web service clients, respectively, you have to set the severity of the following location com.sap.engine.services.wsrm  to DEBUG. Its default value is WARNING. More information about changing severity: Configuring Log Controllers.

Note

Increasing the severity level may impact the performance of the system. We recommend that you increase severity only when necessary.

Procedure

...

       1.      Log on the Sap NetWeaver Administrator.

       2.      Choose SOA Management Logs and Traces Web Services Logging & Tracing.

Alternatively, you can use the quick link /ws-logs as follows:

http://<host>:<port>/nwa/ws-logs.

The Web Services Log Viewer is displayed.

       3.      On the Search tab page, enter search criteria for the calls to Web services or from Web service clients.

Web Service and Client Calls

Field

Meaning

Options

Call Status

Specifies the status of the calls to a Web service or from a Web service client.

      ERROR

Returns calls with status ERROR.

      SUCCESS

Returns calls with statuses SUCCESS.

      Asterisk (*)

Returns calls with both statuses ERROR and SUCCESS.

User Name

The name of the user who performed the request to the Web Service or from the Web service client.

Enter a user name.

If you enter an asterisk (*) or leave the field blank, the system displays calls from all users.

Application Server

Specifies the number of the cluster node on which the Web service or Web service client is deployed.

Choose This graphic is explained in the accompanying text, and then from the Extended Value Selector, choose a cluster node number.

If you enter an asterisk (*) or leave the field blank, the system searches in all cluster nodes.

Interface

The name of the Web service or Web service client.

Enter the name of the Web service or Web service client.

If you enter an asterisk (*) or leave the field blank, the system searches for calls to or from all interfaces all interfaces.

Location

The type of component, Web service or Web service client to or from which the call was made.

      PROVIDER

Finds incoming calls to Web services. Choose this value if in the Interface field you entered the name of a Web service client.

      CONSUMER

Finds outgoing calls from Web service clients. Choose this value if in the Interface field you entered the name of a Web service.

      Asterisk (*)

Finds incoming and outgoing calls.

Software Component

The software component of the Web service or Web service client.

Choose This graphic is explained in the accompanying text, and then from the Extended Value Selector, choose a software component.

If you enter an asterisk (*) or leave the field blank, the system displays requests from all software components.

Application Component

The application component in a specified software component in which the Web service or the Web service client resides.

Enter the name of an application component.

If you enter an asterisk (*), the search returns calls to or from interfaces belonging to all application components in the specified software component.

From Date

To Date

FromTime

To Time

Time Zone

Specifies the time interval in which the call occurred.

Enter the correct times and the time zone.

If you want to use the current date and time, leave the To Date and To Time fields blank.

 

       4.      Choose Search.

The Logging&Tracing Records table lists all call records that match your search criteria. You can customize the table layout by choosing Additional Columns.

       5.      To view logs and traces of calls, you have to specify search criteria for the status and severity level of the logs and traces. This returns only the calls containing records of the selected type (log and/or trace) and severity. Proceed as follows:

                            a.      Under Choose Filter Criteria, in the Status field, choose the status of the log or trace record in the call.

                            b.      Depending on whether you want to view log and/or trace records, choose the Show logging data and/or Show tracing data, respectively.

                            c.      Choose the severity level of the log and/or trace record.

The call records in the Logging&Tracing Records table are additionally filtered to match the search criteria you specified for the log and/or trace records in a call.

       6.      From the Logging&Tracing Records table, choose a call record.

Result

All relevant log, trace, and header records for the call are displayed.

Payload trace records are also displayed if applicable. They contain the content transmitted between the Web service and the client in downloadable XML format.

End of Content Area