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 handle junk or high end or low values in mf

Post new topic  Reply to topic
 How to handle junk or high end or low values in mf « View previous topic :: View next topic » 
Author Message
muthu121521
PostPosted: Fri Sep 04, 2015 8:32 am    Post subject: How to handle junk or high end or low values in mf Reply with quote

Apprentice

Joined: 31 Aug 2015
Posts: 36

Our IIB service we are exposing a web service which invokes a stored procedure and gets the response and then construct the message in XML format.
We are getting high or low end values or junk characters from db2 main frame
Our requirement is that we can get these values in any element if that occurs i will have to show that as null otherwise the whatever valid value i have to display it in the response

How can i handle this ?

Below is the error we are getting when we are invoking,i think the error occurred when come soap reply node.We are using inherit as validation property

Error Making JNI Call: method_com_ibm_broker_axis2_Axis2Invoker_prepareToSendReplyNonSOAP:Frame : 0 org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.| @: o
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 04, 2015 8:44 am    Post subject: Re: How to handle junk or high end or low values in mf Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

muthu121521 wrote:
How can i handle this ?


Write code (ESQL?) to null out invalid XML characters
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 04, 2015 8:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Perhaps you should review this with the DB team and make sure that the values you are getting back are not in a different codepage than you expect?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
muthu121521
PostPosted: Fri Sep 04, 2015 9:35 am    Post subject: Reply with quote

Apprentice

Joined: 31 Aug 2015
Posts: 36

Write code (ESQL?) to null out invalid XML characters//


We are using only ESQL to call stored procedure ,transform the messages and construct the message in xml format


how can i null out these values ? by casting it as CCSID 1208
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 04, 2015 9:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

muthu121521 wrote:
how can i null out these values ? by casting it as CCSID 1208


No, because characters valid in 1208 are not valid in XML.

You'll have to remove the undesired characters with logic, and escape characters than have to be escaped.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
inMo
PostPosted: Fri Sep 04, 2015 10:08 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

Please see the part of your post where you indicate that you use ESQL to transform the message.
Back to top
View user's profile Send private message
timber
PostPosted: Fri Sep 04, 2015 2:09 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
how can i null out these values ? by casting it as CCID 1208
Where ( exactly ) do these 'high values' and 'low values' and 'junk characters' appear. Think carefully before answering - if you don't understand the problem then you have no chance of getting the right solution.
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 handle junk or high end or low values in mf
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.