Author |
Message
|
DELLIPIZ |
Posted: Fri May 07, 2004 8:09 am Post subject: BLOB to XML in WMQI |
|
|
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 |
|
 |
Missam |
Posted: Fri May 07, 2004 8:20 am Post subject: |
|
|
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 |
|
 |
DELLIPIZ |
Posted: Fri May 07, 2004 9:06 am Post subject: |
|
|
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 |
|
 |
Missam |
Posted: Fri May 07, 2004 9:39 am Post subject: |
|
|
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 |
|
 |
DELLIPIZ |
Posted: Fri May 07, 2004 11:49 am Post subject: |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Do you have any other suggestions of how I can do this????
Thanks!
-Lori |
|
Back to top |
|
 |
DELLIPIZ |
Posted: Tue May 11, 2004 6:41 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue May 11, 2004 6:45 am Post subject: |
|
|
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 |
|
 |
|