Ansicht
Dokumentation

SPROX_SERVICE_INTERFACE_TEST_O - Test Service Consumer

SPROX_SERVICE_INTERFACE_TEST_O - Test Service Consumer

Fill RESBD Structure from EBP Component Structure   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

Call a Service Consumer or Event Provider with a given request payload and display the resulting response payload.

Integration

Prerequisites

Features

To test a consumer proxy or event provider the generated proxy class is used. But in difference to the test of this class with the test environment of the class builder, XML data is used to represent input and output.

Execution is done by the following steps:

  • The request is mapped to ABAP
  • The consumer proxy or event provider class is called
  • Within the proxy runtime the ABAP data is mapped to the XML request

  • The XML request is sent to the service provider or event consumer

  • The XML response from the service is received (consumer proxy only)

  • The XML response is mapped to ABAP (if availabe)

  • The resulting ABAP is mapped to an XML for display of the response

Thus the response shown in the test environment shows only the data understood by the consumer. Data ignored when the XML response is mapped to ABAP is not shown in the response tab. To close this gap there is an additional tab with the original response. Within that tab the XML response which acts as input for the mapping to the ABAP data is shown. But even this may not be equal to the data sent over the network. The data sent over the network might have a different representation (e.g. usage of attachments and compression for optimization). If you need the data sent over the network please use some trace (e.g. HTTP trace). Nevertheless the data shown as original response should show you what was received from the service.

  • Use Runtime
    By default the consumer proxy or event provider is called using the runtime in the same way as when using the proxy class from within any ABAP program.
  • Local Interface Call (only available for service consumers)
    Via F4-Help you can select a Service Provider available in the local system. Instead of the runtime the implementation of the Service Provider in the local system is called directly. In difference to using the runtime no configuration is required for the local interface call.
  • Use generated consumer class
    The web service is called using the generated consumer class. The XML data is converted into ABAP data and passed to the generated consumer class.
  • Pass through XML data
    Instead of the generated consumer class a generic consumer is used. The XML data is passed to the generic consumer. The XML data is not converted to ABAP data.
  • Extended XML handling
    With this flag extended XML handling can be switched on within the consumer proxy.

For more information regarding the test environment please see here.

Selection

Standard Variants

Output

Activities

Example






Fill RESBD Structure from EBP Component Structure   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3567 Date: 20240601 Time: 103328     sap01-206 ( 59 ms )