cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in (Enhanced ) Interface mapping

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

I am geting error " Cannot produce target element check xml instance".

this is the error i am getting while testing the interface mapping..

I think this is due to because the sceond mapping which i am using not communication with first mapping. We need to consolidate the mapping and then we can use it among all the differnt message type in source as well as in target.

Please focus some light on this also...

thanks

Sachin

Former Member
0 Kudos

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

Former Member
0 Kudos

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.