Skip to Content
0
Former Member
Apr 25, 2007 at 03:10 AM

MESSAGE MAPPING PROBLEM PLS HELP

25 Views

hi forum i have a problem in message mapping...

i have a file to file scenario...with a BPM..

the components are:

1. one outbound async MI:-> MI_OA_fileSender

2. one abstract async MI:-> MI_AA_fileSender

the above two has messsage structure as:

<ns0:MT_sourceFile xmlns:ns0="http://zpoc.com.test/rana3">

<recordset> 1...1

<record> 1..unbound

<batch_num/> 1..1

<quantity/> 1..1

</record>

</recordset>

</ns0:MT_sourceFile>

*******************************************************

3. one abstract async MI: -> MI_AA_fileDestination

4. one inbound async MI:-> MI_IA_fileDestination..

the above two has messsage structure as:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_destinationFile xmlns:ns0="http://zpoc.com.test/rana3">

<recordset> 1..1

<record> 1..unbound

<rec_number/> 1...1

<qty/> 1...1

</record>

</recordset>

</ns0:MT_rana3_destinationFile>

inside the BPM i m doing a simple one to one interface mapping between MI_AA_fileSender and MI_AA_fileDestination AND then use a send step to send it to receiver service. But inside the graphical editor, for the message maaping in the interface mapping, i change the target structure a bit by duplicating <rec_number> making it:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_destinationFile xmlns:ns0="http://zpoc.com.test/rana3">

<recordset> 1..1

<record> 1.. unbound

<rec_number/> 0..1

<rec_number/> 0..1 //did right click and "duplicate sub-tree, so it becomes 0...0"

<qty/>

</record>

</recordset>

</ns0:MT_destinationFile>

But i dont change the original structure of MT_destinationFile.

Now in the resultant file in the receiver side i recive two <rec_number> tags....

but since i didnt change the original structure of MT_destinationFile.....but i only made a change in the mapping by duplicating the node <rec

_number>(right click and done "duplicate sub tree").............SHOULD IT NOT THROW AN ERROR

Message was edited by:

sudeep dhar

Message was edited by:

sudeep dhar