...
This web service retrieves a list of time off reasons within an installation. Additionally, if cards for a resource identity (PwsResourceRef) is provided that resource's time off entries within the given time period will also be returned. If no resource is specified, the resource associated with the caller is used. The time off cards in the response are grouped by time off reason (PwsTimeEntryTimeOff).
Request Method
Panel | ||
---|---|---|
| ||
|
Request Elements
Element | Data Type | Required? | Description | Sample Data |
---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 |
SessionTicket | String |
Click here for more information.
EndDate
DateTime
ResourceIdentity
StartDate
Yes | Click here for more information. | AQ2+Jbbi2PGY7DYzq356oQ== | ||
EndDate | DateTime | Yes | Together, the StartDate and EndDate define the period for which to retrieve time off cards. | 2018-03-31T00:00:00.000Z |
ResourceIdentity | No | The identity of the resource associated with the time off time cards. If not specified, the resource linked to the caller is used. | ||
StartDate | DateTime | Yes | Together, the StartDate and EndDate define the period for which to retrieve time off cards. | 2018-01-01T00:00:00.000Z |
Request Usage Example(s)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/"> <soapenv:Header/> <soapenv:Body> <pws:PwsGetTimeEntryTimeOff> <pws:serviceRequest> <req:RequestId>1</req:RequestId> <req:SessionTicket>AQ2+Jbbi2PGY7DYzq356oQ==</req:SessionTicket> <tim:EndDate>2018-03-31T00:00:00.000Z</tim:EndDate> <tim:ResourceIdentity> <com:ResourceReferenceSystemId>E123</com:ResourceReferenceSystemId> </tim:ResourceIdentity> <tim:StartDate>2018-01-01T00:00:00.000Z</tim:StartDate> </pws:serviceRequest> </pws:PwsGetTimeEntryTimeOff> </soapenv:Body> </soapenv:Envelope> |
...
Panel | ||
---|---|---|
| ||
|
Response Elements
Element | Data Type | Description | Sample Data | Messages | Sample Data | |
---|---|---|---|---|---|---|
Messages | The web service response status and message. Click here for more information | |||||
ResponseId | Int32 | Click here for more information | ||||
Status | Click here for more information | |||||
ServerTimestampUtc | DateTime | Click here for more information | ||||
TimeEntryTimeOff | The complete details associated with a time off time card |
Response Usage Example(s)
...
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|
57545 |
ResourceNotFound | The specified resource does not exist. | |
64249 | SpecifiedDateRangeMissingIncompleteOrInvalid | A specified date range |
was missing, incomplete or invalid. Both the start and end dates must be specified, and the start date may not be after the end date. |