Show TOC

Procedure documentationGenerating a Consumer Proxy Locate this document in the navigation structure

 

You can generate consumer proxies from objects modeled in the Enterprise Services Repository or from other sources, such as a WSDL document for a previously generated ABAP provider proxy, or a service definition that is published in a Services Registry or a UDDI-compliant registry.

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. Provider proxies need to be generated and implemented in the ABAP back-end system, in which the service will be provided.

ABAP consumer proxies can be generated in any ABAP system, as only the WSDL description is needed. The objects do not first need to be modeled in the Enterprise Services Repository (ES Repository). 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 for a previously generated ABAP provider proxy exists.

  • A WSDL document from an external service provider is available and its URL is known or is available as a file.

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   Create   Enterprise Service  .

    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 a source.

  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, which will be generated when the proxy is used.

  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 Services Repository Browser (transaction code SPROXY).

  2. Locate the software component version and namespace.

  3. Expand the Service Interfaces node.

  4. Select the outbound service interface.

  5. Open the context menu and choose Create.

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

  6. 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, which will be generated when the proxy is used.

  7. 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.