Versions Compared

Key

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

Overview


This web service inserts or updates a single client based on a detailed client structure (PwsClientDetail). The service returns the identity (PwsClientRef) of the client that has been inserted or updated. The caller can optionally request that the full client detail (PwsClientDetailPwsClientElement) be included in the response.

...


Info
Panel
titlePwsSaveClient Request

Request Elements

...

AcjOqKSXoUYG3qLkrxKQYw==

...

Rate Limiting

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


Panel
titlePwsSaveClient Request

Request Elements


ElementData TypeRequired?DefaultDescriptionSample Data
RequestIdInt32No
Click here for more information
1
SessionTicketString (50)Yes
Click here for more information
AavFwbZgVb9V4tr3R7BbzQ==
ClientPwsClientDetailYes
The detailed client information to be inserted or updated
FullDetailFlagBooleanNofalseIf set to true, include full detailed client element in response
true/false
ParentClientClearFlagBooleanNofalseIf set to true, null out the parent client will be set to null
true/false

Request Usage Example(s)


Code Block
languagexml
titleExample 01New Client
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/">
 <PwsSaveClient>  <soapenv:Header/>
   <soapenv:Body>
   <serviceRequest>   <pws:PwsSaveClient>
         <SessionTicket>AcjOqKSXoUYG3qLkrxKQYw==</SessionTicket><pws:serviceRequest>
            <Client><req:RequestId>1</req:RequestId>
            <req:SessionTicket>AVPtg8pZ/KFy3PWleHmQEw==</req:SessionTicket>
  <ClientName>Acme 1000-01</ClientName>         <req:Client>
      <InactiveFlag>false</InactiveFlag>         <com:ClientName>SOAP UI A</com:ClientName>
    <Address>           <com:InactiveFlag>false</com:InactiveFlag>
       <AddressLine1>123 Main Street</AddressLine1>      <com:Address>
            <AddressLine2>Suite 100</AddressLine2>     <com:AddressLine1>311 South Wacker</com:AddressLine1>
           <Attention>Jane Smith</Attention>       <com:AddressLine2>Suite 2300</com:AddressLine2>
                  <City>Boston<<com:City>Chicago</com:City>
                  <com:CompanyName>SOAP <CompanyName>AcmeUI 1000-01<A</com:CompanyName>
                  <Country>USA<<com:Country>USA</com:Country>
                  <StateOrProvince>MA<<com:StateOrProvince>Illinois</com:StateOrProvince>
                  <ZipOrPostalCode>02114<<com:ZipOrPostalCode>60601</com:ZipOrPostalCode>
               </com:Address>
               <BillingCycleIdentity><com:BillingCycleIdentity>
                  <BillingCycleName>Monthly<<com:BillingCycleName>Monthly</com:BillingCycleName>
               </com:BillingCycleIdentity>
               <BillingInstructions>Bill on<com:BillingInstructions>Please bill at the lastend day of theeach month</com:BillingInstructions>
               <ClientMessage>We appreciate<com:ClientMessage>Thank you for your business!</com:ClientMessage>
               <com:ClientMessagePlain>Thank <ClientMessagePlain>Weyou appreciatefor your business!</com:ClientMessagePlain>
               <InheritAddressFlag>false<<com:InheritAddressFlag>false</com:InheritAddressFlag>
               <InheritBillingCycleFlag>false<<com:InheritBillingCycleFlag>false</com:InheritBillingCycleFlag>
               <InheritBillingInstructionsFlag>false<<com:InheritBillingInstructionsFlag>false</com:InheritBillingInstructionsFlag>
               <InheritClientMessageFlag>false<<com:InheritClientMessageFlag>false</com:InheritClientMessageFlag>
               <InheritInvoiceContentFlag>false<<com:InheritInvoiceContentFlag>false</com:InheritInvoiceContentFlag>
               <InheritInvoiceScopeFlag>false<<com:InheritInvoiceScopeFlag>false</com:InheritInvoiceScopeFlag>
               <InheritInvoiceTemplateFlag>false<<com:InheritInvoiceTemplateFlag>false</com:InheritInvoiceTemplateFlag>
               <InheritPaymentTermFlag>false<<com:InheritPaymentTermFlag>false</com:InheritPaymentTermFlag>
               <InheritPurchaseOrderNumberFlag>false<<com:InheritPurchaseOrderNumberFlag>false</com:InheritPurchaseOrderNumberFlag>
               <InheritStandardRatesFlag>false<<com:InheritStandardRatesFlag>false</com:InheritStandardRatesFlag>
               <InheritTimeBillingTypeFlag>false<<com:InheritTimeBillingTypeFlag>false</com:InheritTimeBillingTypeFlag>
               <InvoiceContent>B<<com:InvoiceContent>B</com:InvoiceContent>
               <InvoiceScope>E<<com:InvoiceScope>E</com:InvoiceScope>
               <InvoiceTemplateIdentity><com:InvoiceTemplateIdentity>
                  <InvoiceTemplateName>A200<<com:InvoiceTemplateName>A200</com:InvoiceTemplateName>
               </com:InvoiceTemplateIdentity>
               <NewClientNumber>C001001</NewClientNumber><com:PaymentTermIdentity>
               <PaymentTermIdentity>                   <PaymentTermName>Net 60</<com:PaymentTermName>Net 30</com:PaymentTermName>
               </com:PaymentTermIdentity>
               <PurchaseOrderNumber>C001000</<com:PurchaseOrderNumber>SOAP UI</com:PurchaseOrderNumber>
               <StandardBillingAdjustedDiscountPercent>0<<com:StandardBillingAdjustedDiscountPercent>10</com:StandardBillingAdjustedDiscountPercent>
               <StandardContractDiscountPercent>0<<com:StandardContractDiscountPercent>5</com:StandardContractDiscountPercent>
               <StandardRateCardIdentity><com:StandardRateCardIdentity>
                  <RateCardName>USA Rate Card</<com:RateCardName>USA</com:RateCardName>
                  <RateCardType>R<<com:RateCardType>R</com:RateCardType>
               </com:StandardRateCardIdentity>
               <TimeBillingType>H<<com:TimeBillingType>H</com:TimeBillingType>
               <UserDefinedFields><com:InheritInvoiceEmailSettingsFlag>false</com:InheritInvoiceEmailSettingsFlag>
               <com:InvoiceEmailSettings>
  <PwsUserDefinedFieldDetail>                <com:EmailFromUserIdentity>
     <UdfName>Account Owner</UdfName>               <com:UserDisplayName>Bettina</com:UserDisplayName>
      <DataType>R</DataType>            </com:EmailFromUserIdentity>
         <ResourceIdentityValue>         <com:EmailInvoiceTemplateIdentity>
               <ResourceDisplayName>Jack Spratt</ResourceDisplayName>     <com:InvoiceTemplateName>E002</com:InvoiceTemplateName>
                   <ResourceReferenceSystemId>E123</ResourceReferenceSystemId></com:EmailInvoiceTemplateIdentity>
                  <com:InvoiceEmailEnabledFlag>true</com:InvoiceEmailEnabledFlag>
  </ResourceIdentityValue>                <com:InvoiceEmailType>W</com:InvoiceEmailType>
     <UdfTreatment>A</UdfTreatment>             <com:Recipients>
      </PwsUserDefinedFieldDetail>               <com:PwsInvoiceEmailRecipient>
</UserDefinedFields>                <InheritInvoiceEmailSettingsFlag>false</InheritInvoiceEmailSettingsFlag>        <com:RecipientType>T</com:RecipientType>
       <InvoiceEmailSettings>                 <com:UserIdentity>
 <EmailFromUserIdentity>                      <UserDisplayName>Bettina Borces</UserDisplayName>   <com:UserDisplayName>SOAP UI</com:UserDisplayName>
                 <UserReferenceSystemId>Partner - 01</UserReferenceSystemId>     </com:UserIdentity>
             </EmailFromUserIdentity>        </com:PwsInvoiceEmailRecipient>
          <EmailInvoiceTemplateIdentity>        </com:Recipients>
             <InvoiceTemplateName>E004</InvoiceTemplateName>  </com:InvoiceEmailSettings>
                </EmailInvoiceTemplateIdentity><com:InheritRenderReceiptsFlag>false</com:InheritRenderReceiptsFlag>
                  <InvoiceEmailEnabledFlag>false</InvoiceEmailEnabledFlag><com:RenderReceiptsFlag>false</com:RenderReceiptsFlag>
                  <InvoiceEmailType>P</InvoiceEmailType><com:AutoApplyAvailableBalanceFlag>false</com:AutoApplyAvailableBalanceFlag>
                <com:InheritAutoApplyAvailableBalanceFlag>false</com:InheritAutoApplyAvailableBalanceFlag>
 <Recipients>              <com:InheritTaxTypesFlag>false</com:InheritTaxTypesFlag>
       <PwsInvoiceEmailRecipient>        <com:InheritRenderedInvoiceFormatFlag>false</com:InheritRenderedInvoiceFormatFlag>
                <RecipientType>T</RecipientType><com:RenderedInvoiceFormat>P</com:RenderedInvoiceFormat>
               <com:Prefix>01312024</com:Prefix>
        <UserIdentity>    </req:Client>
            <req:FullDetailFlag>true</req:FullDetailFlag>
           <UserDisplayName>Jane Doe</UserDisplayName><req:ParentClientClearFlag>false</req:ParentClientClearFlag>
            <req:DisallowDuplicateNameFlag>false</req:DisallowDuplicateNameFlag>
              <UserReferenceSystemId>E124</UserReferenceSystemId><req:FixInheritanceFlag>false</req:FixInheritanceFlag>
         </pws:serviceRequest>
      </pws:PwsSaveClient>
       </UserIdentity>
               </soapenv:Body>
</soapenv:Envelope>


Code Block
languagexml
titleExample 01 - Client without Parent
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>
     </PwsInvoiceEmailRecipient> <pws:PwsSaveClient>
         <pws:serviceRequest>
       </Recipients>     <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AaBd4dMYPbBiEeXoiz50NQ==</InvoiceEmailSettings>req:SessionTicket>
            <req:Client>
  <InheritRenderReceiptsFlag>false</InheritRenderReceiptsFlag>             <com:ClientNumber>C000158</com:ClientNumber>
  <RenderReceiptsFlag>false</RenderReceiptsFlag>             <com:InactiveFlag>false</com:InactiveFlag>
  <AutoApplyAvailableBalanceFlag>false</AutoApplyAvailableBalanceFlag>             <com:Address>
  <InheritAutoApplyAvailableBalanceFlag>false</InheritAutoApplyAvailableBalanceFlag>                <InheritTaxTypesFlag>false</InheritTaxTypesFlag><com:AddressLine1>98 North Washington Street</com:AddressLine1>
                  <com:AddressLine2>400</com:AddressLine2>
<TaxType1Identity>                  <com:Attention>Office <TaxTypeCode>VAT</TaxTypeCode>Administrator</com:Attention>
                  </TaxType1Identity><com:City>Boston</com:City>
            </Client>      <com:CompanyName>Projector PSA</com:CompanyName>
     <FullDetailFlag>true</FullDetailFlag>             <ParentClientClearFlag>false</ParentClientClearFlag><com:Country>USA</com:Country>
           </serviceRequest>       </PwsSaveClient>

Response Format

Panel
titlePwsSaveClientRs

Response Elements

...

2017-12-27T16:48:52.6790058Z

...

Response Usage Example(s)

Code Block
languagexml
titleExample 01
collapsetrue
       <PwsSaveClientResponse>
         <PwsSaveClientResult><com:StateOrProvince>MA</com:StateOrProvince>
                  <com:ZipOrPostalCode>02114</com:ZipOrPostalCode>
               </com:Address>
               <com:BillingCycleIdentity>
                  <com:BillingCycleName>Monthly</com:BillingCycleName>
               </com:BillingCycleIdentity>
               <com:BillingInstructions>Please bill on the last day of the month.</com:BillingInstructions>
               <com:ClientMessage>We appreciate your business.</com:ClientMessage>
               <com:ClientMessagePlain>We appreciate your business.</com:ClientMessagePlain>
               <com:InheritAddressFlag>false</com:InheritAddressFlag>
               <com:InheritBillingCycleFlag>false</com:InheritBillingCycleFlag>
               <com:InheritBillingInstructionsFlag>false</com:InheritBillingInstructionsFlag>
               <com:InheritClientMessageFlag>false</com:InheritClientMessageFlag>
               <com:InheritInvoiceContentFlag>false</com:InheritInvoiceContentFlag>
               <com:InheritInvoiceScopeFlag>false</com:InheritInvoiceScopeFlag>
               <com:InheritInvoiceTemplateFlag>false</com:InheritInvoiceTemplateFlag>
               <com:InheritPaymentTermFlag>false</com:InheritPaymentTermFlag>
               <com:InheritPurchaseOrderNumberFlag>false</com:InheritPurchaseOrderNumberFlag>
               <com:InheritStandardRatesFlag>false</com:InheritStandardRatesFlag>
               <com:InheritTimeBillingTypeFlag>false</com:InheritTimeBillingTypeFlag>
               <com:InvoiceContent>B</com:InvoiceContent>
               <com:InvoiceScope>E</com:InvoiceScope>
               <com:InvoiceTemplateIdentity>
                  <com:InvoiceTemplateName>A200</com:InvoiceTemplateName>
               </com:InvoiceTemplateIdentity>
               <com:PaymentTermIdentity>
                  <com:PaymentTermName>Net 30</com:PaymentTermName>
               </com:PaymentTermIdentity>
               <com:PurchaseOrderNumber>PPSA</com:PurchaseOrderNumber>
               <com:StandardBillingAdjustedDiscountPercent>15</com:StandardBillingAdjustedDiscountPercent>
               <com:StandardContractDiscountPercent>10</com:StandardContractDiscountPercent>
               <com:StandardRateCardIdentity>
                  <com:RateCardName>USA</com:RateCardName>
                  <com:RateCardType>R</com:RateCardType>
               </com:StandardRateCardIdentity>
               <com:TimeBillingType>H</com:TimeBillingType>
               <com:UserDefinedFields>
                  <com:PwsUserDefinedFieldDetail>
                     <com:UdfName>CL-Text</com:UdfName>
                     <com:TextValue>Updated on November 6th, 2023</com:TextValue>
                  </com:PwsUserDefinedFieldDetail>
               </com:UserDefinedFields>
               <com:InheritInvoiceEmailSettingsFlag>false</com:InheritInvoiceEmailSettingsFlag>
               <com:InvoiceEmailSettings>
                  <com:EmailFromUserIdentity>
                     <com:UserDisplayName>Bettina</com:UserDisplayName>
                  </com:EmailFromUserIdentity>
                  <com:EmailInvoiceTemplateIdentity>
                     <com:InvoiceTemplateName>E002</com:InvoiceTemplateName>
                  </com:EmailInvoiceTemplateIdentity>
                  <com:InvoiceEmailEnabledFlag>true</com:InvoiceEmailEnabledFlag>
                  <com:InvoiceEmailType>W</com:InvoiceEmailType>
                  <com:Recipients>
                     <com:PwsInvoiceEmailRecipient>
                        <com:RecipientType>T</com:RecipientType>
                        <com:UserIdentity>
                           <com:UserDisplayName>Template Client</com:UserDisplayName>
                        </com:UserIdentity>
                     </com:PwsInvoiceEmailRecipient>
                  </com:Recipients>
               </com:InvoiceEmailSettings>
               <com:InheritRenderReceiptsFlag>false</com:InheritRenderReceiptsFlag>
               <com:RenderReceiptsFlag>true</com:RenderReceiptsFlag>
               <com:AutoApplyAvailableBalanceFlag>false</com:AutoApplyAvailableBalanceFlag>
               <com:InheritAutoApplyAvailableBalanceFlag>false</com:InheritAutoApplyAvailableBalanceFlag>
               <com:InheritTaxTypesFlag>true</com:InheritTaxTypesFlag>
               <com:InheritRenderedInvoiceFormatFlag>false</com:InheritRenderedInvoiceFormatFlag>
               <com:RenderedInvoiceFormat>P</com:RenderedInvoiceFormat>
               <com:Prefix>11062023</com:Prefix>
            </req:Client>
            <req:FullDetailFlag>true</req:FullDetailFlag>
            <req:ParentClientClearFlag>false</req:ParentClientClearFlag>
            <req:DisallowDuplicateNameFlag>true</req:DisallowDuplicateNameFlag>
            <req:FixInheritanceFlag>false</req:FixInheritanceFlag>
         </pws:serviceRequest>
      </pws:PwsSaveClient>
   </soapenv:Body>
</soapenv:Envelope>


Code Block
languagexml
titleExample 02 - Client with parent
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:PwsSaveClient>
         <pws:serviceRequest>
            <req:RequestId>2</req:RequestId>
            <req:SessionTicket>AavFwbZgVb9V4tr3R7BbzQ==</req:SessionTicket>
            <req:Client>
               <com:ClientName>Web Services Inc. - extended</com:ClientName>
               <com:InactiveFlag>false</com:InactiveFlag>
               <com:ParentClientIdentity>
                  <com:ClientNumber>C000124</com:ClientNumber>
               </com:ParentClientIdentity>
               <com:InheritAddressFlag>true</com:InheritAddressFlag>
               <com:InheritBillingCycleFlag>true</com:InheritBillingCycleFlag>
               <com:InheritBillingInstructionsFlag>true</com:InheritBillingInstructionsFlag>
               <com:InheritClientMessageFlag>true</com:InheritClientMessageFlag>
               <com:InheritInvoiceContentFlag>true</com:InheritInvoiceContentFlag>
               <com:InheritInvoiceScopeFlag>true</com:InheritInvoiceScopeFlag>
               <com:InheritInvoiceTemplateFlag>true</com:InheritInvoiceTemplateFlag>
               <com:InheritPaymentTermFlag>true</com:InheritPaymentTermFlag>
               <com:InheritPurchaseOrderNumberFlag>true</com:InheritPurchaseOrderNumberFlag>
               <com:InheritStandardRatesFlag>true</com:InheritStandardRatesFlag>
               <com:InheritTimeBillingTypeFlag>true</com:InheritTimeBillingTypeFlag>
               <com:UserDefinedFields>
                  <com:PwsUserDefinedFieldDetail>
                     <com:UdfName>CL-Date</com:UdfName>
                     <com:DateValue>2018-02-28T00:00:00Z</com:DateValue>
                  </com:PwsUserDefinedFieldDetail>
                  <com:PwsUserDefinedFieldDetail>
                     <com:UdfName>CL-Text</com:UdfName>
                     <com:TextValue>Child of Client C00124</com:TextValue>
                  </com:PwsUserDefinedFieldDetail>
               </com:UserDefinedFields>
               <com:InheritInvoiceEmailSettingsFlag>true</com:InheritInvoiceEmailSettingsFlag>
               <com:InheritRenderReceiptsFlag>true</com:InheritRenderReceiptsFlag>
               <com:InheritAutoApplyAvailableBalanceFlag>true</com:InheritAutoApplyAvailableBalanceFlag>
               <com:InheritTaxTypesFlag>true</com:InheritTaxTypesFlag>
            </req:Client>
            <req:FullDetailFlag>true</req:FullDetailFlag>
            <req:ParentClientClearFlag>false</req:ParentClientClearFlag>
         </pws:serviceRequest>
      </pws:PwsSaveClient>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


Panel
titlePwsSaveClientRs

Response Elements


ElementData TypeDescriptionSample Data
MessagesPwsMessage[]

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


ResponseIdInt32Click here for more information0
StatusRequestStatusClick here for more informationOk
ServerTimestampUtcDateTimeClick here for more information
2017-12-27T16:48:52.6790058Z
ClientPwsClientElementThe complete set of information about the client
ClientIdentityPwsClientRefThe unique keys used to identify the client

Response Usage Example(s)


Code Block
languagexml
titleExample 01
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsSaveClientResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsSaveClientResult 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/">2</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-01-17T20:37:34.987952Z</ServerTimestampUtc>
            <a:Client xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:ClientDetail>
                  <b:ClientId i:nil="true"/>
                  <b:ClientNumber>C000127</b:ClientNumber>
                  <b:ClientUid>1152921504606998468</b:ClientUid>
                  <b:ClientName>Web Services Inc. - extended</b:ClientName>
                  <b:InactiveFlag>false</b:InactiveFlag>
                  <b:ParentClientIdentity>
                     <b:ClientId i:nil="true"/>
                     <b:ClientNumber>C000124</b:ClientNumber>
                     <b:ClientUid>1152921504606998465</b:ClientUid>
                  </b:ParentClientIdentity>
                  <b:Address>
                     <b:AddressLine1>123 Main Street</b:AddressLine1>
                    <Messages i:nil="true"/><b:AddressLine2>Suite 100</b:AddressLine2>
                 <ResponseId>0</ResponseId>    <b:Attention>Billing</b:Attention>
        <Status>Ok</Status>             <ServerTimestampUtc>2017-12-27T16:48:52.6790058Z</ServerTimestampUtc><b:City>Boston</b:City>
                 <Client>    <b:CompanyName>Acme Inc.</b:CompanyName>
          <ClientDetail>           <b:Country>USA</b:Country>
       <ClientId i:nil="true"/>             <b:StateOrProvince>MA</b:StateOrProvince>
     <ClientNumber>C001001</ClientNumber>                <b:ZipOrPostalCode>02114</b:ZipOrPostalCode>
  <ClientUid>1152921504606989819</ClientUid>                </b:Address>
  <ClientName>Acme 1000-01</ClientName>               <b:BillingCycleIdentity>
   <InactiveFlag>false</InactiveFlag>                  <b:BillingCycleId <ParentClientIdentity i:nil="true"/>
                  <Address>   <b:BillingCycleName>Monthly</b:BillingCycleName>
                  <AddressLine1>123  Main Street</AddressLine1><b:BillingCycleUid>1152921504606853180</b:BillingCycleUid>
                  </b:BillingCycleIdentity>
  <AddressLine2>Suite 100</AddressLine2>               <b:BillingInstructions>Please bill on the last day of <Attention>Janethe Smith</Attention>month.</b:BillingInstructions>
                  <b:ClientMessage>We appreciate your <City>Boston</City>business.</b:ClientMessage>
                  <b:ClientMessagePlain>We appreciate  <CompanyName>Acme 1000-01</CompanyName>your business.</b:ClientMessagePlain>
                     <Country>USA</Country><b:InheritAddressFlag>true</b:InheritAddressFlag>
                     <StateOrProvince>MA</StateOrProvince><b:InheritBillingCycleFlag>true</b:InheritBillingCycleFlag>
                     <ZipOrPostalCode>02114</ZipOrPostalCode><b:InheritBillingInstructionsFlag>true</b:InheritBillingInstructionsFlag>
                  </Address>
   <b:InheritClientMessageFlag>true</b:InheritClientMessageFlag>
              <BillingCycleIdentity>    <b:InheritInvoiceContentFlag>true</b:InheritInvoiceContentFlag>
                 <BillingCycleId i:nil="true"/><b:InheritInvoiceScopeFlag>true</b:InheritInvoiceScopeFlag>
                  <b:InheritInvoiceTemplateFlag>true</b:InheritInvoiceTemplateFlag>
  <BillingCycleName>Monthly</BillingCycleName>                <b:InheritPaymentTermFlag>true</b:InheritPaymentTermFlag>
     <BillingCycleUid>1152921504606853180</BillingCycleUid>             <b:InheritPurchaseOrderNumberFlag>true</b:InheritPurchaseOrderNumberFlag>
     </BillingCycleIdentity>             <b:InheritStandardRatesFlag>true</b:InheritStandardRatesFlag>
     <BillingInstructions>Bill    on the last day of the month</BillingInstructions>   <b:InheritTimeBillingTypeFlag>true</b:InheritTimeBillingTypeFlag>
               <ClientMessage>We appreciate your business!</ClientMessage> <b:InvoiceContent>B</b:InvoiceContent>
                  <b:InvoiceScope>E</b:InvoiceScope>
<ClientMessagePlain>We appreciate your business!</ClientMessagePlain>               <b:InvoiceTemplateIdentity>
   <InheritAddressFlag>false</InheritAddressFlag>                   <InheritBillingCycleFlag>false</InheritBillingCycleFlag><b:InvoiceTemplateId i:nil="true"/>
                  <InheritBillingInstructionsFlag>false</InheritBillingInstructionsFlag>   <b:InvoiceTemplateName>A200</b:InvoiceTemplateName>
               <InheritClientMessageFlag>false</InheritClientMessageFlag>      <b:InvoiceTemplateUid>1152921504606878904</b:InvoiceTemplateUid>
            <InheritInvoiceContentFlag>false</InheritInvoiceContentFlag>      </b:InvoiceTemplateIdentity>
            <InheritInvoiceScopeFlag>false</InheritInvoiceScopeFlag>      <b:NewClientNumber i:nil="true"/>
           <InheritInvoiceTemplateFlag>false</InheritInvoiceTemplateFlag>        <b:PaymentTermIdentity>
          <InheritPaymentTermFlag>false</InheritPaymentTermFlag>           <b:PaymentTermId i:nil="true"/>
      <InheritPurchaseOrderNumberFlag>false</InheritPurchaseOrderNumberFlag>               <b:PaymentTermName>Net 60</b:PaymentTermName>
  <InheritStandardRatesFlag>false</InheritStandardRatesFlag>                   <InheritTimeBillingTypeFlag>false</InheritTimeBillingTypeFlag><b:PaymentTermUid>1152921504606856055</b:PaymentTermUid>
                  <InvoiceContent>B<</InvoiceContent>b:PaymentTermIdentity>
                  <InvoiceScope>E</InvoiceScope><b:PurchaseOrderNumber>WS-001</b:PurchaseOrderNumber>
                  <InvoiceTemplateIdentity><b:StandardBillingAdjustedDiscountPercent>15</b:StandardBillingAdjustedDiscountPercent>
                  <b:StandardContractDiscountPercent>10</b:StandardContractDiscountPercent>
  <InvoiceTemplateId i:nil="true"/>                <b:StandardRateCardIdentity>
        <InvoiceTemplateName>A200</InvoiceTemplateName>             <b:RateCardId i:nil="true"/>
       <InvoiceTemplateUid>1152921504606878904</InvoiceTemplateUid>              <b:RateCardName>USA Rate Card</b:RateCardName>
  </InvoiceTemplateIdentity>                   <NewClientNumber i:nil="true"/><b:RateCardType>R</b:RateCardType>
                  <PaymentTermIdentity>   <b:RateCardUid>1152921504606860819</b:RateCardUid>
                  <PaymentTermId i:nil="true"/></b:StandardRateCardIdentity>
                     <PaymentTermName>Net 60</PaymentTermName><b:TimeBillingType>H</b:TimeBillingType>
                     <PaymentTermUid>1152921504606856055</PaymentTermUid><b:Timestamp>AAAAAA97Yvs=</b:Timestamp>
                  </PaymentTermIdentity>
      <b:UserDefinedFields>
           <PurchaseOrderNumber>C001000</PurchaseOrderNumber>          <b:PwsUserDefinedFieldDetail>
        <StandardBillingAdjustedDiscountPercent>0</StandardBillingAdjustedDiscountPercent>                <b:UdfId i:nil="true"/>
 <StandardContractDiscountPercent>0</StandardContractDiscountPercent>                   <StandardRateCardIdentity>    <b:UdfName>CL-Date</b:UdfName>
                 <RateCardId i:nil="true"/>      <b:UdfUid>1152921504606856792</b:UdfUid>
               <RateCardName>USA Rate Card</RateCardName>       <b:BooleanValue i:nil="true"/>
             <RateCardType>R</RateCardType>           <b:DataType>D</b:DataType>
          <RateCardUid>1152921504606860819</RateCardUid>                   </StandardRateCardIdentity><b:DateValue>2018-02-28T00:00:00Z</b:DateValue>
                  <TimeBillingType>H</TimeBillingType>      <b:IntegerValue i:nil="true"/>
           <Timestamp>AAAAAA61TDI=</Timestamp>             <b:ResourceIdentityValue i:nil="true"/>
    <UserDefinedFields>                    <b:TextValue  <PwsUserDefinedFieldDetail>i:nil="true"/>
                        <b:UdfTreatment>A</b:UdfTreatment>
<UdfId i:nil="true"/>                       <b:StoplightValues/>
 <UdfName>Account Owner</UdfName>                         <UdfUid>1152921504606856794</UdfUid><b:NumericValue i:nil="true"/>
                        <BooleanValue<b:RelationValue i:nil="true"/>
                        <DataType>R</DataType></b:PwsUserDefinedFieldDetail>
                        <DateValue i:nil="true"/><b:PwsUserDefinedFieldDetail>
                        <IntegerValue<b:UdfId i:nil="true"/>
                        <ResourceIdentityValue><b:UdfName>CL-Text</b:UdfName>
                        <b:UdfUid>1152921504606856795</b:UdfUid>
            <ResourceDisplayName>Jack   Spratt</ResourceDisplayName>         <b:BooleanValue i:nil="true"/>
                 <ResourceId i:nil="true"/>       <b:DataType>T</b:DataType>
                       <ResourceReferenceSystemId>E123</ResourceReferenceSystemId> <b:DateValue i:nil="true"/>
                         <ResourceUid>1152921504607111573</ResourceUid><b:IntegerValue i:nil="true"/>
                        </ResourceIdentityValue><b:ResourceIdentityValue i:nil="true"/>
                         <TextValue i:nil="true"/><b:TextValue>Child of Client C00124</b:TextValue>
                        <UdfTreatment>A<<b:UdfTreatment>A</b:UdfTreatment>
                        <StoplightValues<b:StoplightValues/>
                        <NumericValue<b:NumericValue i:nil="true"/>
                        <RelationValue<b:RelationValue i:nil="true"/>
                     </b:PwsUserDefinedFieldDetail>
                  </b:UserDefinedFields>
                  <InheritInvoiceEmailSettingsFlag>false<<b:InheritInvoiceEmailSettingsFlag>true</b:InheritInvoiceEmailSettingsFlag>
                  <InvoiceEmailSettings><b:InvoiceEmailSettings>
                     <EmailFromUserIdentity><b:EmailFromUserIdentity>
                        <UserDisplayName>Bettina<b:UserDisplayName>Betty Borces<Smith</b:UserDisplayName>
                        <UserId<b:UserId i:nil="true"/>
                        <UserReferenceSystemId>Partner<b:UserReferenceSystemId>Partner - 01</b:UserReferenceSystemId>
                        <UserUid>1152921504607011056<<b:UserUid>1152921504607011056</b:UserUid>
                     </b:EmailFromUserIdentity>
                     <EmailInvoiceTemplateIdentity><b:EmailInvoiceTemplateIdentity>
                        <InvoiceTemplateId<b:InvoiceTemplateId i:nil="true"/>
                        <InvoiceTemplateName>E004<<b:InvoiceTemplateName>E004</b:InvoiceTemplateName>
                        <InvoiceTemplateUid>1152921504606878909<<b:InvoiceTemplateUid>1152921504606878909</b:InvoiceTemplateUid>
                     </b:EmailInvoiceTemplateIdentity>
                     <InvoiceEmailEnabledFlag>false<<b:InvoiceEmailEnabledFlag>true</b:InvoiceEmailEnabledFlag>
                     <InvoiceEmailType>P<<b:InvoiceEmailType>W</b:InvoiceEmailType>
                     <Recipients><b:Recipients>
                        <PwsInvoiceEmailRecipient><b:PwsInvoiceEmailRecipient>
                           <RecipientType>T<<b:RecipientType>T</b:RecipientType>
                           <UserIdentity><b:UserIdentity>
                              <UserDisplayName>Jane<b:UserDisplayName>John Doe</b:UserDisplayName>
                              <UserId<b:UserId i:nil="true"/>
                              <UserReferenceSystemId>E124<<b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
                              <UserUid>1152921504607112368<<b:UserUid>1152921504607054221</b:UserUid>
                           </b:UserIdentity>
                        </b:PwsInvoiceEmailRecipient>
                     </b:Recipients>
                  </b:InvoiceEmailSettings>
                  <InheritRenderReceiptsFlag>false<<b:InheritRenderReceiptsFlag>true</b:InheritRenderReceiptsFlag>
                  <RenderReceiptsFlag>false<<b:RenderReceiptsFlag>true</b:RenderReceiptsFlag>
                  <AutoApplyAvailableBalanceFlag>false<<b:AutoApplyAvailableBalanceFlag>true</b:AutoApplyAvailableBalanceFlag>
                  <InheritAutoApplyAvailableBalanceFlag>false<<b:InheritAutoApplyAvailableBalanceFlag>true</b:InheritAutoApplyAvailableBalanceFlag>
                  <InheritTaxTypesFlag>false<<b:InheritTaxTypesFlag>true</b:InheritTaxTypesFlag>
                  <TaxType1Identity><b:TaxType1Identity>
                     <TaxTypeCode>VAT<<b:TaxTypeCode>VAT</b:TaxTypeCode>
                     <TaxTypeId<b:TaxTypeId i:nil="true"/>
                     <TaxTypeUid>1152921504606868258<<b:TaxTypeUid>1152921504606868258</b:TaxTypeUid>
                  </b:TaxType1Identity>
                  <TaxType2Identity<b:TaxType2Identity i:nil="true"/>
                  <TaxType3Identity<b:TaxType3Identity i:nil="true"/>
               </b:ClientDetail>
            </a:Client>
            <ClientIdentity><a:ClientIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <ClientId<b:ClientId i:nil="true"/>
               <ClientNumber>C001001<<b:ClientNumber>C000127</b:ClientNumber>
               <ClientUid>1152921504606989819<<b:ClientUid>1152921504606998468</b:ClientUid>
            </a:ClientIdentity>
         </PwsSaveClientResult>
      </PwsSaveClientResponse>
   </s:Body>
</s:Envelope>

PwsSaveClient - Common Errors and Warnings

...

ErrorNumberErrorCodeErrorText
105AtLeastOneItemNotFoundAt least one requested item was not found. The remaining items, if any, were returned.
11038NoClientsSpecifiedNo clients were specified for retrieval by this request.
11040MaximumClientIdentitiesExceededPlease specify between 1 and 100 client identities for retrieval.
11042InappropriateStandardRateCardSpecifiedThe specified standard rate card is not appropriate (it is likely an RDC rate card).
50045ViewPermissionDeniedYou do not have permission to view this item.
57631ClientNotSpecifiedA specified client identity was incomplete. Each client identity must specify either a client id, client uid or client number.
57634UnexpectedErrorRetrievingClientsThere was an unexpected error while trying to retrieve a client.

...