CalculateEndDateInBusinessDays |
This method calculates the end date after a given start date and business days.
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> < calculateEndDateInBusinessDays xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0"> <WorkspaceID>002481F0-8E9F-11E2-EE36-A5EED1105F38</WorkspaceID> <calendarName>Calender1</calendarName> <startDate>2008-09-23T22:37:53.234</startDate> <useStartDateCapacity>true</useStartDateCapacity> <nrOfBusinessDays>10</nrOfBusinessDays> <moveToStartOfNextDay>true</moveToStartOfNextDay> </calculateEndDateInBusinessDays > </SOAP:Body> </SOAP:Envelope>
Request Parameters
Parameter |
Description |
Mandatory |
Accepted Input Values |
---|---|---|---|
WorkspaceID | ID of CWS Workspace | No | GUID (optional) |
calendarName |
Unique identifier for the calendar. This can be a full qualified name or a document ID. |
Yes |
You can specify one of the following values:
|
startDate |
Start date |
Yes |
Date must be in the UTC format. For example 2008-09-23T22:37:53.234. |
useStartDateCapacity |
Flag to indicate whether to include start date in calculation |
Yes |
Boolean (True or False) |
nrofBusinessDays |
Duration in the business days |
Yes |
Any non-negative integer value |
moveToStartOfNextDay |
Flag to indicate whether to round off the calculation to start of next day after the calculated day |
Yes |
Boolean (True or False) |
SOAP Response
<data> <calculateEndDateInBusinessDaysResponse xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <calculateEndDateInBusinessDays>2008-10-28T04:30:00.234</calculateEndDateInBusinessDays> </calculateEndDateInBusinessDaysResponse> </data>
Response Parameters
Parameter |
Description |
---|---|
calculateEndDateInBusinesssDays |
Date in UTC. |