cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in content conversion

former_member192892
Active Contributor
0 Kudos

Hi guys

I'm doing a file to file scenario. When i'm using message protocol type file in receiver comm channel, I'm receiving the output file as

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

<DATA>

<FNAME>varun</FNAME>

<LNAME>mukund</LNAME>

</DATA>

I'm using a custom xsd for the output file structure.

I want to use file content conversion here, to display the data like

varun,mukund

Can u please help me with the content conversion parameters???

I entered RecordSet Structure = DATA

DATA.fieldNames = FNAME,LNAME

DATA.fieldSeparator = ^

I'm getting an empty file as output now

Regards

Varun

Accepted Solutions (1)

Accepted Solutions (1)

former_member192892
Active Contributor
0 Kudos

Hi,

I tried everything you said, but still im getting an empty file as output. Is it because I'm using an external xsd as my output message type???

Please help me on this...

Regards

Varun

former_member184619
Active Contributor
0 Kudos

Hi Varun,

the structure of the outbound file is not correct.

it should be like this

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

<recordset>

<DATA>

<FNAME>varun</FNAME>

<LNAME>mukund</LNAME>

</DATA>

</recordset>

then only u can use content conversion wheather it's XSD or message type.

Check these links as well

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Sachin

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Varun,

You can set Recordset structure as DATA ( Case sensitive ; No need to put * )

Also declare two additional parameters as below

DATA.endSeparator = 'nl'

DATA.fieldSeparator = ,

No need for paramter DATA.fieldNames for receiver adapter.

I hope this solves your problem.

CHEERS

Amit

Former Member
0 Kudos

Hi varun

Specify as

DATA.fieldSeparator = , -


(put , if you want comma seperated file)

DATA.endSeparator = 'nl' -


( new line for new record)

Also specify

Recordset Structure in CC as

Recordset Structure = Data,* -


( * if you have DATA node repeating, put 1 if you have only 1 occurrence of DATA)

Hope this helps

justin_santhanam
Active Contributor
0 Kudos

Varun,

Have u referred the thread I gave, it give u the exact ouput as u needed.

Best regards,

raj.