Author |
Message
|
angka |
Posted: Tue Dec 01, 2009 12:03 am Post subject: MQOutput Node write message in string? |
|
|
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 |
|
 |
Gaya3 |
Posted: Tue Dec 01, 2009 12:30 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Tue Dec 01, 2009 12:50 am Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Tue Dec 01, 2009 12:50 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Dec 01, 2009 3:54 am Post subject: |
|
|
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 |
|
 |
sirsi |
Posted: Wed Dec 02, 2009 2:18 pm Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
can you paste the input and output message you are talking about |
|
Back to top |
|
 |
kimbert |
Posted: Wed Dec 02, 2009 3:08 pm Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Tue Dec 08, 2009 10:16 pm Post subject: |
|
|
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 |
|
 |
sirsi |
Posted: Wed Dec 09, 2009 3:03 am Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Wed Dec 09, 2009 3:37 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Wed Dec 09, 2009 4:33 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Dec 09, 2009 4:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
angka |
Posted: Mon Dec 14, 2009 1:35 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
I got it already. Thanks. |
|
Back to top |
|
 |
sirsi |
Posted: Mon Dec 14, 2009 1:58 am Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
can you explain what you were doing and what you did to solve it? |
|
Back to top |
|
 |
|