Versions Compared

Key

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

Overview


This web service inserts, updates or deletes project rate type(s) based on a detailed project rate type structure (PwsSaveProjectRateTypeDetail). replaces the entire collection of project rate types on the specified project with the new designated collection.

Request Format


Panel
titlePwsSaveProjectRateTypes Request

...

Element

Data Type

Required?

Default

Description

Sample Data

RequestId

Int32

 No


 Click here for more information.

1

SessionTicket

String

 Yes


 Click here for more information.

Ab62GYARtqWE8wJFv6Pd8g==

LocksToSteal

PwsEntityLockSummary[1..100]

No


The detailed information of the locks that are to be stolen. If not specified, the request will fail if any requested locks are already held. If specified, the information supplied must exactly match the current state of existing locks or the attempt to steal the existing locks will fail. Typically, this service is invoked with LocksToSteal empty or null. If there are existing locks, they will be returned in the LockHolders member of PwsFault. This data can then be sent, as is, back to the server in a second invocation of this service, as LocksToSteal, if the caller desires to steal the locks.


ProjectIdentity

PwsProjectRef

 Yes


The identity of the project. Click here for more information.


ProjectRateTypes

PwsProjectTaskTypeDetailPwsProjectRateTypeDetail [1..100]

 Yes


All the project The full collection of rate types that are currently on for the project and need to be retained as well as the project rate type(s) to be added, updated or deletedto replace the prior full collection.


ProjectorLockSetId

Int32

 No


A projector lock set id is an identifier for a group of one or more locks held as a unit.


RateTaskTimestamp

String

No 


This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value.


...

Response Format



Panel
titlePwsSaveProjectTaskTypes PwsSaveProjectRateTypes Response

...

Element

...

Data Type

...

Required?

...

Default

...

Description

...

RequestId

...

Int32

...

SessionTicket

...

String

...

LocksToSteal

...

PwsEntityLockSummary[]

...

ProjectIdentity

...

PwsProjectRef

...

ProjectRateTypes

...

PwsProjectRateTypeDetail[]

...

ProjectorLockSetId

...

Int32

...

RateTaskTimestamp

...

String

Response Elements


Element

Data Type

Description

Messages

PwsMessage[]

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

ResponseId

Int32

 Click here for more information.

Status

RequestStatus

RequestStatus

 Click here for more information

ServerTimestampUtc

DateTime

 Click here for more information.

InactivatedFlag

Boolean

This flag is set to true if one or more tasks have been marked as inactive as a result of the update

RateTaskTimestamp

String

This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value.

StolenLocks

PwsEntityLockSummary

This structure contains information about the locks that were stolen in order to complete this request, Will be included only when LocksToSteal is specified in the request

.

RevalueReport

PwsRevalueReport

Information about time cards on the project that were affected or would be affected by the change. Populated only when RevalueAction is R (Revalue) or C (Check). If RevalueAction is R, the values included in this structure reflect what was done. If RevalueAction is C, the values reflect what would be done if the service were invoked again with RevalueAction set to R

.

Response Usage Example(s)

...

Code Block
languagexml
titleExample 01PwsSaveProjectRateTypesResponse
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsSaveProjectTaskTypesResponse<PwsSaveProjectRateTypesResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsSaveProjectTaskTypesResult<PwsSaveProjectRateTypesResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:PwsMessage>
                  <b:AdditionalErrorText>Message 136: This request was executed against the QA [appqa.projectorpsa.com] environment.</b:AdditionalErrorText>
                  <b:ErrorCode>NonProductionEnvironment</b:ErrorCode>
                  <b:ErrorNumber>136</b:ErrorNumber>
                  <b:ErrorText>This web service request was executed against a non-production instance of Projector.</b:ErrorText>
                  <b:Type>Information</b:Type>
                  <b:ReferenceId1 i:nil="true"/>
                  <b:ReferenceId2 i:nil="true"/>
  
            </b:PwsMessage>
            </Messages>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2020>2023-1109-30T1807T20:1703:0728.0099106Z<35366Z</ServerTimestampUtc>
            <a:InactivatedFlag>true</a:InactivatedFlag>
            <a:RateTaskTimestamp>AAAAABcxbqARateTaskTimestamp>AAAAADFChm4=</a:RateTaskTimestamp>
            <a:StolenLocks i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
  
         <a:RevalueReport i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
         </PwsSaveProjectTaskTypesResult></PwsSaveProjectRateTypesResult>
      </PwsSaveProjectTaskTypesResponse>PwsSaveProjectRateTypesResponse>
   </s:Body>
</s:Envelope>

...


PwsSaveProjectRateTypes - Common Errors and Warnings

The specified project task
ErrorNumberErrorCodeErrorText
15002ProjectNotSpecifiedForSaveTaskTypeNo project was specified for saving project task type.
54645ProjectTaskTypeNameIsRequiredThe project task type name is required for new project task types.
54646ProjectTaskTypeNameAlreadyInUse
64616DuplicateEntityInXmlDuplicate PwsProjectRateType entity found in input XML.
54701ProjectRateTypeReferencedByTaskTypeThe project rate type <project-rate-type-name> cannot be deleted because there is at least one project task type that references it.
54784PermissionDeniedToUpdateProjectRateTypeYou do not have appropriate permission to update this project rate type.
54785StandardRateTypeInactiveThe specified standard rate type is inactive.
54787ProjectRateTypeNameInUseThe specified project rate type name is already in use by a different project rate type on this project.
5464754788ProjectRateTypeIsRequiredProjectRateTypeExternalSystemIdentifierInUseThe default specified project rate type is required for new project task types.
54650ProjectRateTypeNotFoundThe specified default project rate type does not exist.
55069TaskTypePurchaseOrderSpecifiedWhenInheritingPurchase order number may not be specified when inheriting purchase order number.
57556TaskTypeNotSpecifiedThe standard task type is required for new project task typesexternal system identifier is already in use by a different project rate type. External system identifiers must be globally unique.
54884ProjectRateTypeReferencedByBaselineThe project rate type <project-rate-type-name> cannot be deleted because it is referenced by one or more baselines.
54731ProjectRateTypeReferencedByInvoiceThe project rate type <project-rate-type-name> cannot be deleted because it is referenced by at least one invoice.
54761ProjectRateTypeReferencedByTimecardThe project rate type <project-rate-type-name> cannot be deleted because it is referenced by at least one time card.