|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem while insert XML from WMQI |
« View previous topic :: View next topic » |
Author |
Message
|
ashish.jaiswal |
Posted: Fri Mar 31, 2006 5:57 am Post subject: Problem while insert XML from WMQI |
|
|
Newbie
Joined: 04 Oct 2005 Posts: 4
|
Hi Everyone,
I am facing problem while inserting XML file into DB2 CLOB data coulmn from WMQI node, when i insert other data into like string it is working fine.
Does anyone have solution?
Thx
Ashish |
|
Back to top |
|
 |
wschutz |
Posted: Fri Mar 31, 2006 11:38 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Well...
(1) you need to tell us what problem you are having,
(2) it would be nice to see the esql you are using
(3) tell us the version + csd of broker, the operating system and the database and its version.
then, maybe we can help.... _________________ -wayne |
|
Back to top |
|
 |
ashish.jaiswal |
Posted: Mon Apr 03, 2006 2:27 am Post subject: |
|
|
Newbie
Joined: 04 Oct 2005 Posts: 4
|
Hi,
I am using the following esql
SET XML_DATA = CAST(InputRoot.BLOB.BLOB AS CHAR);
INSERT INTO Database.CRWSLOG(ACTION_KEY,XML_TEXT )
Values('yyyy',XML_DATA);
when i use this esql it is storing into DB2 as
1 yyyy - - - - - X'3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e0a3c736f6170656e763a456e76656c6f706520786d6c6e733a736f6170656e763d22687474703a2f2f736368656d61732e786d6c736f61702e6f72672f736f61702f656e76656c6f70652f2220786d6c6e733a7773613d22687474703a2f2f736368656d61732e786d6c736f61702e6f72672f77732f323030342f30332f61646472657373696e672220786d6c6e733a7873643d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612220786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d61696e7374616e6365223e0a203c736f6170656e763a4865616465723e0a20203c7773613a546f3e6a6d733a2f71756575653f64657374696e6174696f6e3d6a6d732f435249532f57535265717565737426616d703b636f6e6e656374696f6e466163746f72793d6a6d732f4947464855422f534f41504a4d53466163746f72793c2f7773613a546f3e0a20203c7773613a416374696f6e3e6a6d733a2f746172676574536572766963653d50726f63657373437265646974526571756573743c2f7773613a416374696f6e3e0a20203c4170706c69636174696f6e3e5232463c2f4170706c69636174696f6e3e0a20203c456e7669726f6e6d656e743e4344544445563c2f456e7669726f6e6d656e743e0a20203c466f726d61743e50726f63657373437265646974526571756573743c2f466f726d61743e0a20203c7773613a5265706c79546f3e0a2020203c7773613a416464726573733e6a6d733a2f71756575653f64657374696e6174696f6e3d6a6d73
While we need to store the xml in character format.
And we are using WMQI-2.1 version, DB2 v8.0.1.36 server edition, platform is Windows-XP on which we are working.
Could you help it out to store the data in character format?
Thx
Ashish |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 03, 2006 3:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Code: |
SET XML_DATA = CAST(InputRoot.BLOB.BLOB AS CHAR CodedCharSetId InputRoot.Properties.CodedCharSetID); |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|