Skip to Content

How to call two sfapi and combine into a single message

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Oct 27, 2017 at 09:15 AM

    Hello giridhar ,

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

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2017 at 02:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2017 at 08:07 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2017 at 10:42 AM

    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>
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2017 at 04:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 01, 2017 at 07:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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