Show TOC

Background documentationTesting Web Service Providers with Playback Locate this document in the navigation structure

 

After activating payload tracing for a Web service provider, the system records all activities for interactions of this provider with Web service consumers. You can use the data recorded during a Web service call to simulate a call to the provider without starting your Web service consumer. This simulation is referred to as “Playback”. You can perform Playback using the payload data for a payload trace currently present in the system, or using payload data stored in a file.

Features

  • Playback is only available for providers configured with Basic Authentication.

  • Playback is only available for synchronous Web services.

  • Playback is not available for productive systems.

Procedure

Performing Playback for Present Traces
  1. Display all details of a trace record.

    For more information, see Trace Details.

  2. Go to the Payload Trace view.

  3. Select a trace and choose the Playback button.

Performing Playback Using Externally Stored Data
  1. Make sure you have a file with payload data stored.

    Such a file can be downloaded from within the Payload Trace view using Download
as XML (Download as XML), either with context or only with payload data included. Alternatively, you can use any file containing a synchronous SOAP request in XML form.

  2. At the start of the SRT_UTIL transaction, choose   Goto   Playback from Files  .

  3. When the specified file is not a file downloaded from within Payload Trace with context, you need to enter some necessary parameters such as Request Method and Request URI.

    The value of Request URI replaces the Path Prefix defined in the HTTP destination.

Creating HTTP Destination for Playback

When starting Playback, the system asks what HTTP destination you want to use. When you use the default destination NONE, you need to enter a user and password every time you run Playback. In case you intend to repeat Playback several times, it is convenient to create a dedicated HTTP destination using transaction SM59.

While creating the destination you should consider the following:

  • Select G type.

  • Enter the host information.

  • Leave the Path Prefix field empty.

    This parameter is updated when performing Playback.

  • Provide a user name and password for basic authentication.

For more information, see Establishing a Connection Using a Destination (SM59).