ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping XML and Cobol Data types?

Post new topic  Reply to topic
 Mapping XML and Cobol Data types? « View previous topic :: View next topic » 
Author Message
dprogwmb
PostPosted: Tue Jun 19, 2012 9:42 am    Post subject: Mapping XML and Cobol Data types? Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 19, 2012 10:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.samples.video.doc/doc/overview.htm

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/aa40000_.htm
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jun 19, 2012 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
dprogwmb
PostPosted: Tue Jun 19, 2012 12:04 pm    Post subject: Thanks guys... but Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 19, 2012 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Jun 19, 2012 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping XML and Cobol Data types?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.