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 a 'anyType' element having wildcards in MRM domain

Post new topic  Reply to topic
 Accessing a 'anyType' element having wildcards in MRM domain « View previous topic :: View next topic » 
Author Message
MSV
PostPosted: Wed Jun 06, 2007 10:41 am    Post subject: Accessing a 'anyType' element having wildcards in MRM domain Reply with quote

Acolyte

Joined: 11 Apr 2006
Posts: 59

message definition
within the tag Quantity , a wildcard attribute and a wildcard element are defined.
That part of the message definition file is like this .

Quantity xs:anyType
- Wildcard Attribute
- WIldcard Element

Input
In the input , Value present in Quantity tag is 1. <Quantity>1</Quantity>

testing
Now, i am trying to get the value of Quantity using the following esql code.
Code:
SET Environment.refer = FIELDVALUE(InputRoot.MRM.*:Data.*:Request.*:Operator.*:Quantity);

But, nothing is being returned. Environment tree is not constructed.


I also tried this 2nd code.

Code:
SET Environment.refer = InputRoot.MRM.*:Data.*:Request.*:Operator.*:Quantity;

Now, the Environment tree is constructed with the pre-defined child refer.But, again nothing is present in it.


How should we access the part of the MRM message that is having wildcards defined within it ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jun 06, 2007 3:28 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

There's an easy way to answer this question, and all similar ones. Look at the message tree ( using the debugger or a Trace node ). It will clearly show you the path from the root to any element in the tree. That is the path you need to use in your ESQL.

Hint : You do not need to use .* if you know the name of the element which you are trying to access.
Back to top
View user's profile Send private message
MSV
PostPosted: Thu Jun 07, 2007 4:50 am    Post subject: Reply with quote

Acolyte

Joined: 11 Apr 2006
Posts: 59

Kimbert, Thanks for the reply.
kimbert wrote:
Look at the message tree ( using the debugger or a Trace node ).
It will clearly show you the path from the root to any element in the tree.

I am debugging the code and checking the message tree sturcture.
I re-checked the path from the ROOT to the QUANTITY element,
and giving the same path within the code.
kimbert wrote:
Hint : You do not need to use .* if you know the name of the element which you are trying to access.

Here, the elements are namespace-defined.
For time being,i have replaced the namespaces with * in the code.


Even while trying the below code also, The Quantity tag is found empty.
Code:
SET Environment.refer = InputRoot.MRM.*:Data.*:Request.*:Operator;


The only difference with Quantity tag when compared to other elements is
"it has a wildcard element and a wildcard attribute defined within it".

How can we access these sought of elements ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jun 07, 2007 10:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The fact that the model contains a wildcard should not make any difference at all. Please post the Trace node output - at least then we can check that your path looks OK.
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 » Accessing a 'anyType' element having wildcards in MRM domain
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.