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 Decode the Xml value from the Blob filed

Post new topic  Reply to topic Goto page Previous  1, 2
 How to Decode the Xml value from the Blob filed « View previous topic :: View next topic » 
Author Message
Laaziya
PostPosted: Thu Mar 13, 2014 1:50 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2014
Posts: 13

SET Environment.Outbound.claim= PASSTHRU('SELECT XML_IN FROM CLAIM_XML WHERE CLM_RECRD_ID =?',Id);

DECLARE bodyBlob BLOB ASBITSTREAM(InputRoot.XMLNS, InputProperties.Encoding,InputProperties.CodedCharSetId);
CREATE FIELD Environment.Outbound.claim;
DECLARE creationPtr REFERENCE TO Environment.Outbound.claim;
CREATE FIRSTCHILD OF creationPtr DOMAIN('XMLNS') PARSE(bodyBlob,
InputProperties.Encoding,
InputProperties.CodedCharSetId);

Let me know if im wrong in this code. This code results error.
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Mar 13, 2014 2:26 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Laaziya wrote:

Let me know if im wrong in this code. This code results error.


1. PASSTHRU returns an array.

2. Why do you try to parse the Input message into BLOB and then back to a message tree? Shouldn't you process the result of the db query instead?

3. Use XMLNSC, not XMLNS.
Back to top
View user's profile Send private message
Laaziya
PostPosted: Thu Mar 13, 2014 4:20 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2014
Posts: 13

It doesn't work. I tried out to change the flow too . Did work
Back to top
View user's profile Send private message
Gralgrathor
PostPosted: Thu Mar 13, 2014 5:02 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

Laaziya wrote:
This code results error.


Yes... And then? What's the error, for instance? What does the documentation say about this error?
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
Laaziya
PostPosted: Thu Mar 13, 2014 5:22 am    Post subject: Reply with quote

Novice

Joined: 05 Mar 2014
Posts: 13

x03000000:NameValue):Text = 'Error detected, rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'POSTPAY.OUT_WTX_INTG_Compute3.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '46.6' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CREATE FIRSTCHILD OF creationPtr DOMAIN 'XMLNS' PARSE(bodyBlob,
InputProperties.Encoding, InputProperties.CodedCharSetId);' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = '/build/slot1/S800_P/src/DataFlowEngine/ImbRdl/ImbRdlTreeStatements.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 191 (INTEGER)
(0x03000000:NameValue):Function = 'SqlCreateFieldStatement::execute' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmComputeNode' (CHARACTER)
(0x03000000:NameValue):Name = 'POSTPAY/OUT_WTX_INTG#FCMComposite_1_8' (CHARACTER)
(0x03000000:NameValue):Label = 'POSTPAY.OUT_WTX_INTG.OutboundXML' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2906 (INTEGER)
(0x03000000:NameValue):Text = '' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'POSTPAY.OUT_WTX_INTG_Compute3.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '46.6' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'NULL' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'BITSTREAM' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CREATE' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CHARACTER, BIT, BLOB' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'NULL' (CHARACTER)
)
)

Ended with this one in trace
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Mar 13, 2014 5:40 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

You can check the error message here

Your code is a direct copy of example 7 of CREATE statement in the Infocenter.

Why doesn't it 'work', then?

Are you sure that InputRoot.XMLNS exists?

Yes, fix this and next you will find out that you have processed the wrong message.
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 » How to Decode the Xml value from the Blob filed
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.