cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Receiver File adapter :Module XML2PLAIN

Former Member
0 Kudos

Hi Friends,

I have a FILE -> FILE scenario ,In this when I am downloading the data in XML format it is getting downloaded successfully.The output look like this ...

<b>I have only one field to be displayed in the output</b>.

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

<Returnkey>

<field1>000000000621185CA</field1>

</Returnkey>

Module Name Modulekey

localejbs/AF_Modules/MessageTransformBean XML2Plain

<b>Module key parametername parameter value</b>

XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion

XML2Plain Transform.ContentType text/plain;charset=utf-8

XML2Plain xml.addHeaderLine 0

XML2Plain xml.conversionType SimpleXML2Plain

XML2Plain xml.fieldFixedLengths 25

Please some one help me out I,I have tried all the options and I cant use File content conversion in this case ,(I have JMS adapter which actually sends this information to MQ,as it is working in XML format AND not in plain format ,I am testing this temporarily with a receiver file scenario)

Thanks in advance.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

closing the thread,

Former Member
0 Kudos

Hi

please markthe question as answered if solved.

Thanks

Rinku

Former Member
0 Kudos

Hi Finally it worked with the following parameters...

xml.conversiontype strucxml2plain

xml.recordsetstructure Returnkey

Former Member
0 Kudos

Try out with these paramters only....

<b>Module key parametername parameter value</b>

XML2Plain recordTypes Returnkey

XML2Plain Returnkey.fieldFixedLengths 25

Former Member
0 Kudos

Hi Mugdha,

I tried with the parameters given,but now the file itself did not come.

Former Member
0 Kudos

Hi

you can use the following modules and the parameters.

Processing sequence :

localejbs/AF_Modules/MessageTransformBean

localejbs/SAP XI JMS Adapter/ConvertMessageToBinary

localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService

Module Configuration:

Transform.Class----


>com.sap.aii.messaging.adapter.Conversion

TransformContentType----


>text/plain;charset=utf-8

xml.addHeaderLine----


>0

xml.conversionType----


>SimpleXML2Plain

xml.fieldFixedLengths----


>10,10,10(for ex)

xml.fixedLengthTooShortHandling----


>Cut

if you still face the problem please reply me back.

Thanks

Rinku

Former Member
0 Kudos

Hi Rinku,

Thank you for the information.

I tried with this JMS module connections initially,Where it is working with XML and not in plain text format.

As I dont have access to check the data in MQ,I just converted it to file and if it works here it should work with JMS adapter also.

so can you please tell me why this format is not getting converted with this module XML2PLAIN?

did I miss any thing there ?

Thank you ?

Former Member
0 Kudos

sorry I did not complete the problem..

when I am converting with the above parameters from xml to plain...A file is getting created with no data in it...

how do I solve this issue.

Thanks in advance.