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 » Creating CWF message set using an XSD file

Post new topic  Reply to topic
 Creating CWF message set using an XSD file « View previous topic :: View next topic » 
Author Message
vixenscup
PostPosted: Mon Dec 07, 2009 10:59 am    Post subject: Creating CWF message set using an XSD file Reply with quote

Newbie

Joined: 13 Nov 2003
Posts: 9

Hello,
I am trying to do a simple one to one mapping of a XML message to a CWF message (simple flat file (bitstream)) in Message Broker. The XML structure is huge so to create a Cobol Copy book by hand would be difficult. I imported the same XSD file used to create the source message set into a MRM domain CWF message set. It seemed to work but when I use the MAPPING node to map XML to CWF I continue to get XML as output instead of a flat bitstream. Is it even possible to do what I am trying to do? How else can I go about doing this without having to create a message set by hand for the CWF? Any help would be appreciated.

Regards,
Kathy
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 07, 2009 11:54 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi,

When you import an XSD into a message set, it creates the logical structure only. It does not set any of the physical properties.

That means that if you start by importing the XSD, then you will need to populate the CWF length property for each element/attribute in the schema.

The best ( least work ) approach would be to generate a copybook from the XSD. There may be tools out there which can do that for you, or you might need to write a Perl script/Java program/text editor macro to do it yourself.

Quote:
It seemed to work but when I use the MAPPING node to map XML to CWF I continue to get XML as output instead of a flat bitstream.
Sounds as if you forgot to set OutputRoot.Properties.MessageFormat to 'CWF1' ( or whatever your CWF physical format is called). But, as explained above, that would not solve the problem - it would probably just trigger an error, or give you an empty bitstream.
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 » Creating CWF message set using an XSD file
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.