cancel
Showing results for 
Search instead for 
Did you mean: 

xsd with two messages

Former Member
0 Kudos

Hi,

I have gotten an xsd from a customer with two messages "FileHeader" and "Adjustments". What I wonder is if it is possible to use this xsd without using BPM. Those two messages will be sent in the same file from the sender system according to the xsd structure.

What i have done in the IR is:

- Imported the xsd as an external definition

- Created one message interface for each message.

- Added those two message interfaces as source in my interface mapping

- Added the two messages as source in my message mapping.

Is it possible to do like this (without using BPM)?

Best Regards

/Claes

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You need to use a BPM.

You need to use the Collect Pattern to collect the 2 message from the different sources and then combine them with a N:1 mapping.

You would need to use correaltion as well for this

Regards

Bhavesh

Former Member
0 Kudos

hi,

The two messages are from the same source and sent as one file. Is it better for me to redefine their xsd?

/Claes

bhavesh_kantilal
Active Contributor
0 Kudos

> The two messages are from the same source and sent as

> one file. Is it better for me to redefine their xsd?

Yes. In this case you need to redefine the XSD so as to hold both these messages as a single message and,

You need not use a BPM.

Regards

Bhavesh

Former Member
0 Kudos

Also, the entire input must be available in the same file.

Ex : If you have a single msg with One Header and 2 Item records, then both the header and the Item must be present in the same file.

Regards,

Jai Shankar

Former Member
0 Kudos

We redefined the xsd.

Thanks for all the help

BR

Claes

Answers (0)