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 » Complete XML String

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 Complete XML String « View previous topic :: View next topic » 
Author Message
WMB_User
PostPosted: Tue Feb 17, 2009 7:38 am    Post subject: Reply with quote

Apprentice

Joined: 17 Nov 2008
Posts: 31

Try this without the RCD node:
Code:
DECLARE origRequestAsBLOB  BLOB      ASBITSTREAM(inputRoot.XMLNSC, inEncoding, inCCSID);
DECLARE origRequestAsCHAR  CHARACTER CAST(origRequestAsBLOB as CHARACTER CCSID inCCSID Encoding inEncoding);
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 17, 2009 7:44 am    Post subject: Reply with quote

Grand High Poobah

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

I give in. Really.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Tue Feb 17, 2009 6:35 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

rohank84 wrote:
The problem is that i have to insert this XML string into Database in compute2 node . So i need to know how can I get this XML string.

rohank84 wrote:
Hi jeff ....i tried using ASBITSTREAM function and got my message in BLOB type.... now i need to convert this into XML message
Code:
set inputmessage = ASBITSTREAM(InputRoot);

WMB_User wrote:
Using the CAST function will do what you wish, convert the BLOB to an "XML string".

Vitor wrote:
No it won't - see above!

Vitor,

I think you might be confusing this topic with another one.

[edit] ... or maybe not.[/edit]


Last edited by rekarm01 on Tue Feb 17, 2009 9:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 17, 2009 7:55 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

rekarm01 wrote:
rohank84 wrote:
The problem is that i have to insert this XML string into Database in compute2 node . So i need to know how can I get this XML string.

rohank84 wrote:
Hi jeff ....i tried using ASBITSTREAM function and got my message in BLOB type.... now i need to convert this into XML message
Code:
set inputmessage = ASBITSTREAM(InputRoot);

WMB_User wrote:
Using the CAST function will do what you wish, convert the BLOB to an "XML string".

Vitor wrote:
No it won't - see above!

Vitor,

I think you might be confusing this topic with another one.


No, I don't think so.

As far as I can tell, the original poster asked a question about serialization, with an example that appeared to demonstrate proper underdstanding of parsing. The original poster then followed up a long and lengthy attempt to get them to read, learn, think, and try on their own with a question about how to take the string that they had just serialized, and parse it again.

I give up too.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Tue Feb 17, 2009 10:54 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

mqjeff wrote:
rekarm01 wrote:
Vitor,

I think you might be confusing this topic with another one.

No, I don't think so.

mqjeff,

You're probably right. I think I misunderstood Vitor's comments the first time around. I thought Vitor meant that the CAST function would not convert a BLOB to string (what the OP really needs), when it's more likely he meant that the CAST function would not convert a BLOB to message (what the OP asked for).

mqjeff wrote:
I give up too.

I understand.
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, 3 Page 3 of 3

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Complete XML String
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.