Hi,
I use web services to register a datadriven subscription. When i use this
piece for my scheduledefinition, it works like a charm :
<ScheduleDefinition><StartDateTime>2005-10-14T15:15:00</StartDateTime>" &
"<MonthlyRecurrence><Days>14</Days><MonthsOfYear>" &
"<January>False</January><February>False</February><March>False</March>" &
"<April>False</April><May>False</May><June>False</June><July>False</July>" &
"<August>False</August><September>False</September><October>True</October>" &
"<November>False</November><December>False</December></MonthsOfYear></MonthlyRecurrence></ScheduleDefinition>
BUT,
when I add an <EndDate> element (right after the StartDateTime-element), the
subscription is still created, but my begin AND endtime are unknown.. anyone
an idea why this happens (and only when i add the enddate element) ?
Thx!Make sure you have SP2 installed and also there should be an EndDateSpecified
element that should be set to True when using the EndDate element.
HTH
Dave
"Koen" wrote:
> Hi,
> I use web services to register a datadriven subscription. When i use this
> piece for my scheduledefinition, it works like a charm :
> <ScheduleDefinition><StartDateTime>2005-10-14T15:15:00</StartDateTime>" &
> "<MonthlyRecurrence><Days>14</Days><MonthsOfYear>" &
> "<January>False</January><February>False</February><March>False</March>" &
> "<April>False</April><May>False</May><June>False</June><July>False</July>" &
> "<August>False</August><September>False</September><October>True</October>" &
> "<November>False</November><December>False</December></MonthsOfYear></MonthlyRecurrence></ScheduleDefinition>
> BUT,
> when I add an <EndDate> element (right after the StartDateTime-element), the
> subscription is still created, but my begin AND endtime are unknown.. anyone
> an idea why this happens (and only when i add the enddate element) ?
> Thx!|||hi Dave,
thx for your reply. Where in the xml statement should i place the
EndDateSpecified ? Case when i add the element
<EndDateSpecified>True</EndDateSpecified> it says that it's not correct
accoring the xml syntax ?
Thanks
"Dave" wrote:
> Make sure you have SP2 installed and also there should be an EndDateSpecified
> element that should be set to True when using the EndDate element.
> HTH
> Dave
> "Koen" wrote:
> > Hi,
> >
> > I use web services to register a datadriven subscription. When i use this
> > piece for my scheduledefinition, it works like a charm :
> >
> > <ScheduleDefinition><StartDateTime>2005-10-14T15:15:00</StartDateTime>" &
> > "<MonthlyRecurrence><Days>14</Days><MonthsOfYear>" &
> > "<January>False</January><February>False</February><March>False</March>" &
> > "<April>False</April><May>False</May><June>False</June><July>False</July>" &
> > "<August>False</August><September>False</September><October>True</October>" &
> > "<November>False</November><December>False</December></MonthsOfYear></MonthlyRecurrence></ScheduleDefinition>
> >
> > BUT,
> >
> > when I add an <EndDate> element (right after the StartDateTime-element), the
> > subscription is still created, but my begin AND endtime are unknown.. anyone
> > an idea why this happens (and only when i add the enddate element) ?
> >
> > Thx!|||The EnddateSpecified is a property of the ScheduleDefinition so I would try:
<ScheduleDefinition>
<StartDateTime>2005-10-14T15:15:00</StartDateTime>
<MonthlyRecurrence> ... </MonthlyRecurrence>
<EndDate>2005-10-15</EndDate>
<EndDateSpecified>True</EndDateSpecified>
</ScheduleDefinition>
Note I have never tried using the EndDate so this *should* work but ... If
it doesn't work you could
create the ScheduleDefinition in code and then try using the XML serializer
to serialize the ScheduleDefinition object. Again
I have never done this but did come across this tip in one of the help files.
I have also heard that there are problems with EndDates esp. if you include
a time. You may want to search MS and other places for any topics on using
EndDates.
Regards
Dave
"Koen" wrote:
> hi Dave,
> thx for your reply. Where in the xml statement should i place the
> EndDateSpecified ? Case when i add the element
> <EndDateSpecified>True</EndDateSpecified> it says that it's not correct
> accoring the xml syntax ?
> Thanks
> "Dave" wrote:
> > Make sure you have SP2 installed and also there should be an EndDateSpecified
> > element that should be set to True when using the EndDate element.
> >
> > HTH
> >
> > Dave
> >
> > "Koen" wrote:
> >
> > > Hi,
> > >
> > > I use web services to register a datadriven subscription. When i use this
> > > piece for my scheduledefinition, it works like a charm :
> > >
> > > <ScheduleDefinition><StartDateTime>2005-10-14T15:15:00</StartDateTime>" &
> > > "<MonthlyRecurrence><Days>14</Days><MonthsOfYear>" &
> > > "<January>False</January><February>False</February><March>False</March>" &
> > > "<April>False</April><May>False</May><June>False</June><July>False</July>" &
> > > "<August>False</August><September>False</September><October>True</October>" &
> > > "<November>False</November><December>False</December></MonthsOfYear></MonthlyRecurrence></ScheduleDefinition>
> > >
> > > BUT,
> > >
> > > when I add an <EndDate> element (right after the StartDateTime-element), the
> > > subscription is still created, but my begin AND endtime are unknown.. anyone
> > > an idea why this happens (and only when i add the enddate element) ?
> > >
> > > Thx!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment