|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
simple XMLNS to Cobol not working - pls help |
« View previous topic :: View next topic » |
Author |
Message
|
ydsk |
Posted: Wed Jul 19, 2006 1:51 pm Post subject: simple XMLNS to Cobol not working - pls help |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Hi,
I am trying this code but it isn't working.
copyMessageHeaders();
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageFormat = 'CWF1';
SET OutputRoot.Properties.MessageSet = 'ContractReceipt' ;
SET OutputRoot.Properties.MessageType = 'msg_EQCVMS';
SET OutputRoot.MQMD.Format = 'MQSTR';
CREATE LASTCHILD OF OutputRoot Domain('MRM');
Declare soap namespace 'http://www.w3.org/2003/05/soap-envelope';
SET OutputRoot.MRM.MESSAGEID = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.MessageId ;
SET OutputRoot.MRM.INSTANCE = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.PassportInstance ;
SET OutputRoot.MRM.CONTRACTID = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ContractNum ;
SET OutputRoot.MRM.CONTRACTRELEASE = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReleaseNum ;
SET OutputRoot.MRM.VMSTRANSACTIONNBR = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.VmsTxnNum ;
SET OutputRoot.MRM.RETURNMSG = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReturnMsg;
SET OutputRoot.MRM.TIMESTAMP = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.TimeStamp ; |
|
Back to top |
|
 |
ydsk |
Posted: Wed Jul 19, 2006 1:54 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
And here is the mqsi usertrace...pls help me.
-------------------------------------------------------------
2006-07-19 16:41:38.446849 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.MESSAGEID = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.MessageId;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '19.3').
2006-07-19 16:41:38.447277 6516 UserTrace BIP2543I: Node 'ContractReqMsgFlow.RemoveHTTP': ('.ContractReqMsgFlow_RemoveHTTP.Main', '19.34') : Failed to navigate to path element number '6' because it does not exist.
2006-07-19 16:41:38.447326 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.MessageId'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '19.34'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.MessageId''. The result was ''EMPTY ROW''.
2006-07-19 16:41:38.448093 6516 UserTrace BIP2567I: Node 'ContractReqMsgFlow.RemoveHTTP': Assigning NULL to ''OutputRoot.MRM.MESSAGEID'', thus deleting it.
2006-07-19 16:41:38.448143 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.INSTANCE = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.PassportInstance;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '20.3').
2006-07-19 16:41:38.448196 6516 UserTrace BIP2543I: Node 'ContractReqMsgFlow.RemoveHTTP': ('.ContractReqMsgFlow_RemoveHTTP.Main', '20.33') : Failed to navigate to path element number '6' because it does not exist.
2006-07-19 16:41:38.448242 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.PassportInstance'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '20.33'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.PassportInstance''. The result was ''EMPTY ROW''.
2006-07-19 16:41:38.448276 6516 UserTrace BIP2567I: Node 'ContractReqMsgFlow.RemoveHTTP': Assigning NULL to ''OutputRoot.MRM.INSTANCE'', thus deleting it.
2006-07-19 16:41:38.448341 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.CONTRACTID = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ContractNum;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '21.3').
2006-07-19 16:41:38.448383 6516 UserTrace BIP2543I: Node 'ContractReqMsgFlow.RemoveHTTP': ('.ContractReqMsgFlow_RemoveHTTP.Main', '21.35') : Failed to navigate to path element number '6' because it does not exist.
2006-07-19 16:41:38.448429 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ContractNum'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '21.35'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.ContractNum''. The result was ''EMPTY ROW''.
2006-07-19 16:41:38.448471 6516 UserTrace BIP2567I: Node 'ContractReqMsgFlow.RemoveHTTP': Assigning NULL to ''OutputRoot.MRM.CONTRACTID'', thus deleting it.
2006-07-19 16:41:38.448513 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.CONTRACTRELEASE = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReleaseNum;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '22.3').
2006-07-19 16:41:38.448551 6516 UserTrace BIP2543I: Node 'ContractReqMsgFlow.RemoveHTTP': ('.ContractReqMsgFlow_RemoveHTTP.Main', '22.40') : Failed to navigate to path element number '6' because it does not exist.
2006-07-19 16:41:38.448596 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReleaseNum'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '22.40'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.ReleaseNum''. The result was ''EMPTY ROW''.
2006-07-19 16:41:38.448627 6516 UserTrace BIP2567I: Node 'ContractReqMsgFlow.RemoveHTTP': Assigning NULL to ''OutputRoot.MRM.CONTRACTRELEASE'', thus deleting it.
2006-07-19 16:41:38.448673 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.VMSTRANSACTIONNBR = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.VmsTxnNum;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '23.3').
2006-07-19 16:41:38.448741 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.VmsTxnNum'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '23.42'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.VmsTxnNum''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='VmsTxnNum' Value='FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxL'''.
2006-07-19 16:41:38.448787 6516 UserTrace BIP2568I: Node 'ContractReqMsgFlow.RemoveHTTP': Copying sub-tree from ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.VmsTxnNum'' to ''OutputRoot.MRM.VMSTRANSACTIONNBR''.
2006-07-19 16:41:38.448833 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.RETURNMSG = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReturnMsg;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '24.3').
2006-07-19 16:41:38.448898 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReturnMsg'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '24.34'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.ReturnMsg''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='ReturnMsg' Value='FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXL'''.
2006-07-19 16:41:38.448932 6516 UserTrace BIP2568I: Node 'ContractReqMsgFlow.RemoveHTTP': Copying sub-tree from ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.ReturnMsg'' to ''OutputRoot.MRM.RETURNMSG''.
2006-07-19 16:41:38.448978 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''SET OutputRoot.MRM.TIMESTAMP = InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.TimeStamp;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '25.3').
2006-07-19 16:41:38.449047 6516 UserTrace BIP2539I: Node 'ContractReqMsgFlow.RemoveHTTP': Evaluating expression ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.TimeStamp'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '25.34'). This resolved to ''InputRoot.XMLNS.http://www.w3.org/2003/05/soap-envelope:Envelope.http://www.w3.org/2003/05/soap-envelope:Body.Ensemble.TimeStamp''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='TimeStamp' Value='2006-08-20:hh:mm:ss:mmmmmm'''.
2006-07-19 16:41:38.449085 6516 UserTrace BIP2568I: Node 'ContractReqMsgFlow.RemoveHTTP': Copying sub-tree from ''InputRoot.XMLNS.soap:Envelope.soap:Body.Ensemble.TimeStamp'' to ''OutputRoot.MRM.TIMESTAMP''.
2006-07-19 16:41:38.449131 6516 UserTrace BIP2537I: Node 'ContractReqMsgFlow.RemoveHTTP': Executing statement ''RETURN TRUE;'' at ('.ContractReqMsgFlow_RemoveHTTP.Main', '28.3').
2006-07-19 16:41:38.449218 6516 UserTrace BIP4007I: Message propagated to 'out' terminal of node 'ContractReqMsgFlow.RemoveHTTP'.
2006-07-19 16:41:38.450233 6516 UserTrace BIP2231E: Error detected whilst processing a message 'ContractReqMsgFlow.MQInput'.
The message broker detected an error whilst processing a message in node 'ContractReqMsgFlow.MQInput'. The message has been augmented with an exception list and has been propagated to the node's failure terminal for further processing.
See the following messages for details of the error.
2006-07-19 16:41:38.450260 6516 RecoverableException BIP2230E: Error detected whilst processing a message in node 'ContractReqMsgFlow.MQOutput'.
The message broker detected an error whilst processing a message in node 'ContractReqMsgFlow.MQOutput'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error.
2006-07-19 16:41:38.450317 6516 ParserException BIP5286E: Message Translation Interface Writing Errors have occurred:
Message Set Name : ''ContractReceipt''
Message Set Level : '1'
Message Format : ''CWF1''
Message Type Path : ''msg_EQCVMS''
Review further error messages for an indication to the cause of the errors.
2006-07-19 16:41:38.450340 6516 ParserException BIP5167E: Custom Wire Format error while parsing/writing message ''msg_EQCVMS''.
2006-07-19 16:41:38.450359 6516 ParserException BIP5350E: Custom Wire Format writing error. While writing the message quoted above, the CWF writer encountered an error.
The error occurred during or after the writing of element ''/msg_EQCVMS/VMSTRANSACTIONNBR''.
Check that you have built the message correctly.
See following messages for more details.
2006-07-19 16:41:38.450378 6516 ParserException BIP5344E: CWF Output: Mismatch between logical definition and message tree.
Message : 'msg_EQCVMS'
Element : '56^MESSAGEID'
The CWF writer has been given a message tree which does not match the logical message definition.
The elements may have been added to the message tree in the wrong order, or there may be elements missing from the message tree.
The message type or message set may be incorrect.
If the output message was assembled in a Compute node, check that the elements were added to the message in the order specified in the logical message definition.
Check that the output message contains all the elements in the logical message definition (perhaps you need to copy the entire input message to the output tree before modifying it)
Check that the output message has the correct message set and message type properties.
Check that the output message does not contain self-defining elements.
Check that any missing elements have default values defined. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 19, 2006 3:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Try replacing
Quote: |
CREATE LASTCHILD OF OutputRoot Domain('MRM'); |
with
Code: |
CREATE LASTCHILD OF OutputRoot DOMAIN 'MRM' NAME 'MRM'; |
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ydsk |
Posted: Wed Jul 19, 2006 8:00 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
No, it didn't help. I just tried it.
Any other ideas ?
Pls help.
Thanks.
ydsk. |
|
Back to top |
|
 |
ydsk |
Posted: Wed Jul 19, 2006 8:25 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Here is the structure of the output cobol message:
---------------------------------------------------------------------
01 EQCVMS-VM001.
10 TBL-ID-VM001.
15 MESSAGEID PIC X(06).
15 INSTANCE PIC X(05).
15 CONTRACTID PIC X(0 .
15 CONTRACTREL PIC X(05).
10 CONTRACTSTART PIC X(0 .
10 CONTRACTEND PIC X(0 .
--------------------------------------------------------------------
How do we address the first element MESSAGEID ? and also the fifth element CONTRACTSTART ?
Any difference in syntax for the 2 elements ??
I am addressing both of them alike as in:
OutputRoot.MRM.MESSAGEID = ..... ; -- seems to be incorrect as the value is showing as Empty in trace.
OutputRoot.MRM.CONTRACTSTART = ..... ; -- seems to be ok.
Pls sugest.
thanks. |
|
Back to top |
|
 |
wbi_telecom |
Posted: Thu Jul 20, 2006 4:14 am Post subject: |
|
|
 Disciple
Joined: 15 Feb 2006 Posts: 188 Location: Harrisburg, PA
|
Please take a look at the Message structure. I believe
OutputRoot.MRM.MESSAGEID
will not work if MESSAGEID is under TBL-ID-VM001. So it should be
OutputRoot.MRM.TBL_ID_VM001.MESSAGEID =
Things will be clear if you look at the structure of the output message after you import the copybook. Not every element in your copybook may be a leaf level element. Some of them may have children which will be accessed differently.
Also
CREATE LASTCHILD OF OutputRoot DOMAIN 'MRM' NAME 'MRM';
should work.
Cheers, |
|
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
|
|
|
|