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 » Refering to namespaced elements in trace nodes?

Post new topic  Reply to topic
 Refering to namespaced elements in trace nodes? « View previous topic :: View next topic » 
Author Message
matoh
PostPosted: Thu Apr 21, 2005 7:25 am    Post subject: Refering to namespaced elements in trace nodes? Reply with quote

Apprentice

Joined: 04 Mar 2005
Posts: 26

In a trace node you can trace out parts of messages using the ${path} notation, e.g:
Code:
${Body.foo.fie.fum}

However, if the elements of the message have namespaces associated with them, a named path does not work unless you indicate that namespace in the path elements, as I understand it.

However, trying o write:
Code:
${Body.{fullnamespacepath}:foo.{fullnamespacepath}:fie.{fullnamespacepath}:fum}

is not accepted - apparently whatever parses trace node settings cannot pair up matching braces.

Using absolute numbers like this:
Code:
${Body.[1].[2].[3]}

works for me, but seems like a fragile solution

So, is there a way of doing any of this:
*) Avoid specifying the namespace in the path given, even though the message uses namespaces?
*) Escape the braces?
*) Declare a namespace for use in the path?
Back to top
View user's profile Send private message Send e-mail
alexey
PostPosted: Fri Apr 22, 2005 7:11 am    Post subject: Reply with quote

Acolyte

Joined: 18 Dec 2003
Posts: 62
Location: Israel

Hi!
You have two ways of working this out that I've tried:
1. If you know the namespace use somthing like this
Code:
 ${Root.XMLNS."http://com.ibm":Test."http://com.ibm":a}

2. If you don't know the namespace you could use a path like this:
Code:
${Root.XMLNS.*:Test.*:a}


I've tested both with message
Code:
<ns:Test xmlns:ns="http://com.ibm"><ns:a>abc</ns:a><b>123</b></ns:Test>

- works fine.

Good luck,
Alexey
Back to top
View user's profile Send private message
matoh
PostPosted: Wed Apr 27, 2005 12:31 am    Post subject: Reply with quote

Apprentice

Joined: 04 Mar 2005
Posts: 26

Worked like a charm! Many thanks!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Refering to namespaced elements in trace nodes?
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.