Author |
Message
|
chanchal |
Posted: Wed Apr 28, 2004 9:27 am Post subject: converting XML messages into cobol copybook |
|
|
Apprentice
Joined: 30 Jan 2004 Posts: 38
|
I need to convert XML messages into cobol copybook using WMQI.acn anybody give me idea of how to do that?? |
|
Back to top |
|
 |
waugh |
Posted: Wed Apr 28, 2004 9:44 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 28, 2004 9:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There've been a number of repetitions of this same question before.
In addition to actually reading the manuals and learning the product (since what you are asking is a very very basic function of the product), you could read through the other responses here to get a better idea of what's involved. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
chanchal |
Posted: Wed Apr 28, 2004 9:49 am Post subject: |
|
|
Apprentice
Joined: 30 Jan 2004 Posts: 38
|
I have gone thru this document and still dont have good idea of how to do that.Do you have any sample program to do that?? |
|
Back to top |
|
 |
Missam |
Posted: Wed Apr 28, 2004 10:12 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
For this you need to create a MRM Message Set and a Message which represents your Cobol copybook's format.
since you have incoming XML message there is no need for creating message set and message for this.you can use your XML as self defining XML.
And in the compute node you need to map your XML elements to your MRM elements.
Quote: |
I have gone thru this document and still dont have good idea of how to do that |
this book describes general usage of working with messages ,not specific to any requirement.
Quote: |
Do you have any sample program to do that?? |
I guess that this book provides a working example of a video store.
you can start working from there. |
|
Back to top |
|
 |
aks |
Posted: Wed Apr 28, 2004 2:38 pm Post subject: |
|
|
Voyager
Joined: 19 Jul 2002 Posts: 84
|
If you want to validate your incoming xml against a DTD or schema, you can import your DTD or schema into a message set project and either turn validation on in the MQInput node, or do it in a compute node. |
|
Back to top |
|
 |
|