Skip to Content
0

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

May 16, 2017 at 10:26 AM

387

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sriprasad Shivaram Bhat May 16, 2017 at 12:03 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Santosh Giridhar vegi May 17, 2017 at 07:20 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Giridhar,

Yes you have to generate the XSD and use the same in Source Side of mapping.

Better to have generated XML handy to make sure you will not miss hierarchy.

Regards,

Sriprasad Shivaram Bhat

0