Skip to Content

HCI : How to call multiple API'S and Combine into a single message

Dear Experts,

i have a requirement where i need to fetch the data from SuccessFactors using 3 different API's and i need to combine these 3 odata information into a single message and send it to the receiver system.for eg. i am having holiday,holiday assignment and holiday calender api's . i need to query the data using these api's information into single message and send it to the receiver. Please suggest me on this.

Regards

Giridhar Vegi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 16, 2017 at 12:03 PM

    Hello Giridhar,

    You can follow either of the process( depends on the requirement ) and I am assuming you don't have any input data based on which you need to query.

    Case 1:

    Time Event--> Content Modifier ( Add some dummy value into body) --> Multicast( 3 branches having request reply at the end) -->Add Join( add all three responses from request reply ) --> Gather ( Creates one message with Multi Mapping Format )--> Do necessary Transformations and Send it to Receiver.

    Case 2:

    Timer Event -->Content Modifier--> Content Enricher (Select Combine- 1st API Call ) --> Content Enricher (Select Combine- 2nd API Call )

    --> Content Enricher (Select Combine- 3rd API Call ) --> Do the necessary transformation

    Case 3:

    Timer Event--> Content Modifier-->Request Reply ( 1st API Call ) -->Content Modifier( Save it to Property) -->Request Reply ( 2nd API Call )-->Content Modifier( Save it to Property) -->Request Reply ( 3rdAPI Call ) -->Content Modifier( call 2 properties + last API calls body )--> Do the necessary transformation.

    Lastly case3 is not feasible for Message with high volume data.Still in all the 3 cases you need to have Multi mapping to normalize the complex structure.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • May 17, 2017 at 07:20 AM

    Dear Prasad ,

    Thanks a lot. it worked for me. Now I need to map these combined document to receiver structure . what is the steps I need to take .

    step 1. Do I need to generate the new xsd for the above combined document?

    Regards

    Giridhar Vegi.

    Add comment
    10|10000 characters needed characters exceeded