Posts

Showing posts from July, 2017
Image
Handling multiple responses dynamically in ICS Orchestration: We are using one REST Web Service for which we will get two different responses based on availability of tables for a given time. Use case: Get the available tables for a given time. Request Parameters:                                         Restaurant ID: 642346,                                        Time: 10:00 (Along with above parameters some other parameters are required which are common for all requests.) Response1: For the given time if tables are available, the response is     {         "RestaurantId": 642346,         "AvailableTables": 3     }   Response2: For the given time if tables are not available, the response will be     {         "StatusCode": 3,         "Status": "Tables are not available for given timeslot."     } Solution: New Integration -> Orchestration (Give the required details like name etc)
Image
Rest  API call of Post method by passing the Query parameters as a request in Oracle Integration Cloud Service In this article, I will use the REST Adapter to create a connection to a Third Party Applications. The third party applications which has POST method and it accepts only query parameters, It’s does not have request body. From ICS, I will expose an integration through a simple REST connection. When we invoke REST API call of POST without Request data but only as Query parameters in ICS then we will error messages as "HTTP Error 411. The request must be chunked or have a content length". To overcome this issue we need to add some request body in the mapping. The steps I went through: Create a new ICS Connection based on Rest Adapter for Third Party Application; set up the URL and Consumer Key Create an ICS REST Connection (to expose) Create an integration – between REST Connection as inbound (source) to Third Party App Rest Connection (as outbo