Versions Compared

Key

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

...

This web service retrieves one mileage rate using the identity of a resource (PwsResourceRef), the identity of an expense document (PwsExpenseDocumentRef), or both.  If both identities are provided, the resources must match or an error is returned in the response. 

Request Format

 

Panel
titlePwsGetMileageRate Request

...

Panel
titlePwsGetMileageRate Response

...

Element

Data Type

Description

Sample Data

Messages

PwsMessage[]

The web service response status and message. Click herefor more information


ResponseId

Int32

Click here for more information.

0

Status

RequestStatusClick here for more informationOk

ServerTimestampUtc

DateTime

Click here for more information.

2018-03-08T15:50:59.35176Z

EffectiveEndDate

DateTime

The mileage rate's effective end date

9999-12-31T00:00:00Z

EffectiveStartDate

DateTime

The mileage rate's effective start date

2013-01-01T00:00:00Z

MileageRate

Double

The mileage rate for this resource based on resource's location

0.565

MileageUom

String

The unit of the Mileage. 'M' is for miles and 'K' for kilometers.

M

...

Code Block
languagexml
titleExample 01
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsGetMileageRateResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsGetMileageRateResult 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/">0</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-03-08T16:03:15.5611309Z</ServerTimestampUtc>
            <a:EffectiveEndDate>9999-12-31T00:00:00Z</a:EffectiveEndDate>
            <a:EffectiveStartDate>2018-01-01T00:00:00Z</a:EffectiveStartDate>
            <a:MileageRate>0.6571</a:MileageRate>
            <a:MileageUom>M</a:MileageUom>
         </PwsGetMileageRateResult>
      </PwsGetMileageRateResponse>
   </s:Body>
</s:Envelope>

PwsGetMileageRate - Common Errors and Warnings

...