|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reformat TDS to/from XML |
« View previous topic :: View next topic » |
Author |
Message
|
scravr |
Posted: Sun Oct 05, 2008 4:07 pm Post subject: Reformat TDS to/from XML |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
HI All,
Client need to reformat msg from/to these formats into xml:
Message header/trailer are very simple fixed length, but body has multiple version depend on bytes 3-5 in header.
Header is fix length: A1CRMAUK0SEC-XYZ-1 020510113000AUTH
Trailer fix lenght: //
Bytes 3-5 in header describing what type of boty we got:
All body lines are optional. Tags on body lines are varible length. Data is variable length and can contain all chars like +-*,.\/#$ .....
That means / can apear as a tag begin/end and as part of data text.
When bytes 3-5 are "CRM": body may have these optional lines:
/AcctNum/123456789
/SEC/123456789012345
/TO/021018 BANK NAME/CLIENT NAME/USER NAME
/PAR/25000
/AMT/25987.57
/INS/REGULAR DELIVERY
/DATE/05-16-02
When bytes 3-5 are "ACT": body may have these optional lines:
/AcctID/123456789
/SEC/123456789012345
/TO/021018 BANK NAME/CLIENT NAME/USER NAME
/LIMIT/10.20
/PAR/25000.00
/AMT/25987.57
/INS/REGULAR DELIVERY
/SENDER/BROKER NAME/BROKER ID
/DATE/05-16-02
When bytes 3-5 are "CLT": body may have these optional lines:
/ClientName/MY NAME
/ADDR/MY ADDRESS
/LINE1/MY HOME STREET
/LINE2/6AV/57ST APPT 3A-1
/ZIP/10968
/COUNTY/NEW ENGLAND
/STATE/NY
When bytes 3-5 are "NEW": body may have these optional lines:
/ClientName/MY NAME
/ACCTID/123456789012345
/PAR/1000000.00
/ADDR/MY ADDRESS
/LINE1/MY HOME STREET
/LINE2/6AV/57ST APPT 3A-1
/ZIP/10968
/COUNTY/NEW ENGLAND
/STATE/NY
Again, body lines are optional, tag is variable length and start+ends with "/" data is variable length with all posible char's like +-*,.\/#$ ......
I need to reformat these from/to XML.
What will be the best way to define msg-set pysical/logical formats?
I have Broker 6.1.
Thanks,
Moshe |
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 06, 2008 12:53 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Have you tried what I suggested on the original thread? If so, what happened? |
|
Back to top |
|
 |
scravr |
Posted: Mon Oct 06, 2008 6:11 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
I dont think parser can handle it; unless i am missing something big.
I changed it again and again. nothing helps. no idea what wrong.
I am attaching below one of my simple tests:
Can you import and try it?
Here is data:
A1CRMAUK0SEC-DLV-1 020510113000AUTH
/TYPE/123456789
/SEC/123456789012345
//
Here is msg-set:
<?xml version="1.0" encoding="UTF-8"?>
<msgCoreModel:MRMessageSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MSGModel="http://www.ibm.com/msgmodel/2003/MSGModel" xmlns:msgCoreModel="http://www.ibm.com/msgmodel/2003/MSGCoreModel" name="MS_SEC_DLV_AMOR_BNY98" msetVersionNo="" currentMessageSetId="//@MRMessageSetID.0">
<MRMessageSetRep xsi:type="MSGModel:MRTDSMessageSetRep" name="BNY_AMOR_FRMT" centuryWindow="53" timeZoneID="0" allowLenientDateTimes="false" messagingStandard="Unknown" groupIndicator="" groupTerminator="<CR><LF>" tagDataSeparator="/" decimalPoint="." reservedChars="" outputCompressionTechnique="None" inputCompressionTechnique="None" defaultCCSID="367" booleanTrueRepresentation="1" booleanFalseRepresentation="0" booleanNullRepresentation="0" delimiter="<CR><LF>" trimFixLengthString="NoTrim" deriveDefaultLengthFromLogicalType="true" deriveDefaultSignFromLogicalType="true"/>
<MRMessageSetRep xsi:type="MSGModel:MRXMLMessageSetRep" name="BNY_AMOR_XML" timeZoneID="0" allowLenientDateTimes="false" suppressDOCTYPE="true" doctypeSystemID="www.mrmnames.net/LRI463K002001" doctypePublicID="LRI463K002001" rootTagName=""/>
<MRMessageSetID repositoryId="-1110931939" messageSetId="1"/>
</msgCoreModel:MRMessageSet>
here is msg-def:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="DateTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="6" messageSetDefaultRep="BNY_AMOR_FRMT" paddingCharacter="NUL" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Date" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="8" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" tag="/DATE/"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="InstructionsTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="5" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Instructions" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="10" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" tag="/INS/"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="AmountTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="5" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Amount" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="8" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" tag="/AMT/"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="SecurityTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="5" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" render="Characters"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Secutity" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="15" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" render="Characters" tag="/SEC"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="ParTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="5" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="PAR" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="7" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" tag="/PAR/"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="ToTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="4" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="TO" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="20" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1" tag="/TO/"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="TypeTag" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="6" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="10" messageSetDefaultRep="BNY_AMOR_FRMT" paddingCharacter="SPACE" precision="-1" render="Characters" tag="/TYPE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="GramType" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRMSGLogicalModelExtension_logicalModelExtension interpretValueAs="MessageIdentity"/>
<tdsElemRep length="2" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="MsgType" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRMSGLogicalModelExtension_logicalModelExtension interpretValueAs="MessageIdentity"/>
<tdsElemRep length="3" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="AcctId" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="3" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="MsgRef" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="20" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="MsgDate" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="6" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="MsgTime" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="6" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="Auth" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="4" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="ElementLength1" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="1" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="EomType" type="EomType"/>
<xsd:complexType name="HeaderType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRComplexType composition="orderedSet"/>
<tdsStructRep groupIndicator="" groupTerminator="<CR><LF>" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element ref="GramType"/>
<xsd:element ref="MsgType"/>
<xsd:element ref="AcctId"/>
<xsd:element ref="ElementLength1"/>
<xsd:element ref="MsgRef"/>
<xsd:element ref="MsgDate"/>
<xsd:element ref="MsgTime"/>
<xsd:element ref="Auth"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element fixed="//" name="EndOfMsg" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsElemRep length="2" messageSetDefaultRep="BNY_AMOR_FRMT" precision="-1"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="TypeComplexType" type="TypeComplexType"/>
<xsd:element name="SecurityComplexType" type="SecurityComplexType"/>
<xsd:complexType name="EomType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRComplexType composition="orderedSet"/>
<tdsStructRep groupIndicator="" groupTerminator="" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element ref="EndOfMsg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="HDR" type="HeaderType"/>
<xsd:complexType name="CRM">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsStructRep dataElementSeparation="AllElementsDelimited" delimiter="<CR><LF>" groupIndicator="" groupTerminator="//" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:all maxOccurs="1" minOccurs="1">
<xsd:element ref="TypeComplexType"/>
<xsd:element ref="SecurityComplexType"/>
</xsd:all>
</xsd:complexType>
<xsd:element name="CRM" type="CRM">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRMessage messageDefinition="/0/CRM;XSDElementDeclaration=27$MRObject">
<MRMSGLogicalModelExtension_logicalModelExtension messageAlias="CRM"/>
</MRMessage>
<MRMSGLogicalModelExtension_logicalModelExtension messageAlias="CRM"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="GlobalMsgType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsStructRep dataElementSeparation="VariableLengthElementsDelimited" delimiter="<CR><LF>" groupTerminator="" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="HDR"/>
<xsd:element name="Message">
<xsd:complexType>
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRComplexType composition="message" content="openDefined"/>
<tdsStructRep dataElementSeparation="Undefined" delimiter="//" groupTerminator="<CR><LF>" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="xsd:anyType">
<xsd:choice maxOccurs="1" minOccurs="1"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element ref="EomType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GlobalMsg" type="GlobalMsgType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRMessage messageDefinition="/0/GlobalMsg;XSDElementDeclaration=28$MRObject"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:group name="TypeGroup">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRGlobalGroup composition="orderedSet"/>
<tdsStructRep dataElementSeparation="VariableLengthElementsDelimited" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="Type"/>
</xsd:sequence>
</xsd:group>
<xsd:group name="SecurityGroup">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<tdsStructRep dataElementSeparation="VariableLengthElementsDelimited" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="Secutity"/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="TypeComplexType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRComplexType composition="orderedSet"/>
<tdsStructRep dataElementSeparation="VariableLengthElementsDelimited" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element ref="Type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SecurityComplexType">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRComplexType composition="orderedSet"/>
<tdsStructRep dataElementSeparation="VariableLengthElementsDelimited" messageSetDefaultRep="BNY_AMOR_FRMT"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element ref="Secutity"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
here is part of trace:
.
.
.
..
2008-10-06 10:03:09.692403 2224 UserTrace BIP2638I: The MQ output node 'ConfigurationMessageFlow.outputNode' attempted to write a message to queue ''SYSTEM.BROKER.EXECUTIONGROUP.REPLY'' connected to queue manager ''WBRK61_DEFAULT_QUEUE_MANAGER''. The MQCC was '0' and the MQRC was '0'.
2008-10-06 10:03:09.692461 2224 UserTrace BIP2622I: Message successfully output by output node 'ConfigurationMessageFlow.outputNode' to queue ''SYSTEM.BROKER.EXECUTIONGROUP.REPLY'' on queue manager ''WBRK61_DEFAULT_QUEUE_MANAGER''.
2008-10-06 10:03:20.545743 824 UserTrace BIP6060I: Parser type ''Properties'' created on behalf of node 'FL_SEC_DLV_AMOR_BNY98.MQInput' to handle portion of incoming message of length 0 bytes beginning at offset '0'.
2008-10-06 10:03:20.545804 824 UserTrace BIP6061I: Parser type ''MQMD'' created on behalf of node 'FL_SEC_DLV_AMOR_BNY98.MQInput' to handle portion of incoming message of length '364' bytes beginning at offset '0'. Parser type selected based on value ''MQHMD'' from previous parser.
2008-10-06 10:03:20.556547 824 UserTrace BIP2644I: Exception condition detected on input node: 'FL_SEC_DLV_AMOR_BNY98.MQInput'.
Node 'FL_SEC_DLV_AMOR_BNY98.MQInput' has received a message, but an exception was generated whilst initializing it's internal representation. The message broker is propagating the message to the failure terminal of the node.
If 'complete' or 'immediate' MRM message body validation is being applied to messages received by this node, it's possible the format of the body of the received message is invalid. Examine further messages for confirmation of this or to determine why the message is not being received as expected. Correct this situation if possible. Perform any local error recovery processing required.
2008-10-06 10:03:20.556564 824 ParserException BIP5902W: An error occurred in parser ''Root'' whilst parsing the field named ''MRM'' on behalf of node 'FL_SEC_DLV_AMOR_BNY98.MQInput'. The data being parsed was ''4d442020020000000000000008000000ffffffff0000000000000000b501000020202020202020200000000001000000414d51205742524b36315f4445464155c7d5e94820011902000000000000000000000000000000000000000000000000000000002020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020205742524b36315f44454641554c545f51554555455f4d414e4147455220202020202020202020202020202020202020204d41565248414d202020202016010515000000c78f1c13577513e705ef705f8b04000000000000000000000b20202020202020202020202020202020202020202020202020202020202020200b00000042205246485554494c202d20696830335c7266687574696c2e6578653230303831303036313430333139373120202020000000000000000000000000000000000000000000000000010000000000000000000000ffffffff413143524d41554b305345432d444c562d312020202020202020202020303230353130313133303030415554480d0a2f545950452f3132333435363738390d0a2f5345432f3132333435363738393031323334350d0a2f2f''.
This message gives the name of the field in the parser that was being parsed at the time the error occurred.
You should check for other messages issued with this one for the full context of the error.
2008-10-06 10:03:20.556575 824 ParserException BIP5285E: Parsing errors have occurred.
Message set name: 'MS_SEC_DLV_AMOR_BNY98'
Message format: 'BNY_AMOR_FRMT'
Message type path: '/GlobalMsg/EomType/EndOfMsg'
Review other error messages to find the cause of the errors.
2008-10-06 10:03:20.556581 824 ParserException BIP5421S: Tagged/Delimited String Format (TDS) parsing error
Current message : ''GlobalMsg''
Path to current element : ''/GlobalMsg''
Offset from start of message : 74
See following errors for more details.
2008-10-06 10:03:20.556585 824 ParserException BIP5288E: An MRM parsing error has occurred. The bit stream of the message being parsed by the MRM parser is larger than expected for a message of this type.
Number of bytes parsed: 74
Actual length of message: 88
When parsing the instance message according to the message model, the parser reached the end of the message definition before it reached the end of the bit stream. Either the message bit stream has been incorrectly constructed, or the message model is incorrect.
Ensure that the message bit stream is correctly formed.
Ensure that the message properties (name, physical format, message set) are correct.
Ensure that the message model for this message type is correct. In particular, check that the element lengths and number of repeats are correct. You should find the message set and message type quoted in other error messages.
.
.
.
.
..
2008-10-06 10:03:20.557435 824 UserTrace BIP4060I: Data ''
Flow Trace:
Date: 10/6/2008 - Time: 10:3
Broker: WBRK61_DEFAULT_BROKER ExecutionGroupLabel: MosheTest001
Exception List: (
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\DataFlowEngine\ImbRootParser.cpp'
(0x03000000):Line = 586
(0x03000000):Function = 'ImbRootParser::parseNextItem'
(0x03000000):Type = 'ComIbmMQInputNode'
(0x03000000):Name = 'FL_SEC_DLV_AMOR_BNY98#FCMComposite_1_1'
(0x03000000):Label = 'FL_SEC_DLV_AMOR_BNY98.MQInput'
(0x03000000):Catalog = 'BIPv610'
(0x03000000):Severity = 2
(0x03000000):Number = 5902
(0x03000000):Text = 'Exception whilst parsing'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'Root'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'MRM'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '4d442020020000000000000008000000ffffffff0000000000000000b501000020202020202020200000000001000000414d51205742524b36315f4445464155c7d5e94820011902000000000000000000000000000000000000000000000000000000002020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020205742524b36315f44454641554c545f51554555455f4d414e4147455220202020202020202020202020202020202020204d41565248414d202020202016010515000000c78f1c13577513e705ef705f8b04000000000000000000000b20202020202020202020202020202020202020202020202020202020202020200b00000042205246485554494c202d20696830335c7266687574696c2e6578653230303831303036313430333139373120202020000000000000000000000000000000000000000000000000010000000000000000000000ffffffff413143524d41554b305345432d444c562d312020202020202020202020303230353130313133303030415554480d0a2f545950452f3132333435363738390d0a2f5345432f3132333435363738393031323334350d0a2f2f'
)
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\MTI\MTIforBroker\MtiImbParser2\MtiImbParser.cpp'
(0x03000000):Line = 508
(0x03000000):Function = 'MtiImbParser::parseFirstChild'
(0x03000000):Type = 'ComIbmMQInputNode'
(0x03000000):Name = 'FL_SEC_DLV_AMOR_BNY98#FCMComposite_1_1'
(0x03000000):Label = 'FL_SEC_DLV_AMOR_BNY98.MQInput'
(0x03000000):Catalog = 'BIPv610'
(0x03000000):Severity = 3
(0x03000000):Number = 5285
(0x03000000):Text = 'ImbRecoverableException caught from worker->parseNext.'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'MS_SEC_DLV_AMOR_BNY98'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '1'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'BNY_AMOR_FRMT'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '/GlobalMsg/EomType/EndOfMsg'
)
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\cpi\pwf\nxd\nxdworker.cpp'
(0x03000000):Line = 462
(0x03000000):Function = 'NXDWorker::parseNext'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv610'
(0x03000000):Severity = 3
(0x03000000):Number = 5421
(0x03000000):Text = 'TDS General Error'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'GlobalMsg'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '/GlobalMsg'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '74'
)
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\MTI\MTIforBroker\MtiImbParser2\MtiImbFIHandler.cpp'
(0x03000000):Line = 1004
(0x03000000):Function = 'MtiImbFIHandler::endMessageContent'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv610'
(0x03000000):Severity = 3
(0x03000000):Number = 5288
(0x03000000):Text = 'MTI. Not all the buffer was used when reading message'
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '74'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '88'
)
)
)
)
)
)
LocalEnvironment:
Destination List:
Properties: (
(0x03000000):MessageSet = 'MS_SEC_DLV_AMOR_BNY98'
(0x03000000):MessageType = '{}:GlobalMsg'
(0x03000000):MessageFormat = 'BNY_AMOR_FRMT'
(0x03000000):Encoding = 0
(0x03000000):CodedCharSetId = 437
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = TRUE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-06 14:03:19.710'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
(0x03000000):IdentitySourceType = ''
(0x03000000):IdentitySourceToken = ''
(0x03000000):IdentitySourcePassword = ''
(0x03000000):IdentitySourceIssuedBy = ''
(0x03000000):IdentityMappedType = ''
(0x03000000):IdentityMappedToken = ''
(0x03000000):IdentityMappedPassword = ''
(0x03000000):IdentityMappedIssuedBy = ''
)
Root Tree: (
(0x01000000):Properties = (
(0x03000000):MessageSet = 'MS_SEC_DLV_AMOR_BNY98'
(0x03000000):MessageType = '{}:GlobalMsg'
(0x03000000):MessageFormat = 'BNY_AMOR_FRMT'
(0x03000000):Encoding = 0
(0x03000000):CodedCharSetId = 437
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = TRUE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-06 14:03:19.710'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
(0x03000000):IdentitySourceType = ''
(0x03000000):IdentitySourceToken = ''
(0x03000000):IdentitySourcePassword = ''
(0x03000000):IdentitySourceIssuedBy = ''
(0x03000000):IdentityMappedType = ''
(0x03000000):IdentityMappedToken = ''
(0x03000000):IdentityMappedPassword = ''
(0x03000000):IdentityMappedIssuedBy = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'Input001'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 0
(0x03000000):CodedCharSetId = 437
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 1
(0x03000000):MsgId = X'414d51205742524b36315f4445464155c7d5e94820011902'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'WBRK61_DEFAULT_QUEUE_MANAGER '
(0x03000000):UserIdentifier = 'MAVRHAM '
(0x03000000):AccountingToken = X'16010515000000c78f1c13577513e705ef705f8b04000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'B RFHUTIL - ih03\rfhutil.exe'
(0x03000000):PutDate = DATE '2008-10-06'
(0x03000000):PutTime = GMTTIME '14:03:19.710'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x0100001B):MRM = (
(0x01000013):HDR = (
(0x0300000B):GramType = 'A1'
(0x0300000B):MsgType = 'CRM'
(0x0300000B):AcctId = 'AUK'
(0x0300000B):ElementLength1 = '0'
(0x0300000B):MsgRef = 'SEC-DLV-1 '
(0x0300000B):MsgDate = '020510'
(0x0300000B):MsgTime = '113000'
(0x0300000B):Auth = 'AUTH'
)
(0x01000013):Message = (
(0x0100001B):CRM = (
(0x01000013):TypeComplexType = (
(0x0300000B):Type = '/TYPE/1234'
)
(0x01000013):SecurityComplexType = (
(0x0300000B):Secutity = '56789
/SEC/123'
)
)
)
(0x01000013):EomType = (
(0x0300000B):EndOfMsg = '45'
)
)
)
Body: (
(0x01000013):HDR = (
(0x0300000B):GramType = 'A1'
(0x0300000B):MsgType = 'CRM'
(0x0300000B):AcctId = 'AUK'
(0x0300000B):ElementLength1 = '0'
(0x0300000B):MsgRef = 'SEC-DLV-1 '
(0x0300000B):MsgDate = '020510'
(0x0300000B):MsgTime = '113000'
(0x0300000B):Auth = 'AUTH'
)
(0x01000013):Message = (
(0x0100001B):CRM = (
(0x01000013):TypeComplexType = (
(0x0300000B):Type = '/TYPE/1234'
)
(0x01000013):SecurityComplexType = (
(0x0300000B):Secutity = '56789
/SEC/123'
)
)
)
(0x01000013):EomType = (
(0x0300000B):EndOfMsg = '45'
)
)
'' from trace node 'FL_SEC_DLV_AMOR_BNY98.Trace3'.
The trace node 'FL_SEC_DLV_AMOR_BNY98.Trace3' has output the specified trace data.
This is an information message provided by the message flow designer. The user response will be determined by the local environment.
2008-10-06 10:03:20.557540 824 UserTrace BIP4067I: Message propagated to output terminal for trace node 'FL_SEC_DLV_AMOR_BNY98.Trace3'.
The trace node 'FL_SEC_DLV_AMOR_BNY98.Trace3' has received a message and is propagating it to any nodes connected to its output terminal.
No user action required.
2008-10-06 10:03:20.557626 824 UserTrace BIP2638I: The MQ output node 'FL_SEC_DLV_AMOR_BNY98.MQOutput2' attempted to write a message to queue ''Error001'' connected to queue manager ''''. The MQCC was '0' and the MQRC was '0'. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 06, 2008 12:55 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I dont think parser can handle it; unless i am missing something big. |
Well, you're not missing anything big, but the TDS parser can definitely parse and write your messages. It's just difficult to get right.
Quote: |
I changed it again and again. nothing helps. no idea what wrong. |
You have my sympathy - modelling this type of message is not for the faint-hearted! But I'm puzzled about something. You said that you are on v6.1. In that case, a debug-level user trace should contain a lot of information about what the parser was doing. But when you posted a user trace, you did not mention anything about that. Are you sure you set the level to debug? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|