|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to refer to individual tag values in TDS? |
« View previous topic :: View next topic » |
Author |
Message
|
kirani |
Posted: Tue Mar 26, 2002 5:48 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I have just started using "cool" features of WMQI MRM! I have created a tagged delimited message set with following values,
Properties set in Message Type
Type Composition = Unordered Set
Type Content = Open
Properties set in TDS
Tag Data Separator: =
Data Element Separation: Tagged Delimited
Delimited: ,
My input message is
Tag1=data1,Tag2=data2,Tag3=data3,
My message flow is very simple, MQInputNode->Trace->MQOutput.
In the trace node, I am printing value of Root tree. It is giving me following output,
.....
)
(0x1000008)MRM = (
(0x3000002)Tag1 = 'data1,Tag2=data2,Tag3=data3'
)
....
I have 2 questions,
1. Is there a way to refer to individual values of Tag1/2/3 tags(i.e. data1/2/3)?
2. How to delete a physical format once it is assigned to a messageset?
Thanks in advance!
Kiran
|
|
Back to top |
|
 |
jfluitsm |
Posted: Fri Mar 29, 2002 6:49 am Post subject: |
|
|
Disciple
Joined: 24 Feb 2002 Posts: 160 Location: The Netherlands
|
Kiran,
You should see the tags on seperate lines. It looks like the data delimiter is not recognized.
Did you use the same delimiter values in the TDS properties of both the Message Set and the Type?
Did you specify the , as Decimal point in the TDS properties of the Message Set?
It might be a bug, I use ; and this works fine.
When the message is parsed correctly, you can use the fields as with any other MRM or XML message (for instance InputRoot.MRM.Tag1).
_________________ Jan Fluitsma
IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6 |
|
Back to top |
|
 |
kirani |
Posted: Mon Apr 01, 2002 9:38 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Looks like i had mistyped the delimiter earlier. I retyped it in TDS and now it is working fine! But still the tree is not building up correctly. This time it is printing a mix of Tag names and Element names.
I have defined 4 Elements in my message set,
FIRST_NAME (Tag = Given)
LAST_NAME (Tag = Surname)
EMAIL (Tag = Email)
LOCATION (Tag = Location)
In compound type,
Type composition = Unordered Set
Type Content = Open
My input message is,
Given=Kiran,Surname=Ingale,Email=kiran@hostname.com,Location=CA
And the output tree is,
.....
(0x1000008)MRM = (
(0x3000001)FIRST_NAME = 'Kiran'
(0x3000002)Surname = 'Ingale'
(0x3000001)EMAIL = 'kiran@hostname.com'
(0x3000001)LOCATION = 'CA'
)
)
As you can see here, for second element it is printing TAG name (Surname) instead of Element Name(LAST_NAME). Is that normal or am I getting incorrect output?
Kiran
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|