Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, July 9, 2008

Proxy Generation ABAP Proxy Generation

Use

You can generate client or server proxies in ABAP to send or receive messages. You generate client proxies from outbound message interfaces and server proxies from inbound message interfaces.

Integration

For more details about programming with proxies, see Proxy Runtime.

Procedure

Generating Proxies By Using Transaction SPROXY

...

1. Call transaction SPROXY in the system in which you want to generate a client or server proxy.

The system displays a navigation tree on the left-hand side of the screen; it has the same structure as the interface maintenance tree in the Integration Builder. The interface objects are ordered according to software component version, namespace and object type (also see: ABAP Proxy Generation).

If no connection to the Integration Repository exists, the system only displays interface objects in the tree structure for which a proxy exists in the system.

2. Choose an interface object for which no proxy already exists. To create a proxy for this interface object, double click the context menu Create Proxy.

3. In the dialog box, specify the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system.

Generating Proxies By Using the Object Navigator (Transaction SE80)

...

1. Call the Object Navigator (transaction SE80) in the system in which you want to generate a client or server proxy. Select a package and call the context menu. Choose Create ® Enterprise Service / Web Service ® Proxy Object.

2. In the subsequent dialog window, choose the source of the WSDL document (URL/http destination, local file, UDDI or XI Repository).

If you choose XI Repository as the source of the WSDL document, the hierarchy of the software component versions in the Integration Repository is displayed in the subsequent window. The interface objects are ordered according to software component version, namespace and object type (also see: ABAP Proxy Generation). Choose an interface object for which no proxy already exists and confirm by choosing Copy.

3. In the subsequent dialog window, enter the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system. Also see the proxy generation tips.

Result

To generate proxies, the WSDL description of the message interface is read using HTTP. If no naming conflicts occur during the conversion, you can call the hierarchy of the generated objects from the tab page Structure. The objects are only then saved in the system once you choose Activate. Up to the point of activation, you can save metadata that contains all information for generation and that is managed by the transaction, and continue with generation at a later date.

No comments:

Archives