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 » parsing CDH message to string

Post new topic  Reply to topic Goto page Previous  1, 2
 parsing CDH message to string « View previous topic :: View next topic » 
Author Message
Bharat_123
PostPosted: Wed Jan 28, 2009 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bharat_123
PostPosted: Wed Jan 28, 2009 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Wed Jan 28, 2009 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bharat_123
PostPosted: Thu Jan 29, 2009 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Bharat_123
PostPosted: Thu Jan 29, 2009 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Bharat_123
PostPosted: Thu Jan 29, 2009 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Fri Jan 30, 2009 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Bharat_123
PostPosted: Fri Jan 30, 2009 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » parsing CDH message to 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.