Wednesday, April 6, 2022

OIC - Invoke a rest service whose request and response payloads as XML | Invoke Rest API with XML payloads

Here, we will invoke an OIC internal integration which supports Rest with XML request & Response.

Please follow my previous blog for how to create an rest expose service which support XML payloads request & response.

https://soalicious.blogspot.com/2022/04/oic-post-xml-payload-with-rest-api-rest.html


Highlevel steps:

  1. Create a Invoke Rest connection with OIC instance.
  2. Create an app driven integration with rest trigger.
  3. Invoke the created rest adaptet to call the oic internal rest Integration which supports XML request & Response.
  4. Map the Trigger request to invoke XML request.
  5. Add tracking and activate and test.


Detailed steps:

Create an invoke connection with OIC Instance host and port and security as basic authentication and provide instance userid and password.


Integration Flow 


Rest trigger to accept a employee data as json.





Drag and drop created invoke rest adapter and configure as follow with the resource URI.



Map 


Test




Note: we can't call this rest with XML service using integration call in the flow, we will get the following error.


No comments:

Post a Comment

Featured Post

OIC - Restrictions on Using Stage File Action Operations with the File/Attachment Features of the Connectivity Agent

Restrictions on Using Stage File Action Operations with the File/Attachment Features of the Connectivity Agent When configuring the stage fi...