Versions Compared

Key

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

...

Code Block
languagexml
titleExample 02 - Stealing a Lock
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault><PwsAcquireProjectorLocksResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
          <faultcode>s:Client</faultcode>
<PwsAcquireProjectorLocksResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <faultstring xml:lang="en-US">The creator of this fault did not specify a Reason.</faultstring>
         <detail>
            <PwsFault <Messages xmlns="http://projectorpsa.com/DataContracts/Shared/Common/" CommonServices/" xmlns:ib="http://wwwprojectorpsa.w3.orgcom/2001/XMLSchema-instance">
               <Messages>
                  <PwsMessage>
                     <AdditionalErrorText>Error 50469: EntityAlreadyLocked</AdditionalErrorText>
                     <ErrorCode>EntityAlreadyLocked</ErrorCode>
                     <ErrorNumber>50469</ErrorNumber>
                     <ErrorText>One or more existing locks prevent acquisition of requested lock.</ErrorText>
                     <Type>Error</Type>
                     <ReferenceId1 i:nil="true"/>
                     <ReferenceId2 i:nil="true"/>
                  </PwsMessage>
               </Messages>
               <ResponseId>1</ResponseId>
               <ServiceName>PwsAcquireProjectorLocksRs</ServiceName>
               <LockHolderUserIdentity>
                  <UserDisplayName>IT Manager</UserDisplayName>
                  <UserId i:nil="trueDataContracts/Shared/Common/"/>
                  <UserReferenceSystemId>IT Manager</UserReferenceSystemId><ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
                  <UserUid>1152921504607134339</UserUid>
       <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
       </LockHolderUserIdentity>     <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-10-17T15:28:07.9156991Z</ServerTimestampUtc>
         <LockHolders>       <a:Locks xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
           <PwsEntityLockSummary>    <b:PwsProjectorLock>
                 <EntityIdentity> <b:EntityIdentity>
                       <EntityCode>P001468<b:EntityCode>P001468-001</b:EntityCode>
                        <EntityId<b:EntityId i:nil="true"/>
                        <EntityUid>1152921504607429941</<b:EntityUid>1152921504607429941</b:EntityUid>
                        <LockType>P</LockType>
                  <b:LockType>P</b:LockType>
  </EntityIdentity>                </b:EntityIdentity>
     <EntityLockSummary>             <b:EntityTimestamp>AAAAABCnqY8=</b:EntityTimestamp>
           <PwsEntityLockSummaryItem>       <b:LockStolenFlag>true</b:LockStolenFlag>
                  <b:StolenLocks>
 <LockCount>1</LockCount>                    <b:PwsEntityLockSummaryItem>
       <LockHolderUserIdentity>                 <b:LockCount>1</b:LockCount>
             <UserDisplayName>IT Manager</UserDisplayName>           <b:LockHolderUserIdentity>
                   <UserId i:nil="true"/>       <b:UserDisplayName>IT Manager</b:UserDisplayName>
                      <UserReferenceSystemId>IT Manager</UserReferenceSystemId>    <b:UserId i:nil="true"/>
                         <UserUid>1152921504607134339</UserUid>  <b:UserReferenceSystemId>IT Manager</b:UserReferenceSystemId>
                        </LockHolderUserIdentity>   <b:UserUid>1152921504607134339</b:UserUid>
                        <MostRecentLockAcquisitionTimestamp>2018-10-16T17:34:43.037Z</MostRecentLockAcquisitionTimestamp></b:LockHolderUserIdentity>
                        </PwsEntityLockSummaryItem><b:MostRecentLockAcquisitionTimestamp>2018-10-17T15:24:42.897Z</b:MostRecentLockAcquisitionTimestamp>
                     </EntityLockSummary>b:PwsEntityLockSummaryItem>
                  </PwsEntityLockSummary>b:StolenLocks>
               </LockHolders>b:PwsProjectorLock>
               <LockTaker i:nil="true"/></a:Locks>
            </PwsFault><a:ProjectorLockSetId>2621</a:ProjectorLockSetId>
         </detail>PwsAcquireProjectorLocksResult>
      </s:Fault>PwsAcquireProjectorLocksResponse>
   </s:Body>
</s:Envelope>


PwsAcquireProjectorLocks - Common Errors and Warnings

...