Using a Web Service in DataStage
Using a Web Service stage as a target
When the web service acts as a data target, the response is typically an acknowledgment, which returns to the Web Service stage. You can log the response but cannot send it to an output link. If you need to send the response to an output link, use the Web Service stage as a transformer.
The following examples illustrate using a web service as a data target:
- Trigger a data restore from a backup server.
- Post part levels to a just-in-time Inventory Control module.
- Send orders for durable goods from a retailer to a vendor.
- Send monthly sales data to Corporate Sales.
Using a Web Service stage as a source
When the web service acts as a data source, the response returns to the Web Service stage and is sent to an output link.
When the web service is a data source, the input arguments are constants or job parameters that are created in the Web Service stage.
The following examples illustrate using a web service as a data source:
- Obtain purchase orders from a business partner for invoice processing.
- Acquire product listings and price changes from a retailer.
- Access daily prices and ratios from a stock brokerage.
- Obtain employee records from a Human Resources Management System.