|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can anybody suggest how to get the value from InputRoot? |
« View previous topic :: View next topic » |
Author |
Message
|
chris888 |
Posted: Mon Jul 12, 2010 7:06 pm Post subject: Can anybody suggest how to get the value from InputRoot? |
|
|
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 |
|
 |
vmcgloin |
Posted: Tue Jul 13, 2010 1:20 am Post subject: |
|
|
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 |
|
 |
chris888 |
Posted: Tue Jul 13, 2010 6:18 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Tue Jul 13, 2010 7:14 am Post subject: |
|
|
 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 |
|
 |
chris888 |
Posted: Tue Jul 13, 2010 4:00 pm Post subject: |
|
|
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 |
|
 |
chris888 |
Posted: Wed Jul 21, 2010 7:14 pm Post subject: |
|
|
Novice
Joined: 12 Jul 2010 Posts: 21
|
I've resolve the problem. Add a namespace before field, I got the value. |
|
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
|
|
|
|