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 » xml to blob

Post new topic  Reply to topic
 xml to blob « View previous topic :: View next topic » 
Author Message
pattela
PostPosted: Thu Apr 24, 2003 12:35 pm    Post subject: xml to blob Reply with quote

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
View user's profile Send private message
yaakovd
PostPosted: Thu Apr 24, 2003 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
lillo
PostPosted: Thu Apr 24, 2003 11:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaakovd
PostPosted: Fri Apr 25, 2003 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
pattela
PostPosted: Fri Apr 25, 2003 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
lillo
PostPosted: Fri Apr 25, 2003 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message
pattela
PostPosted: Fri Apr 25, 2003 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
lillo
PostPosted: Sat Apr 26, 2003 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
yaakovd
PostPosted: Sat Apr 26, 2003 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » xml to blob
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.