Author |
Message
|
thiruveragam |
Posted: Sat Sep 24, 2005 11:17 pm Post subject: Doubt in Repeating structures |
|
|
Newbie
Joined: 24 Sep 2005 Posts: 5
|
Hi,
I am using WBIMB v5.
Have a flow that takes a CWF message and converts into XML.
1)The incoming message may have a repeating structure. How do i specify this in the CWF message set ?
2) Also , after the message has been parsed by the CWF how do i find out the number of times that structure has been repeated in the incoming message ?
Thanks in advance. |
|
Back to top |
|
 |
recallsunny |
Posted: Sun Sep 25, 2005 5:52 am Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
Im sure they have been a lot of threads here with this topic, so look around.
But just in case you dint find the answer, If CWF has repeating structure, you will need to set either the Repeat Reference(dynamic) or Repeat count(static) fields to indicate the no.of child to parser.
If you are not able to provide either of this, then you should plan to build a TDS model, check for the IBM support pacs for examples of MRM message sets. |
|
Back to top |
|
 |
thiruveragam |
Posted: Wed Sep 28, 2005 1:47 am Post subject: |
|
|
Newbie
Joined: 24 Sep 2005 Posts: 5
|
Hi,
Thanks for your reply.
I have a message that has the following structure:
Header
Body
Trailer
The Body may repeat.
I created a CWF MRM, with Header, Body and Trailer as different types.
When i set the Max.Occurs of Body to -1, i get a warning saying that the Complex Type model has a Child Model with maxOccurs set to something other than 1.
Can somebody help, pls ?
[/b] |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 28, 2005 2:18 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please give more information about your input message.
- How are the repeats of Body identified? Do they have a tag?
- How did you expect the MRM parser to parse your message?
Please post the full text of the error message accurately ( the message you quoted in your last post is incorrect ). |
|
Back to top |
|
 |
thiruveragam |
Posted: Wed Sep 28, 2005 2:30 am Post subject: |
|
|
Newbie
Joined: 24 Sep 2005 Posts: 5
|
Hi Kimbert,
Thanks for your response.
Actually I am getting a Fixed Length message in which the Body repeats.
I need to convert this message into XML format and output into a Q.
And what i am getting is the following WARNING message not ERROR:
Warning Complex Type Definition 'Body' has a child model group with minOccurs or maxOccurs set to something other than 1, which is not supported and will be ignored by the broker. Items.mxsd
I am using WBIMB5.0.4
Thanks ![/b] |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 28, 2005 3:04 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Is there a repeat count before the body? If not, you will need to write some ESQL. |
|
Back to top |
|
 |
javaforvivek |
Posted: Wed Sep 28, 2005 8:24 pm Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Kimbert wrote:
Quote: |
Please give more information about your input message.
- How are the repeats of Body identified? Do they have a tag?
|
We want the structure of the input message, and may be you can try to define your message as TDS rather than CWF.. but still..
we want more info about your message... _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
|