|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Auditing (length of XML message) in trace node |
« View previous topic :: View next topic » |
Author |
Message
|
jeevan |
Posted: Sat Dec 09, 2006 9:26 pm Post subject: Auditing (length of XML message) in trace node |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
My requirement is such that, the flow has to recrod the of the length of the message which is in XML format. I tried the following pattern in tracenode, but doe not work. it returns NULL in the log file.
Quote: |
LENGTH(Root.BLOB.BLOB)}
|
I would appreciate any help |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Dec 10, 2006 6:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If the data is in XML Format, then there won't be a BLOB parser tree, nor a BLOB child node under that parser tree.
Unless you have coded specific things to make that happen. This is usually done with ASBITSTREAM.
You can not inquire of a message tree how long it is, in general.
Several other people have asked "How do I find out how long an XML document is, including the tags". I can't recommend a good search to find them, as there probably isn't one. Most of those original posters were not very clear on their questions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jeevan |
Posted: Sun Dec 10, 2006 7:28 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Jeff,
Thank you very much for your clear and explanatory answer. I would appreciate it.
That means, we have to rely on validation ( though not the same - by creating a predefined Message Format ) for the auditing of the xml message. Or is there any better method?
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Dec 10, 2006 9:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I do not understand what you're asking.
If you wish to validate that a message against some arbitrary set of constraints in WMB, then yes you need to model the data and include those constraints.
This appears to have nothing to do with getting the length of the bitstream that represents an XML document. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|