Expose a transformation or job as a web service

You can run a PDI transformation or job as part of a web-service by developing one of the following implementations:

  • Write a servlet that maps incoming parameters for a transformation step or job entry and executes them as part of the request cycle.

  • Use the Carte server or the Pentaho Server directly by building a transformation that writes its output to the HTTP response of the Carte server. Then, specify the Pass Output to Servlet option in the Text Output, XML Output, JSON Output, or scripting steps to write output to the HTTP response. For an example, run the pentaho/design-tools/data-integration/samples/transformations/Servlet Data Example.ktr sample transformation on Carte.

Last updated

Was this helpful?