Skip to Content
author's profile photo Former Member
Former Member

Doubt in (Enhanced ) Interface mapping

Hello all,

I have the requirment like i need to select two different Message type at the source target and i need to map them with different message type at target side. But i need to use only single interface mapping.

Messagetype1 -


>messagetype1_target

Messagetype2----


> messagetype2_target

Can i achieve it by a single interface mapping. or i should go for seperate interface mapping.

I have tried out this but getting error while testing ( I am getting error in root node of xml )

Thanks

Sachin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 06:38 AM

    hi Sachin

    if U r using one message mapping for all message types it is

    possible means if u have Two Message types at sender side

    and two message types for receiver side(Multi Mapping for u r

    case) it is possible, if u r using Two message mapping means

    One message type for sender and one for receiver it is not

    possible in u r case.

    If u have two message Mappings it will not possible.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 06:39 AM

    Hi,

    u can achieve with single interface mapping provided

    Your Messagetype1 and Messagetype2 structure will be same

    Messagetype1_target and messagetype2_target structure will be same

    If structures are different u have to go for different interface mapping.

    Regards,

    Pradeep A.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 06:57 AM

    Hi Sachin,

    Yes, you can have both the mappings in one single Interface Mapping, But if you are getting error then we can try to find out the problem... Kindly explain teh error you got ....

    Regards,

    Priyanka

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sachin,

      You are correct that we need to consolidate the all the messsages on source side so the structure for you case should be like this :

      <Messages>

      <Message1>

      <Messagetype1>

      ....

      </Messagetype1>

      </Message1>

      <Message2>

      <Messagetype2>

      ....

      </Messagetype2>

      </Message2>

      </Messages>

      Similar way target should be appeared....if all this is correct then we will look into it...

      Regards,

      Priyanka Sharma

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 07:03 AM

    Hey Sachin,

    Its not about achieving this or not...

    Depends on the Requirement,we need to ,for example in a

    Proxy -->Webservices Scenario,

    You need to do two message mappings

    One for

    1)Request_Proxy to Request_WebService

    2)Response_Webservice to Response_Proxy

    in Sync Situation ...

    But ,you only need one Interface mapping ,which invloves these two MEssage mappings.

    Hope its clear...

    *************Reward points,if found useful

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.