
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.
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
.
Generating a Consumer Proxy Using the Web Service Creation Wizard
Start the Repository Browser (transaction code SE80).
Open the package for which you want to generate the consumer proxy.
From the context menu for the package, choose .
The Web Service creation wizard is started.
When you are prompted, select Service Consumer as the object type.
Continue.
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
Continue.
Search for or specify th WSDL document.
Specify a package, a prefix, and a transport request.
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.
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
Start the Enterprise Service Browser (transaction code SPROXY).
Locate the outbound service interface.
Open the context menu and choose Create.
The system prompts you to specify a prefix and a transport request.
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.
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.