on 12-15-2004 3:21 PM
I need to take an MQSeries message in a flat file format and convert it to XML before processing. I have configured the modules as described by the screenshot located here:
http://www.radesix.com/JMSConfig.jpg
The message is received however it isn't converting to XML. When I view the payload I get the message indicated by the screenshot located here:
http://www.radesix.com/JMSError.jpg
I am new to XI. Any ideas?
Your conversion Type is set to StructPlain2XML but your configuration works only with SimplePlain2XML.
For a good documentation go to Plain J2SE adapter -> Configuring the Sender File/FTP adapter
Scroll to point 8: FILE2XMBWITHSTRUCTURECONVERSION
All the here described and explained parameters you have to use for StructPlain2XML.
(For SimplePlain2XML you use the parameters described under 7 FILE2XMBWITHROWCONVERSION)
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan
I appreciate your help. I'm having some difficulty finding the documentation you referenced.
Using sdn.sap.com I navigated to Exchange Infrastructure -> XI 3.0 documentation and the following paths:
SAP XI Runtime -> Connectivity -> Adapters
I do not see a Plain J2SE adapter. I do however find File Adapter -> Configuring the Sender File/FTP Adapter but I don't see the point 8 that you reference. If I click on Converting File Content in the Sender Adapter I still see no point 8.
For simple plain conversion here is a config, which works in our system:
(left parameter key, right parameter value, module key always the same)
Transform.Class com.sap.aii.messaging.adapter.Conversion
TransformContentType text/xml;charset=utf-8
xml.conversionType SimplePlain2XML
xml.addHeaderLine 0
xml.processFieldNames fromConfiguration
xml.documentName SA02_Identnummer
xml.documentNamespace urn:mycompany-com:logistics:DFT:HWL
xml.structureTitle SA02_Identnummer_Satz
xml.fieldNames Satzart,Identnummer,Status
xml.fieldFixedLengths 2,10,3
Be aware, that you must delete all spaces in the config, especially when you copy and paste values.
For struct. conversion the entries are a little bit more complex.
Regards
Stefan
This documentation seems to indicate that PLAIN2XML is an arbitrary name. What seems to count is the conversiontype parameter. We are using Struct2XMLService since the flat file is of fixed length, not delimited.
Does anyone have a working example of this scenario?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm looking at the link you gave... I don't see PLAIN2XML anywhere.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you develop this module yourself or is it a standard module that is present in XI ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you check the SAP help file it seems to be using PLAIN2XML transformations in the example, maybe that will help ?
http://help.sap.com/saphelp_nw04/helpdata/en/4d/a3bc97ff55c742af7faed661635baf/frameset.htm
this tells how to migrate j2se dispatchers to be used as Modules in XI 3.0.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.