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 » WebSphere Message Broker (ACE) Support » MQOutput Node write message in string?

Post new topic  Reply to topic
 MQOutput Node write message in string? « View previous topic :: View next topic » 
Author Message
angka
PostPosted: Tue Dec 01, 2009 12:03 am    Post subject: MQOutput Node write message in string? Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

I used a mapping node to map my xml element from xsd:string to xsd:int and write to the queue using MQOutput node. But using rfhutil, i saw the int tag in the xml message is represented in acsii? so MQOutput node write all into string? Thanks.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Dec 01, 2009 12:30 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

what is the incoming format and outgoing format.

how do you want the output to be
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Dec 01, 2009 12:50 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

The MQOutput Node will write the bitstream that is in the Root folder.

WMQ is format agnostic. i.e. it does not care about the contents of the payload
The OutputNode will invoke a parser to format the message before using MQPUT to write the formated data to the designated queue.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
angka
PostPosted: Tue Dec 01, 2009 12:50 am    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

the incoming xml message format is in string for all its tags and I map one for the tags data type to integer and then put to the queue.. shldn't the tag value that i converted to integer be represented in integer(4 bytes) rather then in Ascii?

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Dec 01, 2009 3:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

angka wrote:
Hi,

the incoming xml message format is in string for all its tags and I map one for the tags data type to integer and then put to the queue.. shldn't the tag value that i converted to integer be represented in integer(4 bytes) rather then in Ascii?


Why would the XML parser that is serializing the data produce invalid XML?
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Dec 02, 2009 2:18 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

can you paste the input and output message you are talking about
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 02, 2009 3:08 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I map one for the tags data type to integer and then put to the queue
How, exactly, did you do that?
Back to top
View user's profile Send private message
angka
PostPosted: Tue Dec 08, 2009 10:16 pm    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

The incoming message from the MQInput node is in CSV and i parsed it to MRM and set the properties.messageformat to 'XML'. the mxsd used for the transformation is all in string. Then i passed the message to the mapping node. the target mxsd used, some of the fields are in xsd:int. and then i put the message to the MQoutput node. The mapping did cast the field as defined by the target mxsd. Why is this so??

Btw, how does the XMLNSC parser know what datatype each xml element is since it did not refer to any mxsd when parsing?

Thanks
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Dec 09, 2009 3:03 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

how did u model a csv file to MRM XML?

Quote:
the mxsd used for the transformation is all in string

what do you mean by this?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 09, 2009 3:37 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

CSV is a form of TDS (Tagged Delimited). The comma is the delimiting tag (in simple terms and before kimbert takes issue )

Using the MRM parser, you can have more than one physical format of the same message model. For example CWF, TDS or XML
Therefore if you have a TDS format you can add the XML format to the model and chanfe the output type just by changing the relevant field in the properties folder from TDS-1 to XML-1.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 09, 2009 4:33 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
The incoming message from the MQInput node is in CSV and i parsed it to MRM and set the properties.messageformat to 'XML'. the mxsd used for the transformation is all in string. Then i passed the message to the mapping node. the target mxsd used, some of the fields are in xsd:int. and then i put the message to the MQoutput node. The mapping did cast the field as defined by the target mxsd. Why is this so??
I cannot make any sense of this thread. Please take at least 15 minutes of your time to do the following:
a) describe the input message and the output message, with examples
b) describe your message flow accurately and in detail - we cannot help you unless we understand what you are trying to do.

Quote:
Btw, how does the XMLNSC parser know what datatype each xml element is since it did not refer to any mxsd when parsing?
Read the online docs. You can search for XMLNSC.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 09, 2009 4:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The definition of what constitutes a legal document in XML is http://www.w3.org/TR/xml11/

The definition of what constitutes a legal representation in an XML document of an xs:int is at http://www.w3.org/TR/xmlschema-2/#integer

Neither of these allow for binary values.

Why do you expect Broker to produce an incorrect XML document?
Back to top
View user's profile Send private message
angka
PostPosted: Mon Dec 14, 2009 1:35 am    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

I got it already. Thanks.
Back to top
View user's profile Send private message
sirsi
PostPosted: Mon Dec 14, 2009 1:58 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

can you explain what you were doing and what you did to solve it?
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 » WebSphere Message Broker (ACE) Support » MQOutput Node write message in string?
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.