Show TOC

Creating a Proxy for SAP NetWeaver Gateway ServerLocate this document in the navigation structure

Use

You can create proxies to call SAP services from portal applications through your SAP NetWeaver Gateway server.

The proxy provides the implementation classes for the SAP services.

You need to create your own portal component or service to interface with the generated proxy.

Prerequisites
  • A Portal Application Project in which you want to generate the proxy. You cannot generate a proxy in other project types.

  • The portal application descriptor file (portalapp.xml) must not be in edit mode, and must not be read-only. If the file is read-only, the Proxy Generation wizard fails.

Procedure
  1. In Developer Studio, choose Start of the navigation path File Next navigation step New Next navigation step Other Next navigation step SAP NetWeaver Gateway Next navigation step Proxy Generation End of the navigation path.

    The New Proxy Generation wizard appears.

  2. In the Project field, browse for the Portal Application Project for which you want to create the proxy.

  3. From the Create a new proxy for dropdown list, select Portal .

  4. In the Package name field, specify the package in which to generate the proxy classes.

    If you do not specify a name, the default package name is used.

  5. Choose Next .

  6. In the SAP NetWeaver Gateway Services step, perform the relevant action:

    • If you know the URI of the service metadata document for the specific service, enter it in the Service Metadata field.

    • If you have the service metadata document as an XML file, choose Local to select it from your file system.

    • Otherwise, choose Catalog to search for the SAP service you want your application to call.

      1. In SAP NetWeaver Gateway connection , specify the SAP NetWeaver Gateway system in which to find the service.

      2. Expand the Services group and select the service you want.

  7. If you entered a URI or selected a file from the file system, choose Validate to verify that the service metadata document is a properly formed XML file for OData-compliant services.

  8. Choose Finish .

Running the Proxy Generation wizard performs the following actions in the specified Portal Application Project:

  1. Creates Java classes for the selected SAP service. The number of classes depends on the number of entities in the selected SAP service.

  2. Adds references to the required portal JAR files in the project's classpath.

  3. Adds runtime references to the required portal applications and libraries in the portal application descriptor file portalapp.xml.

More Information