cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of flat data in Adapter Module

Former Member
0 Kudos

Hello,

I'm writing an Adapter Module that supposed to convert XML source to a flat output (similar to StrictXml2PlainBean). But I'm not sure how to set the new flat content to the Message object that I'm getting from ModuleData supplied to process method of module bean. There is a method setDocument but it only accepts XMLPayload when I need TextPayload.

Can someone give the code snippet or refer to some blog where it is explained?

Also is there a source code for StrictXml2PlainBean?

Thanks,

Maxim.

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Modules are a means of editing and manipulating the data in between the message entering or leaving the adapter. So you will receive an XML payload and you HAVE to return and XML playload only to the adapter. If you want to convert it to flat file, you need to use file adapter as your receiver and use fcc parameters to do that.

VJ