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 » Blob to XML

Post new topic  Reply to topic
 Blob to XML « View previous topic :: View next topic » 
Author Message
drcas
PostPosted: Tue Aug 31, 2004 9:21 am    Post subject: Blob to XML Reply with quote

Apprentice

Joined: 03 May 2002
Posts: 26

I would appreciate any input to my interface's requirements.

The input message to the message flow will consist of 3 types of 80 byte fixed width messages. One block 1 message- the header-, n number of block 2 messages- the data- and one block 9 message -the trailor. The flow is required to route the message to receivers and filter out the block 2 messages that the receiver does not require and update the trailor with the block 2 count.

I do not believe I can model this message in CWF as CWF does not support repeating groups ( the cardinality of the block 2 records is n). My idea is to bring the message in as a BLOB and then substring it into an XML format. The XML message would then be routed to the receivers and filtered according to the rules. The XML message would then be transformed back to the BLOB and put to the receiver's queues.

Does this sound reasonable or can someone think of a better approach? Note that the message cannot be broken up into separate block messages and the filter rules will be stored in a database as will the receiver's - not that that matters.

I appreciate any assistance.
-David
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 31, 2004 9:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can model tagged fixed width data with TDS, which does support variable repeats.

I have done exactly the kind of thing you are looking to do with TDS, when working with Commonline records (student loan data).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
drcas
PostPosted: Tue Aug 31, 2004 9:35 am    Post subject: Reply with quote

Apprentice

Joined: 03 May 2002
Posts: 26

I'll look into it. What if the data is not tagged?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 31, 2004 9:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What makes a block 1 different than a block 2 or a block 9? I assume those terms represent tags of some sort.

If not, you can still do this with TDS in some cases - you just have to have record delimiters (like line endings!) or the records need to start with some logically distinct field types.

Or you can still model it as a choice, and then you have to do some work to resolve the choice.

It's likely possible with your data.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
drcas
PostPosted: Tue Aug 31, 2004 12:26 pm    Post subject: Reply with quote

Apprentice

Joined: 03 May 2002
Posts: 26

The first character in the record is the block type. It is either '1', '2', or '9'. There are no tags in the data.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 31, 2004 4:25 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

drcas wrote:
The first character in the record is the block type. It is either '1', '2', or '9'. There are no tags in the data.


That's a tag.
_________________
I am *not* the model of the modern major general.
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 » Blob to XML
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.