SOAP API - saveCalendar
The table summarizes the SOAP API - saveCalendar.
Request | Uses the saveCalendar element (from the WorkCalService schema) |
Parameter notes |
|
Response | Returns a saveCalendarResponse element (from the WorkCalService schema). |
Example 1: Create a base calendar | |
Request:<soapenv:Body> <wor:saveCalendar> <base-calendar calendar-type="BASE" namespace="LONDON" name="EMEA-N" date-created="?" date-modified="?" version="-1" time-zone="Europe/London" min-hours="4"> <working-days day-of-week="MO"> <time-slot start="08:00:00.000Z" end="12:00:00.000Z"/> <time-slot start="13:00:00.000Z" end="18:00:00.000Z"/> </working-days> <working-days day-of-week="TU"> <time-slot start="08:00:00.000Z" end="12:00:00.000Z"/> <time-slot start="13:00:00.000Z" end="18:00:00.000Z"/> </working-days> <working-days day-of-week="WE"> <time-slot start="08:00:00.000Z" end="12:00:00.000Z"/> <time-slot start="13:00:00.000Z" end="18:00:00.000Z"/> </working-days> <working-days day-of-week="TH"> <time-slot start="08:00:00.000Z" end="12:00:00.000Z"/> <time-slot start="13:00:00.000Z" end="18:00:00.000Z"/> </working-days> <working-days day-of-week="FR"> <time-slot start="08:00:00.000Z" end="12:00:00.000Z"/> <time-slot start="13:00:00.000Z" end="16:00:00.000Z"/> </working-days> </base-calendar> </wor:saveCalendar> </soapenv:Body> |
|
Response:<SOAP-ENV:Body> <saveCalendarResponse xmlns="http://workcal.api.dac.n2.tibco.com"> <base-calendar calendar-type="BASE" date-created="2012-03-01T15:04:40.713Z" date-modified="2012-03-01T15:04:40.739Z" min-hours="4" name="EMEA-N" namespace="LONDON" time-zone="Europe/London" version="0" xmlns=""> <working-days day-of-week="MO"> <time-slot end="12:00:00.000Z" start="08:00:00.000Z"/> <time-slot end="18:00:00.000Z" start="13:00:00.000Z"/> </working-days> <working-days day-of-week="TU"> <time-slot end="12:00:00.000Z" start="08:00:00.000Z"/> <time-slot end="18:00:00.000Z" start="13:00:00.000Z"/> </working-days> <working-days day-of-week="WE"> <time-slot end="12:00:00.000Z" start="08:00:00.000Z"/> <time-slot end="18:00:00.000Z" start="13:00:00.000Z"/> </working-days> <working-days day-of-week="TH"> <time-slot end="12:00:00.000Z" start="08:00:00.000Z"/> <time-slot end="18:00:00.000Z" start="13:00:00.000Z"/> </working-days> <working-days day-of-week="FR"> <time-slot end="12:00:00.000Z" start="08:00:00.000Z"/> <time-slot end="16:00:00.000Z" start="13:00:00.000Z"/> </working-days> </base-calendar> </saveCalendarResponse> </SOAP-ENV:Body> |
|
Example 2: Create an overlay calendar | |
Request:<soapenv:Body> <wor:saveCalendar> <overlay-calendar calendar-type="OVERLAY" namespace="LONDON" name="PUB_HOL" date-created="?" date-modified="?" version="-1"/> </wor:saveCalendar> </soapenv:Body> |
|
Response:<SOAP-ENV:Body> <saveCalendarResponse xmlns="http://workcal.api.dac.n2.tibco.com"> <overlay-calendar calendar-type="OVERLAY" date-created="2012-03-01T16:05:10.649Z" date-modified="2012-03-01T16:05:10.649Z" name="PUB_HOL" namespace="LONDON" version="0" xmlns=""/> </saveCalendarResponse> </SOAP-ENV:Body> |