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 » How to print invalid xml content

Post new topic  Reply to topic
 How to print invalid xml content « View previous topic :: View next topic » 
Author Message
leo.yue
PostPosted: Sun Nov 07, 2004 4:04 am    Post subject: How to print invalid xml content Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sun Nov 07, 2004 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
leo.yue
PostPosted: Tue Nov 09, 2004 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Tue Nov 09, 2004 4:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vmcgloin
PostPosted: Tue Nov 09, 2004 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message
leo.yue
PostPosted: Wed Nov 10, 2004 5:16 am    Post subject: Reply with quote

Acolyte

Joined: 20 Oct 2004
Posts: 52

thanks all of you
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 » How to print invalid xml content
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.