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 Use URL Ports to Build a Dynamic URL

How to Use URL Ports to Build a Dynamic URL

Use URL ports to build a dynamic URL in the REST Web Service Consumer transformation. You can build a dynamic URL such as
https://sample.com/1/posts
or
https://sample.com/2/posts
by defining a URL port in the transformation.
To configure a dynamic URL after you create the REST Web Service Consumer transformation, complete the following steps:
  1. Select the REST Web Service Consumer transformation.
  2. Navigate to the
    Properties
    view and select the
    Advanced
    tab.
  3. To configure the base URL, complete one of the following steps:
    • To configure the
      URL
      property, enter the base URL.
    • To configure the
      Connection
      property, select the HTTP connection.
  4. Navigate to the
    Ports
    tab.
  5. Highlight the
    RequestInput
    group and select
    New
    . Select
    URL Ports
    from the drop-down menu.
    This image shows the Ports tab of the REST Web Service Consumer transformation. The RequestInput group is highlighted. New is selected and the drop-down menu is shown. In the drop-down menu, URL Ports is selected.
    The following image shows the URL port nested under RequestInput:
    This image shows the Ports tab of the REST Web Service Consumer transformation. The URL port appears under the group RequestInput.
  6. Edit the name of the URL port.
    For this example, rename the URL port to
    number
    .
  7. Create another URL port for posts. Rename the port to
    posts
    .
  8. To build a dynamic URL such as
    https://sample.com/1/posts
    or
    https://sample.com/2/posts
    , link ports from an upstream mapping object to the URL ports in the REST Web Service Consumer transformation. Link a number port to the URL port
    number
    and link a string port to the URL port
    posts
    .

0 COMMENTS

We’d like to hear from you!