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 » General IBM MQ Support » Publishing XMLNS message into subscrption queue

Post new topic  Reply to topic
 Publishing XMLNS message into subscrption queue « View previous topic :: View next topic » 
Author Message
sjalili
PostPosted: Tue May 29, 2007 5:40 am    Post subject: Publishing XMLNS message into subscrption queue Reply with quote

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.

thansk,
Setareh
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 29, 2007 10:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

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.
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 » General IBM MQ Support » Publishing XMLNS message into subscrption queue
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.