Author |
Message
|
pattela |
Posted: Thu Apr 24, 2003 12:35 pm Post subject: xml to blob |
|
|
Newbie
Joined: 15 Apr 2003 Posts: 7 Location: IL
|
Hi All,
According to my understanding blob is noting but a Text message.. i want to convert a xml to Text message. FOr that
i have a xml message, all i did was i just put a reset content descriptor node between compute node and outputnode by setting the domain as blob.. Is what i did was right. Do i need to set the Encoding and Codedcharset values either ... Right now i have encoding =547 and codedcharsetid=437..
Thanks!!!!!  |
|
Back to top |
|
 |
yaakovd |
Posted: Thu Apr 24, 2003 2:55 pm Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Hi,
Not exactly BLOB - Binary Large Object
BLOB is binary data. When you convert message to BLOB you will not able to read it directly as text message.
You can use CDATA if you want to transfer xml in xml without parsing...
What is your requirments or problem? _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
lillo |
Posted: Thu Apr 24, 2003 11:48 pm Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
Hi,
We wanted to convert from XML to BLOB for logging purposes. To do this we just use the following ESQL sentence:
Code: |
SET OutputLocalEnvironment.Variables.MyBLOB = BITSTREAM(InputRoot.XML);
|
We are at CSD2 and I have seen some comment here about BITSTREAM with later CSDs. _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
yaakovd |
Posted: Fri Apr 25, 2003 5:18 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
You can use 2 options: BITSTREAM as you wrote or ResetContentDescriptor node to reach the same purpose.
Also I can suggest to put it directly to DB(in case if it is your way of logging).
It mean that generation of OutputLocalEnvironment.Variables is not necessary - just map BITSTREAM(InputRoot.XML) or InputRoot.BLOB to relevant field in DB usin DB Insert node. _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
pattela |
Posted: Fri Apr 25, 2003 6:10 am Post subject: |
|
|
Newbie
Joined: 15 Apr 2003 Posts: 7 Location: IL
|
My concern is , I'm putting an xml message from ejb to the queues in os\390.. that message i'm converting into mrm, appending iih header sending it to IMS, gettting reply from ims . That reply message is sent to some output Queue, Ejb's are unable to pick up that message , giving classcastexception.
So is there anything to do with CodedCharsetId.. i dont see no errors in the Integrator .. Can anybody have any idea....
Thanks |
|
Back to top |
|
 |
lillo |
Posted: Fri Apr 25, 2003 9:47 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
Can you see the XML message generated in integrator with any mq utility, such as ih03? If so, can you post your classcastexception here?
Maybe you are not doing correctly the mqget call. _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
pattela |
Posted: Fri Apr 25, 2003 11:44 am Post subject: |
|
|
Newbie
Joined: 15 Apr 2003 Posts: 7 Location: IL
|
I routed message to my local queue, and i browsed using JCL. I see xml chunk in it, I wonder how come ejb unable to pick up the message.. MY guess is there is some error in ejb notthing to do with the integrator... |
|
Back to top |
|
 |
lillo |
Posted: Sat Apr 26, 2003 8:57 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
If the message is in the queue, the problem is not WMQI. You can try to post the question in the java/jms forum, I think could be a better forum for your question. _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
yaakovd |
Posted: Sat Apr 26, 2003 1:10 pm Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Hi,
Classcastexception may appear when you try to get text message as object message or vice versa...
We will expect for more information (part of code and exception) in java/jms forum  _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
|