/
PwsSaveResourceSkillLevels

PwsSaveResourceSkillLevels

Overview


This web service updates skill levels (PwsResourceSkillLevel) for a specified resource (PwsResourceRef) . The service returns the identity of the resource (PwsResourceRef) that has been updated.


In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm.  When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate.  Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly.  For more information please visit: Projector Rate Limiting Behavior.


Request Format


PwsSaveResourceSkillLevelsRq

Request Elements


Element

Data Type

Required?

Description

Sample Data

RequestId

Int32

No

Click here for more information.

1

SessionTicket

String

Yes 

Click here for more information.

AVqwYHFUvUT/fJlt22N2DA==

ResourceIdentity

PwsResourceRef

Yes 

The identity of the resource whose skills are to be updated.


ResourceTimestamp

String

No 

This is a Base64 encoded timestamp optionally utilized for resource locking.


SkillLevels

PwsResourceSkillLevel[1..100]

Yes 

This structure represents a resource's skill level for a particular skill.


Request Usage Example(s)


Example 01
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsSaveResourceSkillLevels>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AVqwYHFUvUT/fJlt22N2DA==</req:SessionTicket>
            <req:ResourceIdentity>
               <com:ResourceDisplayName>IT Manager</com:ResourceDisplayName>
               <com:ResourceReferenceSystemId>IT Manager</com:ResourceReferenceSystemId>
            </req:ResourceIdentity>
            <req:SkillLevels>
               <com:PwsResourceSkillLevel>
                  <com:SkillGroupIdentity>
                     <com:SkillGroupName>Programming</com:SkillGroupName>
                  </com:SkillGroupIdentity>
                  <com:SkillName>jQuery</com:SkillName>
                  <com:SkillLevel>5</com:SkillLevel>
               </com:PwsResourceSkillLevel>
            </req:SkillLevels>
            <req:SkillLevels>
               <com:PwsResourceSkillLevel>
                  <com:SkillGroupIdentity>
                     <com:SkillGroupName>Languages</com:SkillGroupName>
                  </com:SkillGroupIdentity>
                  <com:SkillName>English</com:SkillName>
                  <com:SkillLevel>5</com:SkillLevel>
               </com:PwsResourceSkillLevel>
            </req:SkillLevels>
         </pws:serviceRequest>
      </pws:PwsSaveResourceSkillLevels>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


PwsSaveResourceSkillLevelsRs

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.


Status

RequestStatus

Click here for more information.

Ok

ServerTimestampUtc

DateTime

Click here for more information.

2018-11-06T21:45:55.7273579Z

ResourceIdentity

PwsResourceRef

The fully populated identity of the resource that was updated.


Timestamp

String

This is a Base64 encoded timestamp optionally utilized for resource locking

AAAAABCzITc=

Response Usage Example(s)


Example 01
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsSaveResourceSkillLevelsResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsSaveResourceSkillLevelsResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" 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-11-06T21:45:55.7273579Z</ServerTimestampUtc>
            <a:ResourceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:ResourceDisplayName>IT Manager</b:ResourceDisplayName>
               <b:ResourceId i:nil="true"/>
               <b:ResourceReferenceSystemId>IT Manager</b:ResourceReferenceSystemId>
               <b:ResourceUid>1152921504607131532</b:ResourceUid>
            </a:ResourceIdentity>
            <a:Timestamp>AAAAABCzITc=</a:Timestamp>
         </PwsSaveResourceSkillLevelsResult>
      </PwsSaveResourceSkillLevelsResponse>
   </s:Body>
</s:Envelope>

PwsSaveResourceSkillLevels - Common Errors and Warnings

ErrorNumber

ErrorCode

ErrorText

10117ValueOutOfRangeThe value specified in the field "SkillLevel" in the class "PwsResourceSkillLevel" is out of range. The value must be between 0 and 5.
50024EntityNotFoundError 50024, State 3: Entity not found ### [refStructureName:PwsResourceRef]