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 » namespace on ESQL

Post new topic  Reply to topic
 namespace on ESQL « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Mon Nov 08, 2010 4:53 am    Post subject: namespace on ESQL Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi Please help. I need to call a field that has a namespace and only at runtime will I know if it has a namspace or not. I let the user specify where the message ID is on the message tree, so the field value on the database is MyXML.test.id then at runtime I take the value AND set

Code:


 DECLARE mystring = 'SET OutputRoot.XMLNSC.message.id = InputRoot.XMLNSC.' ||  'MyXML.test.id';
EVAL ( mystring || ';')



The code works wonderfully, Now I am finding that some of the requests have namespaces. Now I need to read something like


Code:


 DECLARE mystring = 'SET OutputRoot.XMLNSC.message.id = InputRoot.XMLNSC.' ||  'MyXML.test.[b]'http://mynamespace.co.za'[/b]:id';
EVAL ( mystring || ';')



Is there anyway that I can read a field with name space without actually declaring the namespace prefix before using it.


Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Nov 08, 2010 5:05 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

This should be useful ( and not just for this question):
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ak04861_.htm

You need something like this:
Code:
SET OutputRoot.XMLNSC.message.id = InputRoot.XMLNSC.message.*:id;
Back to top
View user's profile Send private message
matuwe
PostPosted: Mon Nov 08, 2010 6:44 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Thanks, It works
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 » namespace on 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.