Author |
Message
|
Bharat_123 |
Posted: Wed Jan 28, 2009 3:36 pm Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
in continuation to above i forgot to add the results when i tested that flow.
Most of the cases inbound tag is empty. While debugging when try to look into that tag Null pointer exception window will popup.
As per requirement the whole BLOB/ MRM message has to in the inbound tag.
Thank You |
|
Back to top |
|
 |
Bharat_123 |
Posted: Wed Jan 28, 2009 3:48 pm Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
In continuation to above what i also understood may be i just can not write XML message structure in INbound XML tags.
Do i need to convert back this message to BLOB?
Any possible solution please
Thank You |
|
Back to top |
|
 |
kimbert |
Posted: Wed Jan 28, 2009 4:13 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Quote: |
Can i assign CWF message values to XMLNSC? |
Yes. Once they are in the message tree they are not 'CWF values' or 'TDS values'. They are just 'message tree values'.
Quote: |
its populating me nothing when i try to assign whole MRM message to XMLNSC |
The MRM parser does not put the root element in the message tree. To copy the whole MRM message to XMLNSC you need:
Code: |
SET OutputRoot.XMLNSC.myRootTag = InputRoot.MRM; |
Quote: |
CREATE LASTCHILD OF OutputRoot.XMLNSC.IProcure.BMWtags.Inbound VALUE InputRoot.MRM.MT_S_MQ_REQ; |
Does InputRoot.MRM.MT_S_MQ_REQ exist in the input tree? You should put a Trace node into your message flow and find out.
Quote: |
In continuation to above what i also understood may be i just can not write XML message structure in INbound XML tags.
Do i need to convert back this message to BLOB? |
Sorry - I don't understand. Please explain. |
|
Back to top |
|
 |
Bharat_123 |
Posted: Thu Jan 29, 2009 6:39 am Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
Does InputRoot.MRM.MT_S_MQ_REQ exist in the input tree? You should put a Trace node into your message flow and find out.
Yes The input root exist and has the whole structure i can see that in debugger. I tried different methods still i dont see that MRM input tree assigning to Output tree of XMLNSC.
Please help me in that.
Even i tried this in test...probably this may help u assist/ dig the issue
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
SET OutputRoot.Properties.MessageSet = 'BUTHJFO002001';
SET OutputRoot.Properties.MessageType = 'msg_CDHCLOGX';
SET OutputRoot.Properties.MessageFormat = 'XML1';
DECLARE ip BLOB; (Tried with Char also)
set ip = InputRoot.MRM;
SET OutputRoot.MRM = NULL;
CREATE FIELD OutputRoot.XMLNSC.IProcess TYPE Name;
CREATE LASTCHILD OF OutputRoot.XMLNSC.Process.BMWtags.Inbound VALUE ip;
RETURN TRUE;
In all the cases i dont see MRM root message assigning to XMLNSC root.
I wanted to attatch whole MRM root message to Inbound tag of XMLNSC.
If am doing wrong please corect me
Thanks |
|
Back to top |
|
 |
Bharat_123 |
Posted: Thu Jan 29, 2009 10:39 am Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
--SET OutputRoot.XMLNSC = InputRoot.MRM;
SET OutputRoot.Properties = InputRoot.Properties;
SET OutputRoot.MQMD = InputRoot.MQMD;
--SET OutputRoot.XMLNSC.CorelId = InputRoot.MQMD.MsgId;
SET OutputRoot.Properties.MessageSet = 'BUTHJFO002001';
SET OutputRoot.Properties.MessageType = 'msg_CDHCLOGX';
SET OutputRoot.Properties.MessageFormat = 'XML1';
DECLARE temp BLOB;
SET temp = CAST(InputRoot.XMLNSC.msg_CDHCLOGX AS BLOB);
DECLARE ipMsgBlob BLOB
ASBITSTREAM(InputRoot.XMLNSC,
InputRoot.Properties.Encoding,
InputRoot.Properties.CodedCharSetId);
DECLARE ipMsgChar CHARACTER
CAST(ipMsgBlob AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId);
--DECLARE ip BLOB;
--SET ip = CAST(InputRoot.MRM.PT_S_MQ_REC AS BLOB);
SET OutputRoot.MRM = NULL;
CREATE FIELD OutputRoot.XMLNSC.Inter_Process TYPE Name;
CREATE LASTCHILD OF OutputRoot.XMLNSC.Inter_Process.PBMtags.Inbound TYPE (XMLNSC.CDataField) VALUE ipMsgBlob;
RETURN TRUE;
My main concern is adding the BLOB message to Inbound tag. even when i tried to assign the Inbound root messagr to a BLOB/ Char variable its not working out. its assigning null. U can see above code i tried different option using online help.
The Inbound tag should have this value fixed length message 1500 bytes:
M00101ACDH AHCP010 POSCICCDH.PEND.IN 20090122155006SBMW AQ01BMW AMRK 00000000 0150020090122155006012008031007TEST PROVIDER 01999999999 200901221550060018922362140111 0066325251442111441 ABC S20010101299912311A3 1.1.5.2D0000000892236214520000000895552211410055222111 0065982 AHARON JOHNSON 001 196003120PAJOHNSON 19990112210000 20080113555220 121251212 TESTINGFORAHADONCLMNUMBER89223621452 363636363 0065982 223114 062222222222 +- 0700000002510+000000000000000000000410000125000+000000000000000000000520000253500-000000000000000000000000000000000 000000000000000000000000000000000 000000000000000000000000000000000 0000000000000000000001 00 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 00000000000000000000Y09010000002000+020000003000+030000004000-040000004000-050020100000+060000010000-070000020000+080000001500+090000001000+ 0322231554 0000000000090 Y5 52
Any ideas will be appreciated.
Thank You |
|
Back to top |
|
 |
Bharat_123 |
Posted: Thu Jan 29, 2009 10:48 am Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
sorry forgot to add that,
My goal is sent that 1500 byte message to Customer/ client / backend. Its not in XML format. Just need to put that 1500 byte msg on backend or client queue.
<INbound>R00101ACDH DHCP010 POSCICCDH.PEND.IN 20090122155006SMHS DQ01MHS HMRK 00000000 0150020090122155006012008031007TEST PROVIDER 01999999999 200901221550060018922362140111 0066325251442111441 ABC S20010101299912311A3 1.1.5.2D0000000892236214520000000895552211410055222111 0065982 SHARON JOHNSON 001 196003120PAJOHNSON 19990112210000 20080113555220 121251212 TESTINGFORAHADONCLMNUMBER89223621452 363636363 0065982 223114 062222222222 +- 0700000002510+000000000000000000000410000125000+000000000000000000000520000253500-000000000000000000000000000000000 000000000000000000000000000000000 000000000000000000000000000000000 0000000000000000000001 00 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 0000000000000000000000 0000000000 00000000000000000000Y09010000002000+020000003000+030000004000-040000004000-050020100000+060000010000-070000020000+080000001500+090000001000+ 0322231554 0000000000090 Y5 52 </INbound>
After converting copybook into MXSD and msg format as XML1 i am finding difficuty to add that blob message back to XML.
Need you ur help
Thank You |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jan 30, 2009 8:42 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Hi,
Sorry, but I cannot really help you any more with this problem. You seem to be very confused about how to use the product.
You should know why this is wrong:
Quote: |
DECLARE ip BLOB; (Tried with Char also)
set ip = InputRoot.MRM; |
If not, please read the documentation, try the samples, and consider getting some training in how to use message broker. |
|
Back to top |
|
 |
Bharat_123 |
Posted: Fri Jan 30, 2009 12:59 pm Post subject: |
|
|
Acolyte
Joined: 15 Sep 2008 Posts: 58
|
Thanks all for ur help
Got fixed by myself. Added to environment variable and then used RCD node.
Thanks for ur support. Appreciate all ur help |
|
Back to top |
|
 |
|