ValidateMailingAddress

Resource URL

https://OnDemandServer/soap/ValidateMailingAddress

For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.

Example

The following shows a SOAP request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:val="http://www.pb.com/spectrum/services/ValidateMailingAddress">
   <soapenv:Header/>
   <soapenv:Body>
      <val:ValidateMailingAddressRequest>
         <val:options>
            <val:OutputCasing>M</val:OutputCasing>
            <val:IncludeCountryInAddressBlock></val:IncludeCountryInAddressBlock>
            <val:OutputAddressBlocks></val:OutputAddressBlocks>
         </val:options>
         <val:Input>
            <!--Zero or more repetitions:-->
            <val:Address>
               <!--You may enter the following 12 items in any order-->
               <val:AddressLine1>16 Rue Lalande</val:AddressLine1>
               <val:AddressLine2></val:AddressLine2>
               <val:AddressLine3></val:AddressLine3>
               <val:AddressLine4></val:AddressLine4>
               <val:City>Bourg-En-Bresse</val:City>
               <val:StateProvince></val:StateProvince>
               <val:PostalCode>01002</val:PostalCode>
               <val:Country>FRA</val:Country>
               <val:FirmName></val:FirmName>
               <val:AddressLine5></val:AddressLine5>
               <val:InstanceKey></val:InstanceKey>
               <val:user_fields>
                  <!--Zero or more repetitions:-->
                  <val:user_field>
                     <val:name></val:name>
                     <val:value></val:value>
                  </val:user_field>
               </val:user_fields>
            </val:Address>
         </val:Input>
      </val:ValidateMailingAddressRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:ValidateMailingAddressResponse xmlns:ns2="http://spectrum.pb.com/" xmlns:ns3="http://www.pb.com/spectrum/services/ValidateMailingAddress">
         <ns3:Output>
            <ns3:Address>
               <ns3:ProcessedBy>INT</ns3:ProcessedBy>
               <ns3:AddressLine1>16 Rue Lalande</ns3:AddressLine1>
               <ns3:City>Bourg En Bresse Cedex</ns3:City>
               <ns3:StateProvince/>
               <ns3:PostalCode>01002</ns3:PostalCode>
               <ns3:Country>France</ns3:Country>
               <ns3:AdditionalInputData/>
               <ns3:FirmName/>
               <ns3:AddressLine5/>
               <ns3:AddressQuality>V4</ns3:AddressQuality>
               <ns3:Deliverability>4</ns3:Deliverability>
               <ns3:AddressType>S</ns3:AddressType>
               <ns3:user_fields>
                  <ns3:user_field>
                     <ns3:name/>
                     <ns3:value/>
                  </ns3:user_field>
               </ns3:user_fields>
            </ns3:Address>
         </ns3:Output>
      </ns3:ValidateMailingAddressResponse>
   </soap:Body>
</soap:Envelope>