|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
An XML element value treated as a CWF messagetree |
« View previous topic :: View next topic » |
Author |
Message
|
Testo |
Posted: Mon Oct 11, 2004 6:07 am Post subject: An XML element value treated as a CWF messagetree |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Oct 11, 2004 6:54 am Post subject: |
|
|
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 |
|
 |
Testo |
Posted: Mon Oct 11, 2004 7:27 am Post subject: Thanks Jeff |
|
|
 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 |
|
 |
shanson |
Posted: Thu Nov 04, 2004 1:34 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|