Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Use variables for parameters in the HTTP Client step

  1. #1

    Default Use variables for parameters in the HTTP Client step

    Hi,

    I have created a table with these columns:

    - URL
    - param_001_name
    - param_001_value

    Now I want to use this information in a HTTP client step. URL works, param_001_name also but I cannot put the value from param_001_value anywhere since the parameter field in the Fields tab does not accept row values or variables.

    Is there any other way to get this done?
    The basic idea behind this is to have a table where different kind of web service calls are stored and then to start them in a single transformation.

    Bobse
    PDI 7
    Postgres
    Windows 7

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    With HTTP Client, you can't use dynamic keys to build the query part of a URI, only the values can be read from a field.
    So long, and thanks for all the fish.

  3. #3

    Default

    Ok, guess I'll have to write a small JAVA script instead to compile the complete URL and then pass that one on to the step.
    Thanks for the info!
    PDI 7
    Postgres
    Windows 7

  4. #4

    Default

    Nilesh,

    As per your question in the PM, here the attachment.

    Max

    geocode mapping_export.ktr
    PDI 7
    Postgres
    Windows 7

  5. #5
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    Quote Originally Posted by Bobse View Post
    Ok, guess I'll have to write a small JAVA script instead to compile the complete URL and then pass that one on to the step.
    Thanks for the info!
    You can use calculator to concatenate strings... You don't need to use Java or JavaScript

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.