Author |
Message
|
leo.yue |
Posted: Sun Nov 07, 2004 4:04 am Post subject: How to print invalid xml content |
|
|
Acolyte
Joined: 20 Oct 2004 Posts: 52
|
I have a MQInput Node and have set the default message domain to 'XML'.
When an invalid xml message passes it, I can find 'Parsing Errors have occured' in the message structure.
But I can not read this.
How can I print the invalid xml content in Trace Node.
Thanks in advance! |
|
Back to top |
|
 |
kirani |
Posted: Sun Nov 07, 2004 10:00 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Print your ExceptionList in a trace node using ${ExceptionList} pattern in a trace node. Exceptionlist will give you more details about the errors. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
leo.yue |
Posted: Tue Nov 09, 2004 3:57 am Post subject: |
|
|
Acolyte
Joined: 20 Oct 2004 Posts: 52
|
kirani, thanks for your reply
I know ExceptionList can tell me what happened, but I want to know message content in queue, but I can not print it in a trace node |
|
Back to top |
|
 |
kirani |
Posted: Tue Nov 09, 2004 4:49 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Well, if it's an invalid XML message then it will fail again when you try to print using Trace node. Another option would be to read your input message as BLOB in MQInput node and use RCD downstream to parse it using XML format. Now in a trace node you can print following statement to print complete message.
Code: |
My input message is ..
${CAST(Root."BLOB"."BLOB" as CHAR CCSID Root.Properties.CodedCharSetId)}
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
vmcgloin |
Posted: Tue Nov 09, 2004 5:55 am Post subject: |
|
|
Knight
Joined: 04 Apr 2002 Posts: 560 Location: Scotland
|
What about setting the backout properties on your input queue, so that the original message is rolled back to a backout queue? Then you don't lose the information, and can link it to the exception information from your trace node. |
|
Back to top |
|
 |
leo.yue |
Posted: Wed Nov 10, 2004 5:16 am Post subject: |
|
|
Acolyte
Joined: 20 Oct 2004 Posts: 52
|
thanks all of you  |
|
Back to top |
|
 |
|