Skip to Content
0

How to call two sfapi and combine into a single message

Oct 26, 2017 at 02:14 PM

93

avatar image
Former Member

Dear Experts,

i have a requirement where i need to call two sfapi's and combine into a single message.

Please suggest me on this about how to achieve this using the standard steps.

Regards

Giridhar Vegi

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

6 Answers

Sriprasad Shivaram Bhat
Oct 27, 2017 at 09:15 AM
0

Hello giridhar ,

Could you please share the output of the content enricher so that I can check on XSD.

Regards,

Sriprasad Shivaram Bhat

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dear prasad,

Please find the output of content enricher as follows

<?xml version="1.0" encoding="UTF-8"?><multimap:Messages xmlns:multimap="http://sap.com/xi/XI/SplitAndMerge"><multimap:Message1><queryUserResponse><User><id>USR-1549</id><empId>32200019</empId><externalId>32200019</externalId></User></queryUserResponse></multimap:Message1><multimap:Message2><queryEmpEmploymentResponse><EmpEmployment><id>EMPL-1529</id><created_by>1000447</created_by><created_on>2017-06-14T20:14:01.000+10:00</created_on><custom_date1></custom_date1><end_date></end_date><lastDateWorked></lastDateWorked><last_modified_by>1000447</last_modified_by><last_modified_on>2017-10-25T18:15:48.000+11:00</last_modified_on><okToRehire></okToRehire><person_id>PER-3343</person_id><person_id_external>32200019</person_id_external><start_date>1994-06-16</start_date><user_id>32200019</user_id></EmpEmployment></queryEmpEmploymentResponse></multimap:Message2></multimap:Messages>
0

Output is not an XML message?

What exactly you are expecting at target side?

Regards,

Sriprasad Shivaram Bhat

0
Former Member
Sriprasad Shivaram Bhat

Dear Prasad ,

it should be the csv file.

Regards

Giridhar Vegi.

0
Sriprasad Shivaram Bhat
Oct 26, 2017 at 02:28 PM
0

Hello Giridhar,

Use Content Enricher with combine option after 1st sfapi call,then both the messages will be combined to single one with multimap tag.

Regards,

Sriprasad Shivaram Bhat

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 27, 2017 at 08:07 AM
0

Thanks for your quick support prasad. Now i need to map this file.where as i am unable to add multiple source messages in webui. How can i add multiple source messages in webui. Please suggest me on this.

Regards

Giridhar Vegi.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 27, 2017 at 10:42 AM
0

Dear prasad,

Please find the output of content enricher as follows

<?xml version="1.0" encoding="UTF-8"?><multimap:Messages xmlns:multimap="http://sap.com/xi/XI/SplitAndMerge"><multimap:Message1><queryUserResponse><User><id>USR-1549</id><empId>32200019</empId><externalId>32200019</externalId></User></queryUserResponse></multimap:Message1><multimap:Message2><queryEmpEmploymentResponse><EmpEmployment><id>EMPL-1529</id><created_by>1000447</created_by><created_on>2017-06-14T20:14:01.000+10:00</created_on><custom_date1></custom_date1><end_date></end_date><lastDateWorked></lastDateWorked><last_modified_by>1000447</last_modified_by><last_modified_on>2017-10-25T18:15:48.000+11:00</last_modified_on><okToRehire></okToRehire><person_id>PER-3343</person_id><person_id_external>32200019</person_id_external><start_date>1994-06-16</start_date><user_id>32200019</user_id></EmpEmployment></queryEmpEmploymentResponse></multimap:Message2></multimap:Messages>
Share
10 |10000 characters needed characters left characters exceeded
Sriprasad Shivaram Bhat
Oct 30, 2017 at 04:53 AM
0

Hello Giridhar,

As per my understanding MultiMapping from WEBUI is not yet available.You have 2 options to achieve the same in Eclipse as of now.

1) Create Multi Mapping by dropping multiple XSDs at source tab.

2) Have a script to normalize the Multi map XML structure using Groovy and then do the necessary transformations as per your requirement.

Regards,

Sriprasad Shivaram Bhat


Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 01, 2017 at 07:25 AM
0

Dear Prasad,

Could you pleas provide the about how to map the output of Content enricher(i.e.making of xsd) for mapping step.Please help me on this

Regards

Giridhar Vegi

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

Hello Giridhar,

Hope you have XSD generated from model operation of 2 SFSF channels in src.main.resources.wsdl.Just drag and drop those xsd's.Mesage mapping will automatically generate multimap tag.

And output generated from content Enricher will fit into above mapping without any modifications.

Let me if you still need any support.

Regards,

Sriprasad S Bhat

0

Hello Giridhar,

"Hello Giridhar,

Hope you have XSD generated from model operation of 2 SFSF channels in src.main.resources.wsdl.Just drag and drop those xsd's.Mesage mapping will automatically generate multimap tag.

And output generated from content Enricher will fit into above mapping without any modifications.

Let me if you still need any support."

Above steps worked for you?

Regards,

Sri

0