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 » accessing default namespace within ESQL

Post new topic  Reply to topic Goto page Previous  1, 2
 accessing default namespace within ESQL « View previous topic :: View next topic » 
Author Message
dyson
PostPosted: Tue Jun 05, 2012 12:22 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Apr 2011
Posts: 45

crap ... my bad it's there, thx guys! I was overwritting the good variable with a bad in the very next line. so this was it:
Code:

set tester = InputRoot.XMLNSC.*:POSLog.*:Transaction.*:RetailStoreID;


thanks again
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jun 06, 2012 1:19 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

re:
Quote:
It works if modify the incoming xml so that the namespace has a specific prefix and then declare that namespace in the ESQL, but I don't think that's good solution.
Not sure whether you have realised this yet, but I'll explain it anyway because a lot of people get confused about this area.

When you modified the namespace prefixes in the incoming XML you did not change the actual namespaces of the XML tags. You just changed how those namespaces were being specified in the XML document. Why is that relevant? Because your change did not affect the message tree either. If you had looked at some Trace node output before and after your change you would have noticed exactly one difference : the xmlns attribute on the root tag. You thought you needed to declare a namespace in your ESQL because you added a prefix to your incoming XML. That was a wrong assumption. You needed the ESQL namespace constant(s) either way. The namespace constants in your ESQL are for accessing the message tree. They are required even if the namespace prefix in the incoming XML happens to be "".
Back to top
View user's profile Send private message
dyson
PostPosted: Wed Jun 06, 2012 12:53 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Apr 2011
Posts: 45

And the answer is no I didn't catch on to that, thx for the explaination much appriciated.
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 » accessing default namespace within ESQL
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.