Versions Compared

Key

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

...

This web service retrieves a list of client summary records (PwsClientSummary), based on specified search criteria. You can specify which client or clients to retrieve either by specifying a set of search criteria, or by specifying a specific client (PwsClientRef). The web service returns a list of clients (PwsClientSummary). 

Request Format


Panel
titlePwsGetClientList Request

...


Request Elements


ElementData TypeRequired?DefaultDescriptionPwsClientRefPwsClientRef [1]no
IncludeInactiveFlagBooleannofalseValid values for this field include "true" or "false". If set to true, inactive clients will be included in the response.
MaxRowsToReturnInt32noinfiniteMaximum number of clients to be returned
QueryStringStringnoFind all clients matching specified string in client name or client numberLastUpdatedSinceTimestampDateTimenoOnly clients that have been updated on or after the specified date/time will be retrieved

Request Usage Example(s)

...

languagexml
titleExample 01 - Client is not specified
collapsetrue

...

Sample Data
RequestIdInt32No
Click here for more information
1
SessionTicketString (50)Yes
Click here for more information
AavFwbZgVb9V4tr3R7BbzQ==
ClientIdentityPwsClientRefNo
For this service, the caller may specify a client identity to retrieve a specific client summary. If a client identity is not specified all clients fitting the other specified criteria will be returned.
IncludeInactiveFlagBooleanNofalseIf set to 'true', inactive clients will be included in the response. This flag is disregarded if a client is specified in ClientIdentity.
true/false
MaxRowsToReturnInt32No
The maximum number of clients to be returned. This value is disregarded if a client is specified in ClientIdentity.
100
QueryStringString (255)No
A search string to narrow down the results. A client will be included in the results if the search string matches the client number or client name, or if it is a child to a client that is matched based upon the criteria. This value is disregarded if a client is specified in ClientIdentity.
Parent
LastUpdatedSinceTimestampDateTimeNo
Only clients that have been updated on or after the specified date/time will be retrieved. This value is disregarded if a client is specified in ClientIdentity.
2018-01-01

Request Usage Example(s)


Code Block
languagexml
titleExample 01 - Client is not specified
collapsetrue
<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:PwsGetClientList>
         <pws:serviceRequest>
            <!--ClientNumber>?</ClientNumber--><req:RequestId>1</req:RequestId>
               <!--ClientUid>?</ClientUid--><req:SessionTicket>AavFwbZgVb9V4tr3R7BbzQ==</req:SessionTicket>
            </ClientIdentity><req:IncludeInactiveFlag>false</req:IncludeInactiveFlag>
            <IncludeInactiveFlag>true</IncludeInactiveFlag><req:MaxRowsToReturn>100</req:MaxRowsToReturn>
            <!--MaxRowsToReturn>?</MaxRowsToReturn--><req:QueryString>Parent</req:QueryString>
            <!<req:LastUpdatedSinceTimestamp>2018-01-QueryString>?</QueryString-->01</req:LastUpdatedSinceTimestamp>
            <!--LastUpdatedSinceTimestamp>?</LastUpdatedSinceTimestamp--></pws:serviceRequest>
         </serviceRequest>pws:PwsGetClientList>
     </soapenv:Body>
</PwsGetClientList>soapenv:Envelope>
Code Block
languagexml
titleExample 02 - Client is specified
collapsetrue
<soapenv:Envelope      <PwsGetClientList>
 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/>
   <serviceRequest><soapenv:Body>
      <pws:PwsGetClientList>
     <RequestId>1</RequestId>    <pws:serviceRequest>
        <SessionTicket>AcjOqKSXoUYG3qLkrxKQYw==</SessionTicket>    <req:RequestId>1</req:RequestId>
        <ClientIdentity>    <req:SessionTicket>AavFwbZgVb9V4tr3R7BbzQ==</req:SessionTicket>
           <!--ClientId>?</ClientId-->
 <req:ClientIdentity>
              <ClientNumber>Projector PSA<<com:ClientNumber>C000121</com:ClientNumber>
               <!--ClientUid>?</ClientUid--></req:ClientIdentity>
            </ClientIdentity><req:IncludeInactiveFlag>false</req:IncludeInactiveFlag>
            <IncludeInactiveFlag>true</IncludeInactiveFlag></pws:serviceRequest>
        </pws:PwsGetClientList>
   <!--MaxRowsToReturn>?</MaxRowsToReturn-->
            <!--QueryString>?</QueryString-->
            <!--LastUpdatedSinceTimestamp>?</LastUpdatedSinceTimestamp-->
         </serviceRequest>
      </PwsGetClientList>soapenv:Body>
</soapenv:Envelope>

Response Format


Panel
titlePwsClientRs

...


Response Elements


ElementData TypeDescriptionSample Data
ClientsMessagesPwsClientSummaryClient Summary Record(s) retrieved by the service

Response Usage Example(s)

...

languagexml
titleExample 01 - Client is not specified
collapsetrue

...

PwsMessage[]

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


ResponseIdInt32Click here for more information
1
StatusRequestStatusClick here for more information
Ok
ServerTimestampUtcDateTimeClick here for more informaton
2018-01-17T19:52:55.4411759Z
ClientsPwsClientSummary[]The client summary record(s) retrieved by the service

Response Usage Example(s)


Code Block
languagexml
titleExample 01
collapsetrue
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsGetClientListResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <ClientNumber>12938028212<ClientNumber>
                     <ClientUid>1152921504606960351<ClientUid>
 <PwsGetClientListResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages    </ParentClientIdentity>
 xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
             </PwsClientSummary><ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
             </Clients>
         </PwsGetClientListResult>
      </PwsGetClientListResponse>
Code Block
languagexml
titleExample 02 - Client is specified
collapsetrue
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
          <PwsGetClientListResponse>  <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-01-17T19:52:55.4411759Z</ServerTimestampUtc>
      <PwsGetClientListResult>      <a:Clients xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
     <Messages>          <b:PwsClientSummary>
     <PwsMessage>                   <AdditionalErrorText <b:ClientId i:nil="true"/>
                  <ErrorCode i:nil="true"/><b:ClientNumber>C000121</b:ClientNumber>
                  <ErrorNumber i:nil="true"/><b:ClientUid>1152921504606998462</b:ClientUid>
                  <ErrorText i:nil="true"/><b:ClientName>Parent Inc.</b:ClientName>
                  <Type i:nil="true"/><b:InactiveFlag>false</b:InactiveFlag>
                  <ReferenceId1<b:ParentClientIdentity i:nil="true"/>
               </b:PwsClientSummary>
     <ReferenceId2 i:nil="true"/>         <b:PwsClientSummary>
      </PwsMessage>             </Messages><b:ClientId i:nil="true"/>
            <ResponseId>1</ResponseId>      <b:ClientNumber>C000123</b:ClientNumber>
      <Status>Ok</Status>             <ServerTimestampUtc>2017-12-27T18:23:22.3881313Z</ServerTimestampUtc><b:ClientUid>1152921504606998464</b:ClientUid>
            <Clients>      <b:ClientName>Child Inc.</b:ClientName>
        <PwsClientSummary>          <b:InactiveFlag>false</b:InactiveFlag>
        <ClientId i:nil="true"/>         <b:ParentClientIdentity>
         <ClientNumber>Projector PSA</ClientNumber>           <b:ClientId i:nil="true"/>
      <ClientUid>1152921504606961482</ClientUid>               <b:ClientNumber>C000121</b:ClientNumber>
   <ClientName>Projector PSA</ClientName>                   <InactiveFlag>false</InactiveFlag><b:ClientUid>1152921504606998462</b:ClientUid>
                  <ParentClientIdentity i:nil="true"/></b:ParentClientIdentity>
               </b:PwsClientSummary>
            </a:Clients>
         </PwsGetClientListResult>
      </PwsGetClientListResponse>
   </s:Body>
</s:Envelope>

PwsGetClientList - Common Errors and Warnings

ErrorNumberErrorCodeErrorNumberErrorText
104RowCountExceededRow count limit exceeded
10100MaxRowsToReturnOutOfRangeInvalid value specified for MaxRowsToReturn
50045ViewPermissionDeniedPermission denied
57629ClientNotFoundSpecified client not found
57633UnexpectedErrorRetrievingClientListUnexpected error retrieving client list