Table of Contents

Search

  1. Preface
  2. Web Services
  3. SOAP Web Services
  4. WSDL Data Object
  5. Schema Object
  6. How to Create a SOAP Web Service
  7. Operation Mappings
  8. Parsing Web Service SOAP Messages
  9. Generating Web Service SOAP Messages
  10. Web Service Consumer Transformation
  11. REST Web Services
  12. How to Create a REST Web Service
  13. REST Web Service Consumer Transformation
  14. REST Web Service Consumer Transformation Use Cases
  15. REST and SOAP Web Service Administration
  16. Datatype Compatibility

Web Services Guide

Web Services Guide

How to Receive Unparsed Data from the Web Service

How to Receive Unparsed Data from the Web Service

Complete the following steps to create the transformation:
  1. In the Developer tool mapping editor, scroll down in the mapping palette to locate the REST Web Service Consumer transformation and drag it to the mapping.
    The
    New REST Web Service Consumer Transformation
    wizard appears.
    This screenshot shows the wizard for the REST Web Service Consumer transformation. In the dialog box, you can specify a name for the transformation, a location, and the HTTP method.
  2. Enter a name for the transformation.
  3. Next to
    HTTP Method
    , select
    Get
    .
    When you use the Get method, you do not configure an input mapping.
  4. Click
    Next
    .
    The wizard displays a message that input is not applicable when using the Get method.
  5. Click
    Next
    .
  6. Select
    Create as empty
    .
  7. Next to
    Show
    , select
    Output mapping
    .
    The following image shows the options in the wizard:
    This screenshot shows an output mapping for the transformation. The options Create as empty and Output mapping are selected. In the output mapping, the Method output definition area is on the left and the Ports area is on the right.
  8. Drag the output group from the
    Method output definition
    area on the left to the
    Ports
    area on the right.
  9. Click
    Finish
    .
  10. Navigate to the
    Ports
    tab of the REST Web Service Consumer transformation.
  11. Highlight the output group.
    This screenshot shows the Ports tab of the transformation properties. The transformation output group is highlighted.
  12. Select
    New
    in the top right corner of the
    Ports
    tab and select
    Other ports
    . Check the box next to
    Output XML
    and click
    OK
    .
    The Output XML port is nested under the output group as shown in the following image:
    This image shows that after you create an Output XML port, the port is nested under the transformation output group.
  13. Navigate to the
    Advanced
    tab.
  14. To connect to the web service, configure the URL property with the base URL.
  15. If you use an HTTP connection, enter the connection name for the property
    Connection
    . The HTTP Connection overrides the base URL configured for the property URL.
  16. Enter the format of the request and response messages. Configure the
    Input Format
    and
    Output Format
    with XML or JSON.
    The following image shows where you configure the advanced properties:
    This screenshot shows the transformation advanced properties in the Advanced tab.
  17. Run Data Viewer or run the mapping.
    The following image shows an example of a response in the Output XML port:
    This screenshot shows a sample response that you might receive. If you run Data Viewer, the response is located under the Data Viewer tab.

0 COMMENTS

We’d like to hear from you!