Table of Contents

Search

  1. Preface
  2. Web Services
  3. SOAP Web Services
  4. WSDL Data Object
  5. Schema Object
  6. How to Create a SOAP Web Service
  7. Operation Mappings
  8. Parsing Web Service SOAP Messages
  9. Generating Web Service SOAP Messages
  10. Web Service Consumer Transformation
  11. REST Web Services
  12. How to Create a REST Web Service
  13. REST Web Service Consumer Transformation
  14. REST Web Service Consumer Transformation Use Cases
  15. REST and SOAP Web Service Administration
  16. Datatype Compatibility

Web Services Guide

Web Services Guide

Search By Key

Search By Key

You can configure a REST web service query on a resource key. When the request includes a key value, you do not have to reference the column name in the query.
Use the following format to search for the number 64 in the resource key for a resource called CUSTOMER:
http://myServer:8095/DataIntegrationService/RESTSERVICE/REST_Web_Service/CUSTOMER/64
The URI includes a resource name and a resource key value:
/CUSTOMER/64
The query does not need to reference the name of the column that is the key.
When you query by resource key, the web service can retrieve the customer by a URI associated with the key. You can view the URI for the specific row in the response message key value. In the following example, the key is C_CUSTKEY and the key value is 64:
<tns:CUSTOMER xmlns:tns="http:////www.informatica.com"> <tns:
C_CUSTKEY
url="
http://my Server:8095/DataIntegrationService/RestService/REST_Web_Service/CUSTOMER/64
">64</tns:C_CUSTKEY> <tns:C_NAME>Customer#000000064</tns:C_NAME> <tns:C_ADDRESS>MbCeGY20kaKK3oalJD,OT</tns:C_ADDRESS> <tns:C_NATIONKEY>3</tns:C_NATIONKEY> <tns:C_PHONE>13-558-731-7204</tns:C_PHONE> <tns:C_ACCTBAL>-646.64</tns:C_ACCTBAL> <tns:C_MKTSEGMENT>BUILDING</tns:C_MKTSEGMENT> <tns:C_COMMENT> Customer has an angry dog in the yard </tns:C_COMMENT> </tns:CUSTOMER>

0 COMMENTS

We’d like to hear from you!