Índice

Search

  1. Prólogo
  2. Servicios web
  3. servicios web SOAP
  4. Objeto de datos WSDL
  5. Objeto de esquema
  6. Cómo crear un servicio web SOAP
  7. Asignaciones de operación
  8. Análisis de mensajes SOAP del servicio web
  9. Generación de mensajes SOAP del servicio web
  10. Transformación de consumidor de servicio web
  11. servicios web REST
  12. Cómo crear un servicio web REST
  13. Transformación de consumidor de servicio web REST
  14. REST Web Service Consumer Transformation Use Cases
  15. Administración de los servicios web REST y SOAP
  16. Compatibilidad de tipos de datos

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
    .