Testing JMS content conversion
Hi Experts,
I have a scenario MQ-->PI--ECC.
MQ sends a flat file and there is JMS content conversion used in sender JMS channel. On MQ side channels are not yet setup. Now I need to test if JMS content conversion is working properly. I cannot test by triggering flat file from RWB.
Is there a way I can trigger a file from any third party tools and test the content conversion. Do you have any suggestions to make this test possible.
Thanks,
Avinash.
Hi Avinash
One option is to create a temporary File/FTP sender channel and use it in the sender agreement replacing the JSM channel. In the File/FTP channel, use the MessageTransformBean to achieve content conversion. This way, you can test out the content conversion parameters, and once the JMS server is ready, you can just swap it.
Rgds
Eng Swee
Similar Messages
-
Hi ,
I am facing issue in JMS content conversion
my file looks like as below...
field1¤field2¤
field1¤field2¤
field1¤field2¤
field1¤field2¤
in module i have used this
AF_Modules/MessageTransformBean PLAIN2XML
Transform.Class com.sap.aii.messaging.adapter.Conversion
Transform.ContentType text/xml;charset=utf-8
xml.conversionType SimplePlain2XML
xml.documentName MT_data
xml.documentNamespace http://xyz.com
xml.fieldNames field1,field2
xml.fieldSeparator ¤
xml.processFieldNames fromConfiguration
xml.structureTitle records
but i am getting following error
Error occurred while processing message: . Detailed error (if any): com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter xml.fieldFixedLengths or xml.fieldSeparator is missing (4409) Consistency check: no. of arguments in xml.fieldFixedLength does not match xml.fieldNames (0 <> 2) : TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Consistency check: no. of arguments in 'xml.fieldFixedLength' does not match 'xml.fieldNames' (0 <> 2)
ironically when i use file adapter, its reading the file properly and converting XML as expected?
Did anyone face this issue.....
is this issue because of an extra ¤ .. is so... why its not giving issue with File??You need an additional hierarchy level:
root
-> row
-> data
In your example:
<?xml version="1.0" ?>
<ns1:HQ_reply_MT xmlns:ns1="urn:abc.com:HQToSAP">
<b><row></b>
<Data1> PIPXSDI3070 00000 00342YSDI3070PROCESS_MQSERIES HQXPLOR10 XPLOR.ORDER.RESULTS 0000 000000000000000086312 Invalid Process flag : 2. 065</Data1>
<b></row></b>
</ns1:HQ_reply_MT>
Regards
Stefan -
JMS Content Conversion with spaces
Hi
I am using the JMS Content Conversion to transalte MQ messages ( they come from the Mainframe ),to XML Format.
These messages are in fixed lenghts structure , the fields contain blanks (spaces)
The adapter cannot deal with it,only fixed lenghts without spaces , the monitor gives the following error
XI inbound processing failed for message at 2006-08-24|07:45:25.518+0200. JMS and XI identifiers for message are ID:414d51204445564d41494e31202020207aabe04420c2ea13 and bd95c760-3333-11db-b915-001125a56002 respectively. JMS adapter will rollback database and JMS session transactions
Have some1 dealed with this issue? managed to solve it?
Thx,ShaiHi Shai.
Before you call him ,try to use the simple convertion in the sender JMS comm. channel,then after you got the first XML structure to the XI ,use a simple\advanced java function from the message mapping and get rid of the spaces if they bother you.
Can you post the fixed width message you get from JMS I'd like to have a look.
By the way ,how did you resolve the File content convertion with 4 levels?
Regarding Yaki's phone...well I'm sure your Boss have it.
8-)
Again ,good luck.
Nimrod
Message was edited by: Nimrod Gisis -
JMS content conversion adapter module
Hi All,
In JMS Content conversion module Xml2Plain how do u put two new lines 'nl'.
I am using localejbs/AF_Modules/MessageTransformBean in adapter module.
If I put xml.record.fieldSeparator in parameter name and in parameter value if I put one 'nl' it gives me one new line. Now I require two new lines in my output text so I put 'nl' 'nl' in parameter value but it takes only one new line.
e.g
Vivek
mumbai
India
John
Delhi
India
Now I want the output as:
Vivek
mumbai
India
John
Delhi
India
Thanks in advance.
ravijeettry,
xml.record.fieldSeparator '0x0D''0x0D'
or
xml.record.fieldSeparator '0x0A''0x0A' -
Hi
In the sender JMS content conversion, I do not want Recordset name hence I specified,
Parameter Name: xml.ignoreRecordsetName
Parameter Value: true
But am still getting the Recordset name in the payload...
Is this working for someone or a bug?
Thanks in advance!
Amulya>
Amulya Lewis wrote:
> Hi
>
> In the sender JMS content conversion, I do not want Recordset name hence I specified,
> Parameter Name: xml.ignoreRecordsetName
> Parameter Value: true
> But am still getting the Recordset name in the payload...
> Is this working for someone or a bug?
>
> Thanks in advance!
> Amulya
when using the MessageTransformBean do note that xml.ignoreRecordsetName does not work -
Sender JMS Content Conversion - How to process multiple records
Hi All,
I use a Sender JMS Channel with Content Conversion.
My message structure is like this
<root>
<rec> </rec>
<rec> </rec>
</root>
I have fixed length flat file with multiple records.
i have given the parameters FixedFieldLength, FieldNames and StructureTitle.
Which parameter i need to use specify the RecordDelimiter
Because my input file will have more than record
my input file -
xxxx
yyyy
if i dont specify any delimiter value, in the module parameter,then for each newline of the file, a new mesage is created.
<root>
<rec>xxxx</rec>
<root>
<root>
<rec>yyyy</rec>
<root>
But i want the output to be like this
<root>
<rec>xxxx<rec>
<rec>yyyy</rec>
</root>hi,
You can do your FCC for sender JMS by going through page 5 of this document.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710 -
JMS Content Conversion - Need to control RecordSet per Message
Hi All,
I have done a simple JMS to JMS scenario with content conversion.
I need to control RecordSet per Message ( similarlly we do for the FILE . that is , Recordset Structure = Records, 500 and Recordset per message = 1)
How to achive this in JMS adapter.
Regards,
B.JudeThere doesnt seem to be an option for that in the messagetransforbean
http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter -
Hi all,
is possible to do content conversion in JMS Adapter of a file whit the following structure?
-Root
--Header
---A
---B
---C
--Content
---Record_A
D
E
F
---Record_B
G
H
Record_C
I
J
And if it's possible....how to do it?
Thanks all
ManeHi,
Refer to these links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
Check the how to guide provided by prabhu and also this link on the XMl To TeXtCoversion Module,
http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm
Regards,
Kumar.
**reward points if helpful!!! -
Doubt in jms content conversion
Hi ,
I m doing content conversion in sender jms channel.
My input is of the format
AAAAAAA#bbbbbbb#ccccccc#
I want to map it to XML Structure
<Root>
<Record>
<item>AAAAA </item>
</Record>
<Record>
<item>bbbbb</item>
</Record>
<Record>
<item>CCCC</item>
</Record>
</Root>
Is it possible?Resolved
-
JMS Content Conversion wtih MessageTransformBean
Hi
I'm doing a content conversion in a MQSeries Receiver Channel using the MessageTransformBean. The adpater logs say that the bean has been processed and that the message has been transformed successfully. However, when I look on the queue and in the adapter message content I still see the original xml message. Any one have an idea what the problem could be? We are on XI 7.0 SP11
Thanks
TimTim,
you can use MessageTransformBean module in file adapter.
Just add the module in the module tab.
Regards,
Henrique. -
JMS Content Conversion - no CR/LF
has anyone been able to successfully use content conversion when there are not carriage returns/line feeds between the headers & lines? We are receive MQ messages that are continuous streams of data containing the header data and all the lines. The segements are all fixed-width, but we can only get content conversion to work if we insert carriage returns & line feeds between hearder & the 1st line, then between all lines. We'd like it to parse based on length alone. currently, content conversion just reads the header, and throws the remaining data away.
thanks!
amyHi Amy,
Unfortunately, the default adapter configuration does not provide this feature. You will have to write java code.
There are 2 options available:
1. develop user-module for the adapter and parse its content before sending it to the integration server.
2. send the content of the data to XI without any parsing and use java mapping to parse the data.
In this case, option 2 is probably easier.
Regards,
Bill -
Hi all,
i have a problem.
I don't know how to convert a flat file that contain more than three nested level in a xml file. I tried with the content conversion but it doesn't work.
In my scenario I use a file adapter.
The structure is like the following:
Root
--fieldA
--fieldB
fieldB_1
filedB_2
fieldB_3
fieldB_3_1
fieldB_3_2
Please help me.
Thanks all!!
ManeSomeone told me that there is SAP documentations that declare maximum 2 nested level.
Is it true? -
Sender JMS content conversion only header
I hav a scenario as shown in example 3.2. of Wiki given below and configured accordingly.
I only get NameA record but i do not get NameB or NameC.
can some one help me out if I am wrong some where
http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapterHi Robin,
Check whether you have added the conversion modules in the JMS adapter.
Check whether you have have defined the paramters listed below:
NameA.documentName
NameA.documentNamespace
NameA.recordsetName
NameA.recordsetStructure (Ensure recordSetStructure is defined correctly)
If any keyfield is used, then use nameA.keyFieldName, nameA.keyFieldValue
If the lengths of the fields are fixed then use NameA.fieldFixedLengths
Thanks, -
Document for JMS Content Conversion
Hi,
I am fairly new to XI. Am working with MQSeries as both sender and receiver. The messages from/to MQSeries are not in XML format. I will need to convert them into/from XML.
I know there are help/how-to documents on this topic but cannot find them.
Does anyone know their locations?
Thanks,
JohnHi John,
You can find the how-to document on:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
The same document is also available in service.sap.com: Media Library->Guides
Regards,
Bill -
Content conversion in Sender JMS adapter-document
Hi,
I am tring to read fixed length flat file from MQ-series Queue using JMS adapter.
I want to use content converstion to convert the flat file to XML.
I am not able to open the PDF link provided in SDN.
if anyone has a copy of the pdf document on JMS content conversion, could you please enmil it to me
at [email protected]
Edited by: ashok sri on May 27, 2008 5:25 PMplease go through the document
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
Maybe you are looking for
-
Hi, I am writing a piece of code where I want to able to choose from a menu a screen that displays multiple graphs (using Internal frames.) I am using cardlayout to bring up the various options I choose from the menu. I have simplified my program as
-
Can't install quicktimeor uninstall it for that matter and itunes I receive error code 2738 with both downloads. I'm running Window Vista with Service Pack 2. I have check for all window update. I have gone through Apple itune help list. Even goi
-
Probably a stupid question - what does '256' mean in response to a command
Hi, I.m just learning PHP (I mean at the very beginning). The tutorial I'm following was running through how to start and stop the apache server via terminal. When I entered the commands, I received the following error" /usr/sbin/apachectl: line 82:
-
Is it possible to work with generic delta with timestamp without time chracterstics , and calday with out date feilds. PLZ can any one provide reply to my thread. Edited by: aumdeepa on Aug 5, 2011 11:47 AM
-
Prob. with finding the unique special characters
Hi Friends, I have a table having special characters as data ex: š Š Ř Š ř Ř when i query for distinct (unique) data as "select distinct(entity) from tname; it results Š Ř I need unique values (upper and lower spsl charcters has different ascii) as š