Consuming a Web Service Using a Schema

Context

In a distributed system landscape without a shared transport manager you have the option of creating a service consumer proxy from a schema. You need to export an XML description of a service consumer to an ABAP system and use the service consumer wizard to create a proxy.

Exporting a Service Consumer Schema Prerequisite

You have identified a service consumer for exporting the schema.

Procedure
  1. Access an ABAP package to select a service consumer proxy. For information on accessing an ABAP package, see Accessing an ABAP Package.
  2. Navigate to the identified service consumer.
  3. Open the service consumer.

    The service consumer is displayed in the proxy editor window.

  4. Click the Source [Read-Only] page.

    The schema or the XML definition of the service consumer is displayed.

  5. On the top right corner of the editor, click (Export as WSDL).

    The Save As window appears.

  6. Save the file and send it to an ABAP system.
Creating a Proxy from XML Files Procedure
  1. Access the Enterprise Services wizard. For information on using the wizard, see Accessing the Enterprise Services Wizard.
  2. Select Service Consumer.
  3. Click Next.

    The New Service Consumer wizard appears.

  4. Enter the following details:
    • Package name
    • Name
    • Prefix, if required
  5. Select Local WSDL File as the source.
  6. Click Next.

    The window to select a local WSDL file appears.

  7. Click Browse to select a WSDL file.
  8. Proceed with the wizard and complete the task.

    A service consumer proxy is created and the proxy editor window appears.

  9. On the top right corner of the proxy editor window, click ( Activate ABAP Object) to activate the proxy.