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 » Can anybody suggest how to get the value from InputRoot?

Post new topic  Reply to topic
 Can anybody suggest how to get the value from InputRoot? « View previous topic :: View next topic » 
Author Message
chris888
PostPosted: Mon Jul 12, 2010 7:06 pm    Post subject: Can anybody suggest how to get the value from InputRoot? Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

Hi, I am a freshmen in WMB, I met a weired issue, I am getting the value from ROOT AS following, but I always got NULL in compute node.

Here is the value through user trace:
-Message
+Properties
+MQMD
+MQRFH2
-XMLNSC
.+XmlDeclaration
.-sap_zgq_qm_i004_mq
....-sap_is_qals
........-sap_is_qals
...........WERK 2001
...........EKORGE 2001
...........BEBLN 4500003047
...........EKORG 2001
...........EBELN 0100000002447

Here is my code:

DECLARE nls NAMESPACE 'http://www.ibm.com/websphere/crossworlds/_2002/boschema/sapzgqqmi004mq';

SET TMP = InputRoot.XMLNSC.nls:sap_zgq_qm_i004_mq.sap_is_qals.sap_is_qals.BEBLN;
SET TMP1 = qals.ART;
FOR AA AS InputRoot.XMLNSC.nls:sap_zgq_qm_i004_mq.sap_is_qals[] DO
SET TMP3 = AA.sap_is_qals.WERK;
END FOR;


after ran the code, I got nothing for TMP,TMP1 and TMP3.

Regards,
Chris


Last edited by chris888 on Tue Jul 13, 2010 6:27 am; edited 4 times in total
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Tue Jul 13, 2010 1:20 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

maybe based on your description:
FOR qals AS InputRoot.XMLNSC.nls:sap_zgq_qm_i004_mq.sap_is_qals.sqp_is_qals DO

user trace is your friend...
Back to top
View user's profile Send private message
chris888
PostPosted: Tue Jul 13, 2010 6:18 am    Post subject: Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

Hi vmcgloin,Thanks for yr response.
sorry for the wrong type, I re-pasted the code from my project. I just found this issue through the user trace.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jul 13, 2010 7:14 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
sorry for the wrong type

Not a problem. It's this and this and this and this and this ...
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
chris888
PostPosted: Tue Jul 13, 2010 4:00 pm    Post subject: Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

bruce2359 wrote:
Quote:
sorry for the wrong type

Not a problem. It's this and this and this and this and this ...


bruce, I don't understand yr mean.
Back to top
View user's profile Send private message
chris888
PostPosted: Wed Jul 21, 2010 7:14 pm    Post subject: Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

I've resolve the problem. Add a namespace before field, I got the value.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Can anybody suggest how to get the value from InputRoot?
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.