cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the order of target message? kindly help

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have a source message with fields EmpNo, EmpName, Dept and joining date. The target message has the same structure but fields are in different order. That is, EmpName, Dept, EmpNo and joiningdate.

How to achive the target message with message mapping and without using a different message type for target?

Kindly help

Thanks

Gopal

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Gopal,

Try this one.

1. Create Only one message type of target type.

2. Go to XSD tab and export the "XSD" of the message type.

3. Change the <xsd:sequence> element to <xsd:all>

4. Then import the "xsd" in external definitions.

5. Use the imported "xsd" and create Message mapping. Give both source and target the same message type from XSD.

6. just Map one to one.

Now you can get ur required target structure. Since it is <xsd:all> it will accept ur input file.

Regards,

P.Venkat

prabhu_s2
Active Contributor
0 Kudos

u will notn be able to do this in mapping. but what is the need for it?

Former Member
0 Kudos

Hi Gopal,

normally there is no need for this.

If you use e.g. the JDBC adapter for interting into a database-table it is not neccessary to have a order.

Why do you need this, what would you like to achive?

Maybe there is a good workaround.

Regards Mario

Former Member
0 Kudos

HI,

The target message is generated based on the target message type you give in message mapping. I dont think it is possible with a single message type. Lets wait for some one to answer.

Regards,

Sudheer.

bhavesh_kantilal
Active Contributor
0 Kudos

Gopal,

Not possible using Graphical Mapping.

Java Mapping can hanlde this.

Regards

Bhavesh