Posted: Tue May 29, 2007 5:40 am Post subject: Publishing XMLNS message into subscrption queue
Newbie
Joined: 22 May 2007 Posts: 4
Hi,
I have a input message with XMLNS format. It is published to the subscriber queue successfully, but it doesn't put the body of the message into queue. Just
<psc><Command>Publish</Command><Topic>TestTopic/WBRK6_DEFAULT_BROKER/testGroup/TestMessageFlow</Topic></psc>
I have used following code:
SET OutputRoot.XMLNS.ArchMessage.Data = InputRoot.XMLNS.Publication.Data;
SET OutputRoot.MQRFH2.usr=OutputRoot.XMLNSC;
DELETE FIELD OutputRoot.XMLNSC;
SET OutputRoot.BLOB = InputBody;
I also need to mention taht above code works with simple XML dataand I can get the body of the message but not with XMLNS format.
That's absolutely horrible code, trying to do horrible things.
MQRFH2 is not compliant with XML, entirely. It's absurd to try and stick the entire OUTPUT root into a subfolder.
It's silly and wasteful to copy something to OutputRoot, only to turn around and delete it again.
It's entirely likely that your entire message structure is a big mess, and you should count yourself lucky that you're getting as much at the subscriber queue as you are.
Start over. Start simpler. Test one thing at a time until it works correctly. Move on to the next thing. _________________ I am *not* the model of the modern major general.
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