Table of Contents

Search

  1. Preface
  2. Web Service Concepts
  3. Understanding the Web Services Provider
  4. Using the Web Services Hub Console
  5. Batch Web Service Operations
  6. Writing Client Applications
  7. Working with Web Service Sources and Targets
  8. Editing Web Service Sources and Targets
  9. Working with Web Service Mappings
  10. Working with Web Service Workflows
  11. Appendix A: Web Service Sample Client Applications
  12. Appendix B: Configure the Web Browser

Web Services Provider Guide

Web Services Provider Guide

Sample.java

Sample.java

This sample program calls a PowerCenter web service workflow that looks up a customer ID in a database and prints out the customer information. The workflow uses an SQL transformation to retrieve multiple rows from the database.
Directory:
/CustomerLookup_MULTIPLEROW
File to compile Java sample:
CompileSample.bat or CompileSample.sh
File to run Java sample:
RunSample.bat or RunSample.sh
The following table describes the parameters you use to run the Sample application:
Parameter
Description
Customer ID
ID for the customer to look up. Pass the customer ID as an integer.
EndPoint URL
URL where the web service can be found. Pass the endpoint URL as a string.
The endpoint URL for a real-time web service can be found in the soap:address location element of the service element in the web service WSDL. The default endpoint URL for the sample web service is
http
://<
WSHHostName
>:<
WSHPort
>/wsh/services/ts/CustomerLookup_MULTIPLEROW.
If the Web Services Hub is running on HTTPS, the endpoint URL starts with HTTPS.

0 COMMENTS

We’d like to hear from you!