Author |
Message
|
sjp |
Posted: Wed Oct 29, 2008 8:45 am Post subject: Getting Null in ComputerNode as value from InputRoot |
|
|
Novice
Joined: 21 Aug 2008 Posts: 18
|
I am getting from MQ Input this message:
<Variable>
<HTTP>
<RequestIdentifier>1cf3d9a8</RequestIdentifier>
</HTTP>
<Document>Quote</Document>
</Variable>
In this node, Tab "Input Message Parsing", property "Message domain" set as XMLNSC.
In the following Computer node, I see message and all Tags/Values in Debugger, but when I try to assign them to my local variables
they are empty. It looks like when use InputRoot.XMLNSC.Variable.Document it pointed to wrong spot.
I've tried many different ways to get values, but no luck.
Maybe someone knows what I am doing wrong? |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Oct 29, 2008 9:22 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi sjp,
Please paste a file trace of your incoming message to the compute node.
Regards. |
|
Back to top |
|
 |
sjp |
Posted: Wed Oct 29, 2008 10:43 am Post subject: |
|
|
Novice
Joined: 21 Aug 2008 Posts: 18
|
Root = (
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 437
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-29 18:40:37.550'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'363bb7a4a41811ddaff5ac10024300000000000000000000'
(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 = 'EXSTREAM_HTTPSTORE'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 546
(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 = 0
(0x03000000):MsgId = X'414d51205742524b36315f4445464155c605074920002527'
(0x03000000):CorrelId = X'363bb7a4a41811ddaff5ac10024300000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'WBRK61_DEFAULT_QUEUE_MANAGER '
(0x03000000):UserIdentifier = 's2192 '
(0x03000000):AccountingToken = X'160105150000008569117d455aad7d512bba141804000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'gs\s2192\Desktop\rfhutil.exe'
(0x03000000):PutDate = DATE '2008-10-29'
(0x03000000):PutTime = GMTTIME '18:40:37.550'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000000):XMLNSC = (
(0x01000000):Variable = (
(0x01000000):HTTP = (
(0x03000000):RequestIdentifier = '1cf3d9a8'
)
(0x03000000):Document = 'Quote'
)
)
) |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Oct 29, 2008 7:22 pm Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
its working pretty much good to me,
even i tried by storing in a variable of data type character and tried out too. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Oct 29, 2008 8:33 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi sjp,
Well if it's working for Gaya3 then obviously next thing to look at will be your code.
Can you please paste the entire code (if small, else snippets).
Regards. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Oct 30, 2008 3:43 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Take a debug-level user trace. It will report the exact path segment which is failing. |
|
Back to top |
|
 |
sjp |
Posted: Thu Oct 30, 2008 3:59 am Post subject: |
|
|
Novice
Joined: 21 Aug 2008 Posts: 18
|
It is just couple lines of code:
CALL CopyMessageHeaders();
DECLARE DocType CHARACTER;
SET DocType = InputRoot.XMLNSC.Varible.Document;
SET Environment.Variables.HTTPRequestIdentifier = InputRoot.XMLNSC.Varible.HTTP.RequestIdentifier;
As result, DocType and Environment.Variables.HTTPRequestIdentifier are empty and = Null |
|
Back to top |
|
 |
Gaya3 |
Posted: Thu Oct 30, 2008 4:06 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
i could see some spelling mistake in the element Variable
Code: |
CALL CopyMessageHeaders();
DECLARE DocType CHARACTER;
SET DocType = InputRoot.XMLNSC.[b]Varible[/b].Document;
SET Environment.Variables.HTTPRequestIdentifier = InputRoot.XMLNSC.[b]Varible[/b].HTTP.RequestIdentifier; |
hope that is not the issue, as mentioned by kimbert, take a user trace.
its working for me, _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|