Author |
Message
|
brgmo |
Posted: Wed Nov 07, 2007 7:57 am Post subject: RCD not working properly |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
Hi All,
I am using a RCD node to first convert the received xmlns domain message to blob.Inside the compute node after validation,i create a MRM domain.When i use another RCD node to convert the receivedMRM domain back to xmlns,it does that but adds MRM as the firstchild and then the messsage body. Any clues what is the problem.
Regards
brgmo. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 07, 2007 8:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why convert from XMLNS to BLOB, then to MRM, then to XMLNS agan? What does that achieve? If you're trying to validate, use MRM & have done.
I'd theorise there's an error in the MRM definition. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
brgmo |
Posted: Wed Nov 07, 2007 9:44 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
I am validating using MRM but my compute node afterwards looks for messages in xmlns domain and finds messages in mrm domain and that's why i want to convert that back to xmlns but i am not able to do so.can you guess what is the problem is. |
|
Back to top |
|
 |
shalabh1976 |
Posted: Wed Nov 07, 2007 11:02 am Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
I dunno the exact reason for the problem but as a quick solution you can set the MRM to NULL if thiat is creating a problem. I will try to recreate the problem and see. _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 07, 2007 11:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
brgmo wrote: |
I am validating using MRM but my compute node afterwards looks for messages in xmlns domain |
Again I ask why? Once in MRM why not manipulate the tree in the compute node? Why translate back into XMLNS? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 07, 2007 3:31 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
brgmo wrote: |
I am validating using MRM but my compute node afterwards looks for messages in xmlns domain |
Again I ask why? Once in MRM why not manipulate the tree in the compute node? Why translate back into XMLNS? |
Because validation was an "afterthought" and the rest of the nodes are already built using XMLNS...?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kimbert |
Posted: Thu Nov 08, 2007 5:39 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I agree with Vitor. Just use the MRM domain in the entire message flow. Even if that means changing the Compute node.
As brgmo has already found out, the message tree which the MRM XML parser builds is a very different shape to the one which XMLNS builds. The RCD node does not automatically change the shape of the existing message tree when you change from MRM to XMLNS.
Users who have taken the advice on this forum and used XMLNSC will find it much easier to retro-fit validation to an XML message flow, because the v6.1 XMLNSC parser offers proper XML Schema validation. |
|
Back to top |
|
 |
|