cancel
Showing results for 
Search instead for 
Did you mean: 

Content conversion in Sender JMS channel

Former Member
0 Kudos

Hello All,

My scenario is JMS to Proxy. SAP PI receives a flat file from JMS application.

Can any one please help us on converting flat file to XML conversion within sender JMS adapter

Thanks&Regards,

Moorthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check this

conversion type StructPlain2XML

  

conversion type SimplePlain2XML

Former Member
0 Kudos

Now JMS sender channel is working without any errors. But the JMS adapter is removing if there are any spaces present in the input text file. In File content conversion, we have a parameter called

"fieldContentFormat-notihng" option.

Can we use the same parameter in JMS Sender channel also?

engswee
Active Contributor
0 Kudos

Hi Naresh

Yes, that parameter is available in the MTB module. The format is as below depending on whether you are doing a plain or structured conversion.

SimplePlain2XML

xml.fieldContentFormatting = nothing

StructPlain2XML

xml.<StructureName>.fieldContentFormatting = nothing

Rgds

Eng Swee

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Moorthy,

use the below adapter module and parameters to convert the falt file into XML from JMS application

Module name :-  localejbs/AF_Modules/MessageTransformBean

parameters:-

Transform.Class

TransformContentType

xml.conversionType

xml.documentName

xml.documentNamespace

xml.fieldFixedLengths

xml.fieldNames

xml.processFieldNames

xml.structureTitle

Cheers

Hidayat

engswee
Active Contributor
0 Kudos

Hi Moorthy

You can use standard module MessageTransformBean in your JMS sender channel to convert flat file to XML.

Inserting MessageTransformBean in Module Processor - Adding Modules to the Module Processor - SAP Li...

There are various articles about that which you can search for in SCN, examples below:-

How To...Content conversion module with J2EE JMS adapter - Process Integration - SCN Wiki

Rgds

Eng Swee