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 » BLOB to XML in WMQI

Post new topic  Reply to topic
 BLOB to XML in WMQI « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Fri May 07, 2004 8:09 am    Post subject: BLOB to XML in WMQI Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

As part of exception handling, I have an XML msg. that is converted to BLOB using RCD and thown to error queue. I'm trying to reprocess this
msg. in the error queue by using a flow that accepts input as BLOB and then uses RCD to try to reparse as XML. But it seeems to be failing.

It goes to the error queue with the following message:
An error has been reported by the BIPXML4C component



The trace before the ResetContentDescriptor Node has:

(0x1000000)BLOB = (
(0x3000000)UnknownParserName = 'MQSTR'
(0x3000000)BLOB = X'3c3f786d6c2076657273696f6e3d22312e302220656.................
)

And the trace after the ResetContentDescriptor Node has:

(0x1000010)XML = .(

So it looks like it is changing something to XML, but it doesn't put the actual XML data.

Any suggestions would be appreciated!

Thanks!

-Lori
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 8:20 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Why are you using RCD's for XML to BLOB and again BLOB to XML.you can write directly XML to queue and read as XML or BLOB as you want.

i guess you XML may be a invalid XML.
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Fri May 07, 2004 9:06 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Well, we need to put the message as BLOB when it fails due to a parser exception.

However, then I want to be able to to reprocess it, so then I need it back as XML.
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 9:39 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Quote:
I have an XML msg. that is converted to BLOB using RCD and thown to error queue


Are you sure at this point before converting to BLOB the XML is a valid xml.
If its not it won't give you error writing BLOB to output queue.but when you reparse that BLOB to XML you may encouter a Parsing Error.
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Fri May 07, 2004 11:49 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Do you have any other suggestions of how I can do this????

Thanks!

-Lori
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Tue May 11, 2004 6:41 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi again,

Let me see if I can explain this better.

I am doing a transform from XML to MRM. However, I have a case where the message in failing because one of the XML fields is too long for the MRM field that it needs to be translated to. So the XML can be parsed on input, but not on output. When this happens, the XML msg. is converted to BLOB using RCD and thown to error queue.

Now, I'm trying to reprocess this msg. in the error queue by using a flow that accepts input as BLOB and then uses RCD to try to reparse as XML. My hope would be that the message would fail again, but for the same reason that it failed the first time, which is because the XML field is too long for the MRM field. But it seems to be failing with:.

An error has been reported by the BIPXML4C component

Does anyone have any workaround for this?

Thanks!

-Lori
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 11, 2004 6:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

DELLIPIZ wrote:
But it seems to be failing with:.

An error has been reported by the BIPXML4C component


Then I'd say your message has been mangled somehow so that when you extract it from a BLOB it is no longer good valid XML.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » BLOB to XML in WMQI
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.