PwsSetSkillSortOrder

Overview

 This web service allows users to set the sort order of a skill within a skill group. The sort order can be set absolutely, or the skill can be moved up or down in the list.

Request Format

PwsSetSkillSortOrder Request
  • PwsSetSkillSortOrder
    • serviceRequest: PwsSetSkillSortOrderRq

Request Elements


Element

Data Type

Required?

Default

Description

Sample Data

RequestId

Int32

No


Click here for more information.


SessionTicket

String

Yes


Click here for more information.


Direction

Int16

Either "Direction" OR "SortOrder" must be specified


If negative, skill is moved up one position; if positive, down one position. Omit to specify sort position absolutely.


SkillIdentity

PwsSkillRef

Yes


This identifies the skill to be moved,


SkillVersionStamp

Int32

No


Version stamp for optimistic locking. Any time a skill or skill group is updated, this version stamp will be changed in the database. The PwsGetSkill service returns this value, and if echoed back here, and it does not match the current version stamp, that indicates that the skill group or skill data has been changed. The request will fail.


SkipInactiveFlag

Boolean

No


If set to "true", the request will skip the inactive skill in a skill group. Applies when using Direction to move the skill up or down.  true

SortOrder

Int16

Either "Direction" OR "SortOrder" must be specified


The order of a skill within a skill group. The base order number is 1. 

3

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:PwsSetSkillSortOrder>
         <!--Optional:-->
         <pws:serviceRequest>
            <req:SessionTicket>AQztUvxG5aNFjPJheSuItw==</req:SessionTicket>
            <req:SkillIdentity>
               <!--Optional:-->
               <com:SkillGroupIdentity>
                  <com:SkillGroupName>Technology</com:SkillGroupName>
               </com:SkillGroupIdentity>
               <com:SkillName>HTML</com:SkillName>
            </req:SkillIdentity>
            <req:SkipInactiveFlag>1</req:SkipInactiveFlag>
            <!--Optional:-->
            <req:SortOrder>100</req:SortOrder>
         </pws:serviceRequest>
      </pws:PwsSetSkillSortOrder>
   </soapenv:Body>
</soapenv:Envelope>


Response Format

PwsSetSkillSortOrder Response

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

Click here for more information

ServerTimestampUtc

DateTime

Click here for more information.

SkillVersionStamp

PwsSkillRef

The new skill version stamp.


Response 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:PwsSetSkillSortOrder>
         <!--Optional:-->
         <pws:serviceRequest>
            <req:SessionTicket>AQztUvxG5aNFjPJheSuItw==</req:SessionTicket>
            <req:SkillIdentity>
               <!--Optional:-->
               <com:SkillGroupIdentity>
                  <com:SkillGroupName>Technology</com:SkillGroupName>
               </com:SkillGroupIdentity>
               <com:SkillName>HTML</com:SkillName>
            </req:SkillIdentity>
            <req:SkipInactiveFlag>1</req:SkipInactiveFlag>
            <!--Optional:-->
            <req:SortOrder>100</req:SortOrder>
         </pws:serviceRequest>
      </pws:PwsSetSkillSortOrder>
   </soapenv:Body>
</soapenv:Envelope>

Common Errors and Warnings

ErrorNumberErrorCodeErrorText
50024EntityNotFoundSkill was not found. Another user may have deleted it.