|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMQI 2.1 - COBOL to XML? |
« View previous topic :: View next topic » |
Author |
Message
|
Joharik |
Posted: Tue Jun 04, 2002 9:23 pm Post subject: WMQI 2.1 - COBOL to XML? |
|
|
 Novice
Joined: 13 Feb 2002 Posts: 10 Location: Kuala Lumpur Malaysia
|
Hi,
I'm new to WMQI. We going to start our project soon with WMQI 2.1 on OS390 platform. My question is, when we received the input from the application in COBOL format, how do we convert thos to XML format?
Appologize for asking those simple question.
TIA  |
|
Back to top |
|
 |
Yanghui |
Posted: Wed Jun 05, 2002 2:49 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
Hi,
You can add a XML physical format right after you create a new msgset, and then import COBOL COPYBOOK into it.
In Compute node, you can set up
"Properties"."MessageDomain" = "MRM";
"Properties"."MessageSet" = "......";
"Properties"."MessageType" = "......";
"Properties"."MessageFormat" = "XML";
Then, you should be able to generate XML without extra effort.
Hope it helps.
Regards
-Yanghui |
|
Back to top |
|
 |
kirani |
Posted: Wed Jun 05, 2002 8:03 am Post subject: Re: WMQI 2.1 - COBOL to XML? |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Joharik wrote: |
Hi,
My question is, when we received the input from the application in COBOL format, how do we convert thos to XML format?
|
You can do this by creating a messageset and adding two physical layers to it,
1. CWF
2. XML
After you import your COBOL copybook into Messageset WMQI will create Elements and Types for you. You will have to then model your input (COBOL) and output (XML) messages into MRM. Once your messages are modeled, you can write a simple message flow to transform from one format to another with very few lines of ESQL code.
If you don't want to model your XML message into MRM, then you don't have to add second wire format. In this case, you will have to write ESQL code to that creates XML output message from incoming Fixed Lenght message (COBOL) Message.
Working with Messages manual has some examples on this.
Regards, _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Joharik |
Posted: Wed Jun 05, 2002 3:22 pm Post subject: |
|
|
 Novice
Joined: 13 Feb 2002 Posts: 10 Location: Kuala Lumpur Malaysia
|
Thanx a lot.
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|