Discovering Schema and Creating a Mapping File for the Web Services (SOAP) Adapter

Use the Schema Discovery button in the Visual editor to discover schema and create a mapping file for the Web Services (SOAP) adapter.

Prerequisites
Add the Web Services (SOAP) adapter to the diagram.
Task
In the SAP Sybase ESP Authoring perspective:
  1. Configure the Web Services (SOAP) Input or Output adapter for schema discovery. In the adapter shape, click Edit Properties adapter_in and set these properties:
    • Adapter Configuration File
    • Adapter Mapping File
    • Discovery WSDL URL
    • Discovery Working Directory
    • Discovery Service Name
    Ensure there are no checkboxes selected, and click OK.
  2. Click Schema Discovery find.gif on the adapter toolbar.
    • If the schema is successfully discovered, a dialog appears where you can view and select schemas.
    • If the schema is not successfully discovered, an error message appears stating that no schema was discovered for the adapter. Check that the adapter properties are configured for schema discovery and that no checkboxes are selected in the Edit adapter properties dialog.
  3. Select a discovered schema and click Next.
  4. In the Create Element dialog, select an option:
    • Assign schema to the connecting stream/window - this populates the stream or window to which the adapter is attached with the selected adapter schema.
    • Create new named schema - this creates a new named schema in ESP which is made up of the Web Services (SOAP) schema elements.
  5. Click Finish.
    • The mapping file you specified in the Adapter Mapping File property is populated with mappings based on the schema you selected.
    • Either the window or stream that is attached to the adapter is populated with the schema you selected or a new named schema is created in the project to which the adapter is attached.