|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Complete XML String |
« View previous topic :: View next topic » |
Author |
Message
|
WMB_User |
Posted: Tue Feb 17, 2009 7:38 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Feb 17, 2009 7:44 am Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Tue Feb 17, 2009 6:35 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Feb 17, 2009 7:55 pm Post subject: |
|
|
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 |
|
 |
rekarm01 |
Posted: Tue Feb 17, 2009 10:54 pm Post subject: |
|
|
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 |
|
 |
|
|
|
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
|
|
|
|