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 » Validating Tag name in ESQL

Post new topic  Reply to topic
 Validating Tag name in ESQL « View previous topic :: View next topic » 
Author Message
pottas
PostPosted: Wed Dec 12, 2007 2:01 am    Post subject: Validating Tag name in ESQL Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

Guys,
I have searched this forum for this problem, but to no avail (…could be that I’m not searching on the right keywords)… Even searched in the ESQL manual.

I had the following ESQL to get the name of the Root Tag:
SET rootElementTag = FIELDNAME(InputRoot.XML.(XML.Element)*[1]);

And then I used this value in a CASE statement:
CASE rootElementTag
WHEN 'RBACOperationAddRq' THEN
PROPAGATE to LABEL 'RBACOperationAddRq';
WHEN 'RBACOperationDelRq' THEN
PROPAGATE to LABEL 'RBACOperationDelRq';
…
…but now I changed my Input node to be an HTTP Input Node with a SOAP message that lands on the node with the following MRM structure:
MRM
Header
Body
RBACOperationAddRq

…so I want to do the same for this as with the above XML message – I want to get the Name of the Root Tag in the MRM Body using ESQL.

Thanks in advance for your assistance
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 12, 2007 2:16 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You cannot access the name of the root tag from ESQL if you are using the MRM domain for your XML messages. I suggest that you change your flow to use the XMLNSC domain. Or at least the XMLNS domain.
Back to top
View user's profile Send private message
pottas
PostPosted: Thu Dec 13, 2007 11:36 pm    Post subject: Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

Thanks Kimbert, I just figured that... took me a while... Anyway, I think it is better to use the XMLNS domain so that it is not such an effort to change a lot of stuff if the Input message format changes...
Again, thanks Kimbert.
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 » Validating Tag name in 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.