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 » Problem in understanding bytesmessage arriving at MQInput?

Post new topic  Reply to topic
 Problem in understanding bytesmessage arriving at MQInput? « View previous topic :: View next topic » 
Author Message
Tommaso
PostPosted: Fri Jun 19, 2009 7:48 am    Post subject: Problem in understanding bytesmessage arriving at MQInput? Reply with quote

Newbie

Joined: 19 Jun 2009
Posts: 2

Hi all,

I have a problem in understanding how to set up a MQInput node.

A client sends a bytesmessage to a queue, where this MQInput node is listening. The content of the bytesmessage itself is an xml structure.
E.g.
"<?xml version="1.0"?>
<trx>
<routing>booklet</routing>
...." in bytesmessage, "0100101011101011110...".
The client cannot send something else, just bytesmessages.

What I cannot figure out at the moment is, how should the "Message Type" in the Properties under "Input Message Parsing" look like?
Currently I have imported an XSD as a "Message Definition File", which has the structure of the xml I am expecting. The "Message Domain" is "MRM" for binary, text and XML.

Now my problem is to understand, how should the length of the fields be and how does the parser know, how many bytes are which <tag>value</tag>? The value can vary, for example in the above example, <routing> can be "booklet", "creditCard", ...!
How would this be set up?

I would really appreciate a helping hand pointing me in the right direction.

Thanks in advance,
Tommaso
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 19, 2009 8:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Set the Message Domain to XMLNSC.

Everything else will be handled.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 19, 2009 9:33 am    Post subject: Re: Problem in understanding bytesmessage arriving at MQInpu Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Tommaso wrote:
how should the length of the fields be and how does the parser know, how many bytes are which <tag>value</tag>?


Because you've imported an xsd file that describes it? And the nice people at IBM use a very clever parser.

If you quote the message set in the node, this is sorted.

It's also much easier to follow the suggestion of my illustrious associate when reading XML & use the XMLNSC domain.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Tommaso
PostPosted: Sun Jun 21, 2009 8:09 am    Post subject: Reply with quote

Newbie

Joined: 19 Jun 2009
Posts: 2

Hello,

thank you both very much.

I thought about that XMLNSC, but I think, that I did not understand it 100%.
Nevertheless, that is a point to start and go on.

Ciao,
Tommaso
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 » Problem in understanding bytesmessage arriving at MQInput?
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.