SAP Program SPROX_SERVICE_INTERFACE_TEST_O - Program SPROX_SERVICE_INTERFACE_TEST_I

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

Features
To test a consumer proxy or event provider the generated proxy class isused. But in difference to the test of this class with the testenvironment of the class builder, XML data is used to represent inputand 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 dataunderstood by the consumer. Data ignored when the XML response is mappedABAP is not shown in the response tab. To close this gap there is anadditional tab with the original response. Within that tab the XMLresponse 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. Thedata sent over the network might have a different representation (e.g.usage of attachments and compression for optimization). If you need thedata sent over the network please use some trace (e.g. HTTP trace).Nevertheless the data shown as original response should show you whatwas received from the service.
      • Use Runtime

      • By default the consumer proxy or event provider is called using theruntime in the same way as when using the proxy class from within anyABAP program.
        • Local Interface Call (only available for service consumers)

        • Via F4-Help you can select a Service Provider available in the localsystem. Instead of the runtime the implementation of the ServiceProvider in the local system is called directly. In difference to usingthe runtime no configuration is required for the local interface call.
          • Extended XML handling

          • With this flag extended XML handling can be switched on within theconsumer proxy.
            For more information regarding the test environment please seehere.