|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
!!!Help about TDS in MB, thanks |
« View previous topic :: View next topic » |
Author |
Message
|
Jonasli |
Posted: Thu May 13, 2004 10:48 am Post subject: !!!Help about TDS in MB, thanks |
|
|
Apprentice
Joined: 24 Apr 2003 Posts: 34 Location: Beijing
|
i have a doc as the below:
111||122||133;211||222||233;311||322||333
i want to use the TDS parse it,
i do the msg set as the below, but i can not repeat it, pls help me, thanks in advanced..
1. i define one complex type as follow,
TstMsg (complextype1)
complextype1
localelement1 string
localelement2 string
localelement3 string
TstMsgRepeat (complextype2)
complextype2
refer element TstMsg (repeat 1 to -1)
i have define the TDS for complextype1 and complextype2,
if i just use the TstMsg and input the simple string
111||122||133
it's ok to working,
but if i use the TstMsgRepeat and input the totoal string,
it's wrong, i can not parse the input string as the above.
how to do?
pls give me some advice, thanks very much.... |
|
Back to top |
|
 |
Missam |
Posted: Thu May 13, 2004 11:22 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi Create An element of type ComplexType1 Add this element in ComplexType2 and say Repeting Element Delimiter for this element as ;
then create a message of ComplexType2 and parse it. |
|
Back to top |
|
 |
Jonasli |
Posted: Thu May 13, 2004 11:59 am Post subject: |
|
|
Apprentice
Joined: 24 Apr 2003 Posts: 34 Location: Beijing
|
i have do such, but do not work with the MRM parse error,
the reference the element into complextype2 is different to add the element into complextype2? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 13, 2004 12:07 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
Jonasli |
Posted: Thu May 13, 2004 12:53 pm Post subject: |
|
|
Apprentice
Joined: 24 Apr 2003 Posts: 34 Location: Beijing
|
Missam and jeff,
thanks very much, i have did it success by the advice of Missam.
define complextype1 include
localelement1 string
localelement2 string
localelement3 string, and with delimitor as "||"
define global element, type as complextype1
define complextype2 reference the fore global element,
and repeat it, with delimitor as ";"
thanks very much again, give me clearly answer, ^_^ good day |
|
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
|
|
|
|