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 » An XML element value treated as a CWF messagetree

Post new topic  Reply to topic
 An XML element value treated as a CWF messagetree « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Mon Oct 11, 2004 6:07 am    Post subject: An XML element value treated as a CWF messagetree Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

I have the following situation and I need some guidance.

XML message:

Code:

<msg>
   <elem1>blabla</elem1>
   <elem2>blabla</elem2>
   <elem3><100 byte CWF message></elem3>
</msg>


I have used the ASBITSTREAM (with CCSID, Encoding, MsgSet, MessageID and MessageType) function to assign the 100 byte CWF message (fixed length string from a COBOL application) to the Environment.Variabels.InputMessage variable; now I have to browse this message tree but I don't know how...

Should I use the MOVE statement? Can I reference the single elements as
Environment.Variables.InputMessage."<elementName>"?

Thanks for any hint,
Cheers
Andrea Tedone
IBM IT Specialist
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jefflowrey
PostPosted: Mon Oct 11, 2004 6:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't use ASBITSTREAM to turn a stream of bytes into a message tree.

You use ASBITSTREAM to turn a message tree into a stream of bytes.

To turn a stream of bytes into a message tree, you need to use CREATE FIELD with the PARSE clause.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Testo
PostPosted: Mon Oct 11, 2004 7:27 am    Post subject: Thanks Jeff Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thank you, I'll look for documentation about that instruction.

Cheers,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
shanson
PostPosted: Thu Nov 04, 2004 1:34 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Be careful when inserting binary data as the value of an XML element. Ideally it should encoded. See the MRM XML properties for an element of logical type xsd:binary for the options you have.
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 » An XML element value treated as a CWF messagetree
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.