Author |
Message
|
Gaya3 |
Posted: Mon Aug 24, 2009 3:15 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
nagarjun_vv wrote: |
AHD1234
123456AAAA<CR><LF>
123457BBBB<CR><LF>
ATH1234
If you can consider the above message as like this
AHD1234
123456AAAA<CR><LF>
123457BBBB<CR><LF>
ATH
The above wil be a complex type where AHD is Group indicator and ATH is group terminator. first element with fixed length of 4 and other element with repeating delimited.
1234
this is another field in the message.
Confirmwhether this will solve the issue.
Regards,
VV |
Yes, 1234 is another field in the message, the TAG is having only 3 character _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
Gaya3 |
Posted: Mon Aug 24, 2009 3:45 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
any thoughts..or ideas on this regard _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 24, 2009 5:15 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
You have to make a choice.
a) Set 'Data Element Separation' to 'Use Data Pattern', and make the message a repeating choice
b) Set 'Data Element Separation' to 'Tagged Fixed Length' and have a slightly more complex logical model
I suggest b), and I've sketched out a possible solution:
Code: |
Element name="message"
complexType composition="sequence" DataElementSeparation="Tagged Fixed Length" TagLength="0"
group composition="sequence" DataElementSeparation="Tagged Fixed Length" TagLength="3" GroupTerminator="<CR><LF>
element name="Header" Tag="ATD" length="4"
group composition="sequence" DataElementSeparation="All Elements Delimited" GroupTerminator="<CR><LF>ATH"
element name="details" maxOccurs=-1
complexType composition="sequence" DataElementSeparation="All Elements Delimited" GroupTerminator="<CR><LF>"
element name="details1" length="..."
element name="details2" length="..."
...
element name="Trailer" tag="" length="4" |
I expect you will have to make some adjustments, but this should put on on the right track. When debugging this, please use debug-level User Trace to find out what the TDS parser is actually doing. |
|
Back to top |
|
 |
Gaya3 |
Posted: Mon Aug 24, 2009 7:32 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
the datas are not getting allocated properly.
HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3
DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1 _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 24, 2009 9:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I don't think you have the right structure.
The Header and Trailer elements in the model need to be siblings. The Header type needs to include a repeating instance of the body element.
Message
-->Header
-->-->Detail
-->Trailer |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 24, 2009 10:17 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
the datas are not getting allocated properly. |
Oh, that's bad . What would you like me to do about it?
Quote: |
HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3
DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1 |
Have you created your message model exactly as I suggested? This makes me think that the answer is probably 'no'.
Have you taken the steps that I suggested in my previous post? |
|
Back to top |
|
 |
nagarjun_vv |
Posted: Mon Aug 24, 2009 6:19 pm Post subject: |
|
|
Apprentice
Joined: 24 Jun 2008 Posts: 33
|
You can go for variable length delimiter. Let me explain in detail.
In variable length delimiter Have a message with 2 fields.
1--> is complex type and
2--> is simple type
In 1--> which is complex type with 2 fields
1st field give length as 4
2 field make it as repeating delimiter
Group indicator of this complex type is AHD
Group terminator of this coplex type is ATH
The next simple type in the message give the length as 4(which is 1234 after ATH)
Please provide some mail id so that i can send the messge set whcih i did which satisfies your requirement. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Aug 25, 2009 3:44 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
kimbert wrote: |
Quote: |
the datas are not getting allocated properly. |
Oh, that's bad . What would you like me to do about it?
Quote: |
HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3
DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1 |
Have you created your message model exactly as I suggested? This makes me think that the answer is probably 'no'.
Have you taken the steps that I suggested in my previous post? |
Really Thanks, I went through the way that you suggested...
It is working now...as you said, we have to take care a lot of things in this particular message modeling.. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|