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 » How to handle repeating complex types in CWF format

Post new topic  Reply to topic
 How to handle repeating complex types in CWF format « View previous topic :: View next topic » 
Author Message
shyamkumarsharma001
PostPosted: Mon Nov 14, 2011 4:33 am    Post subject: How to handle repeating complex types in CWF format Reply with quote

Novice

Joined: 24 May 2011
Posts: 18

Hi

I have a requirement of transforming an XML to CWF format where the structure of CWF format is

Message
Header ( comes only once)
... Elements (1-n)
Body ( repeating )
... Elements(1-n)
Trailer (comes only once)
... Elements(1-n)

my question is how to handle the repeating complex type (i.e. Body) as it pops out warning that I have an unbounded number of repeats for the element and this must be the last element of the parent element.

Please suggest how to rectify this.

Thanks in advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Nov 14, 2011 5:14 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

CWF does not allow tags, so the only *safe* place for something that repeats an *unknown* number of times is at the end of the message. That way, the end of the message marks the end of the last occurrence.

I assume that your data contains some type of 'record identifier' or 'tag' that the next application will use when it is parsing the data. If so, then it should be safe to ignore the warning.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Nov 14, 2011 5:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could nest the trailer record as an optional child of the body.
Then the body would be the end of the record, and would repeat an unlimited number of times, and only the last instance of the body would have an occurrence of the trailer.
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 » How to handle repeating complex types in CWF format
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.