on 10-22-2009 11:09 AM
Hello,
I am using JMS Receiver, I want to convert the XML to Plain text. Below are the parameters that i have used whle conversion.
Please let me know whats going wrong,
1 AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
2 SAP XI JMS Adapter/ConvertMessageToBinary Local Enterprise Bean convert_XI2Bin
3 SAP XI JMS Adapter/SendBinarytoXIJMSService Local Enterprise Bean exit
XML2Plain Transform.Class com.sap.aii.af.sdk.xi.adapter.Conversion
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType SimpleXML2Plain
XML2Plain xml.documentName MTXYZ
XML2Plain xml.documentNamespace http://test
XML2Plain xml.fieldFixedLengths 5,6,7,8
XML2Plain xml.fieldNames X,Y,Z,A
XML2Plain xml.fieldSeparator -
XML2Plain xml.fixedLengthTooShortHandling Cut
XML2Plain xml.processFieldNames fromConfiguration
Thanks,
Siddhesh
Edited by: Siddhesh Pathak on Oct 22, 2009 12:09 PM
Solved. Changed the Stracture.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> XML2Plain Transform.Class com.sap.aii.af.sdk.xi.adapter.Conversion
> XML2Plain Transform.ContentType text/plain;charset=utf-8
> XML2Plain xml.addHeaderLine 0
> XML2Plain xml.conversionType SimpleXML2Plain
> XML2Plain xml.documentName MTXYZ
> XML2Plain xml.documentNamespace http://test
> XML2Plain xml.fieldFixedLengths 5,6,7,8
> XML2Plain xml.fieldNames X,Y,Z,A
> XML2Plain xml.fieldSeparator -
And the second thing is you cannot use both FixedLength & fieldSeparator altogether. No need to give the field names unless you are using the complex structure. In your case you have used SimpleXML2Plain which means it is a simple structure. Please make sure of it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I am using JMS Receiver, I want to convert the XML to Plain text. Below are the parameters that i have used whle conversion.
> Please let me know whats going wrong,
>
> 1 AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
> 2 SAP XI JMS Adapter/ConvertMessageToBinary Local Enterprise Bean convert_XI2Bin
> 3 SAP XI JMS Adapter/SendBinarytoXIJMSService Local Enterprise Bean exit
In step 2 try with callJMSService instead of convert_XI2Bin
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.