cancel
Showing results for 
Search instead for 
Did you mean: 

Custome adapter module to indentify the incoming xsd format

former_member184944
Participant
0 Kudos

Hi All,

I have a requirement , where the incoming file (xml) will come in a single field from source. And the format of the xml is not fixed and will be dynamic in nature.

As in , there are total 5 xsd formats. The incoming xml (as a string within one single field) will be of any of these 5 formats.

Any idea anyone how we can identify the incoming format ?

Approaches i hv thought:

1. Use java mapping to convert string to xml

    then use multimapping

    Prob: in future the incoming xsd formats will increase at present it is 5.

2. Write custome adapter module. Extract the string to xml, read the top most node and match it to the different formats available.

    On match found update another field in the payload with the format name.

    But here i dont know how to about writing the code for custome adpater module.

Regards,

Anumeha.

Accepted Solutions (0)

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Anumeha,

Build source XSD to accept 5 XSD formats ,then develop generic mapping to satisfy all mapping logic.

Thank you,

Raj