Show TOC

Generating a Consumer ProxyLocate this document in the navigation structure

Use

You can generate consumer proxies from objects modeled in the Enterprise Services Repository or from a WSDL document. The resulting objects are in different generating applications. For more information on generating application, see the system documentation that you can access using the Tips and Tricks icon in transaction SPROXY.

ABAP consumer proxies are used in an application to call (consume) a Web service. Consumer proxies need only to be generated and can then be used by an application. If the objects for a consumer proxy are modeled in the ES Repository, the corresponding ES Repository object is an outbound service interface.

Prerequisites

A consumer proxy can be generated if any of the following prerequisites are met:

  • The outbound service interface, which will be used to generate the consumer proxy, is available in the ES Repository.

  • A WSDL document that describes the Web service to be called is available. Note that there are some limitations to the WSDl content that is supported by ABAP proxy generation. See the 944029 Information published on SAP site.

Procedure

Generating a Consumer Proxy Using the Web Service Creation Wizard

  1. Start the Repository Browser (transaction code SE80).

  2. Open the package for which you want to generate the consumer proxy.

  3. From the context menu for the package, choose Start of the navigation path Create Next navigation step Enterprise Service End of the navigation path.

    The Web Service creation wizard is started.

  4. When you are prompted, select Service Consumer as the object type.

  5. Continue.

  6. Select the source of the WSDL document.

    You can select the following sources:

    • Enterprise Services Repository

    • URL/HTTP Destination

    • Local File

    • UDDI Registry

    • Services Registry

  7. Continue.

  8. Search for or specify th WSDL document.

  9. Specify a package, a prefix, and a transport request.

  10. Continue.

    The consumer proxy is generated. During generation, proxies for all the related data types and message types are generated.

    The Configuration tab displays the default properties, which are extracted from the WSDL document. These properties determine the settings of a runtime configuration.

  11. Choose Activate.

    The consumer proxy is saved and activated. In addition, the proxy class and the related structures and methods are automatically created and activated.

Generating a Consumer Proxy From the ES Repository

  1. Start the Enterprise Service Browser (transaction code SPROXY).

  2. Locate the outbound service interface.

  3. Open the context menu and choose Create.

    The system prompts you to specify a prefix and a transport request.

  4. Confirm.

    The consumer proxy is generated. During generation, all the related data types and message types in the same namespace are also generated.

    The Configuration tab displays the default properties, which are extracted from the WSDL document. These properties determine the settings of a runtime configuration.

  5. Choose Activate.

    The consumer proxy is saved and activated. In addition, the proxy class and the related structures and methods are automatically created and activated.