cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with JMS Receiver.

siddhesh_pathak4
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

siddhesh_pathak4
Contributor
0 Kudos

Solved. Changed the Stracture.

Former Member
0 Kudos

> 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.

siddhesh_pathak4
Contributor
0 Kudos

Yes I am having simple structure, like,

MTXYZ

X

Y

Z

A

I will make sure to not to use field length and field Separator together. Thanks.

Former Member
0 Kudos

> 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

siddhesh_pathak4
Contributor
0 Kudos

Hey Sarvesh,

Thanks for all your help. But could please clarify how that change will help?

Former Member
0 Kudos

>

> Hey Sarvesh,

>

> Thanks for all your help. But could please clarify how that change will help?

As per the SAP documentation it should be like that. Secondly we are using the same and it is working.

siddhesh_pathak4
Contributor
0 Kudos

Ok I will try out with this and get back to you. Thanks for all your help