Application management : Tools : Web Services : Developing a Web service client : Adding time schedule to Maintenance Activity Definition in web services
Adding time schedule to Maintenance Activity Definition in web services
You can set a schedule for time based Maintenance Activity Definitions through the Web services client. You can add recurring hourly, daily, weekly, monthly, yearly schedules using the following methods:
* 
You must add the date in the ‘Tue Nov 09 12:29:45 2010’ format. If not an error message <faultstring> Unparseable date: "Tuesday Nov 09 12:29:45 2010"</faultstring> is displayed.
//Hourly Time schedule
void add_timeScheduleIterateHourly(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime, final int aInterval)
//Daily Time schedule

void add_timeScheduleIterateDaily(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime, final int aInterval)
//Monthly Time schedule
void add_timeScheduleIterateMonthly(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime, final int aInterval, final int aDayOfMonth)
//Yearly Time schedule
void add_timeScheduleIterateYearly(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime, final int aInterval)
//Monthly Weekdays Time schedule
void add_timeScheduleIterateMonthlyOnWeekDay(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime,

final int aInterval, final int aOccuranceInMonth,

final boolean aOnMonday, final boolean aOnTuesday, final boolean aOnWednesday,
final boolean aOnThursday, final boolean aOnFriday,
final boolean aOnSaturday, final boolean aOnSunday)
//Weekly Time schedule
void add_timeScheduleIterateWeekly(final String aSessionId,

final MaintenanceActivityDefinition aPOJO, final Calendar aBeginDateTime,

final Calendar aEndDateTime, final int aInterval, final boolean aOnMonday,
final boolean aOnTuesday, final boolean aOnWednesday,
final boolean aOnThursday,final boolean aOnFriday,
final boolean aOnSaturday, final boolean aOnSunday).
For a description of the parameters used in the methods, refer to Parameters.