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 » Special character Problem in WMB

Post new topic  Reply to topic Goto page Previous  1, 2
 Special character Problem in WMB « View previous topic :: View next topic » 
Author Message
kimbert
PostPosted: Fri Apr 30, 2010 4:03 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

So...presumably your original message contained an illegal character ( null characters are not allowed in XML documents, even in a CDATA section).

I think you have the information that you need. You need to decide whether you want the message to be
a) human readable or
b) safely processed at all times
You cannot have both.
You can choose a) and then put in some base64 decoding to make it readable - but make sure that you do the decoding after the base64 data has been extracted from the XML message. Otherwise you might as well use CDATA.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Apr 30, 2010 6:25 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Hence my reply earlier in this thread about catch-22 and using a Zip node to encode the errant message in a way that other (non WMB) people can recognise and decode without 'special tools'.

We used the output from the ZipNode as an attachment to an email.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Svp
PostPosted: Fri Apr 30, 2010 8:10 am    Post subject: Reply with quote

Apprentice

Joined: 18 Feb 2010
Posts: 40

If the blob is well formed XML try this
CAST(blob AS CHARACTER CCSID 850)
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Apr 30, 2010 8:34 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Svp wrote:
If the blob is well formed XML try this
CAST(blob AS CHARACTER CCSID 850)


But what if the BLOB is not a well formed XML message? OR it contains NULL or other non escaped characters.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Special character Problem in WMB
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.