Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Custome adapter module to indentify the incoming xsd format

$
0
0

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.


Viewing all articles
Browse latest Browse all 6719

Trending Articles