Author |
Message
|
dprogwmb |
Posted: Tue Jun 19, 2012 9:42 am Post subject: Mapping XML and Cobol Data types? |
|
|
Voyager
Joined: 19 Jul 2011 Posts: 96
|
Hi all ,
Does anyone has any document that maps an XML data type with a copybook DataType?
Because I was asked to develop a message flow that takes an XML message as Input, Transforms it to binary (with copybook file) and then transform the response of the CICS into XML.
So I wonder If anyone of you has any kind of mapping betweeen XML (defined with an xsd file) and copybooks data types (defined with .cpy).
I could find this link (but it's not answering my question):
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fad06900_.htm
Regards everybody. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 19, 2012 10:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
kimbert |
Posted: Tue Jun 19, 2012 11:09 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
This is a standard scenario for message broker. You need to import the copybook to create a message set, then use that message set to parse and write the COBOL data using the MRM parser.
Don't use MRM for the XML side of the message flow - it is tempting, but XMLNSC is a better choice, and is just as easy. |
|
Back to top |
|
 |
dprogwmb |
Posted: Tue Jun 19, 2012 12:04 pm Post subject: Thanks guys... but |
|
|
Voyager
Joined: 19 Jul 2011 Posts: 96
|
Thanks guys... but I was wondering if you have any kind of documentation or something pre-defined to see the mapping between XML Data types (based in a xsd) and Copybook datatypes ... for example: a PIC 9(10)V99. is equivalent to a xsd:decimal and so on, and an example with real data...
I've been looking and the only thing I 've found was the link I sent before.
Regards... |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 19, 2012 12:05 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well, a PIC9(10)V99 could theoretically map to a number of different XML data types, depending on what's required.
For example, it could map to an xsd:string. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jun 19, 2012 2:06 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Why do you need to know the complete mapping from XML Schema types to COBOL types? That mapping is held within the COBOL importer, and it does a very good job of importing copybooks. That's probably the reason why nobody has ever asked for this information before.
I suspect that you are trying to design your flow in the wrong way, and therefore you are asking the wrong question. It is possible that I don't understand your requirement well enough. |
|
Back to top |
|
 |
|