Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titlePwsGetTimeCardHistory Response

Response Elements


Element

Data Type

Description

Sample Data

Messages

PwsMessage

The web service response status and message. Click here for more information.


ResponseId

Int32

Click here for more information.

1

Status

RequestStatus

Click here for more information.

Ok

ServerTimestampUtc

DateTime

Click here for more information.

2018-03-08T16:05:07.2635866Z

ResourceIdentity

PwsResourceRef

The resource associated withthe time card


TimeCardIdentity

PwsTimeCardRef

The time card identity


TimeOffHistory

PwsTimeOffHistory [???]

The time off time card history


TimecardDeletedFlag

Boolean

If set to 'true', the time card has been deleted

false

TimecardHistory

PwsTimecardHistory PwsTimeCardHistory [???]

The time card history


...

Code Block
languagexml
titleExample 02 - Time Off Time Card
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsGetTimeCardHistoryResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsGetTimeCardHistoryResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>             
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-03-08T16:12:19.1854271Z</ServerTimestampUtc>
            <a:ResourceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:ResourceDisplayName>Jack Spratt</b:ResourceDisplayName>
               <b:ResourceId i:nil="true"/>
               <b:ResourceReferenceSystemId>E123</b:ResourceReferenceSystemId>
               <b:ResourceUid>1152921504607111573</b:ResourceUid>
            </a:ResourceIdentity>
            <a:TimeCardIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:ReferenceId i:nil="true"/>
               <b:TimecardId i:nil="true"/>
               <b:TimecardType>R</b:TimecardType>
               <b:TimecardUid>1152921504608460883</b:TimecardUid>
            </a:TimeCardIdentity>
            <a:TimeOffHistory>
               <a:PwsTimeOffHistory>
                  <a:AdjustmentType>SS</a:AdjustmentType>
                  <a:ApprovalWorkflowStatus>S</a:ApprovalWorkflowStatus>
                  <a:Date>2018-03-06T00:00:00Z</a:Date>
                  <a:RejectedReason i:nil="true"/>
                  <a:TimeOffMinutes>480</a:TimeOffMinutes>
                  <a:TimeOffReasonIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:TimeOffReasonId i:nil="true"/>
                     <b:TimeOffReasonName>Vacation</b:TimeOffReasonName>
                     <b:TimeOffReasonUid>1152921504606858293</b:TimeOffReasonUid>
                  </a:TimeOffReasonIdentity>
                  <a:TransactionTimestamp>2018-03-07T20:33:16.677Z</a:TransactionTimestamp>
                  <a:TransactionUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:UserDisplayName>Jack Spratt</b:UserDisplayName>
                     <b:UserId i:nil="true"/>
                     <b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
                     <b:UserUid>1152921504607112369</b:UserUid>
                     <b:EmailAddress>jack@revcorp.bb</b:EmailAddress>
                     <b:FirstName>Jack</b:FirstName>
                     <b:LastName>Spratt</b:LastName>
                     <b:MiddleName i:nil="true"/>
                  </a:TransactionUser>
               </a:PwsTimeOffHistory>
            </a:TimeOffHistory>
            <a:TimecardDeletedFlag>false</a:TimecardDeletedFlag>
            <a:TimecardHistory/>
         </PwsGetTimeCardHistoryResult>
      </PwsGetTimeCardHistoryResponse>
   </s:Body>
</s:Envelope>

PwsGetTimeCardHistory - Common Errors and Warnings

ErrorNumber

ErrorCode

ErrorText

20001TimeCardStartDateRequiredThe range start date must be specified.