ValidateMailingAddressPro

Resource URL

https://OnDemandServer/soap/ValidateMailingAddressPro

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/ValidateMailingAddressPro">
   <soapenv:Header/>
   <soapenv:Body>
      <val:ValidateMailingAddressProRequest>
         <val:options>
               <val:OutputScript></val:OutputScript>
               <val:OutputCountryFormat>E</val:OutputCountryFormat>
               <val:KeepMultimatch></val:KeepMultimatch>
               <val:MaximumResults></val:MaximumResults>
               <val:OutputCasing>M</val:OutputCasing>
               <val:OutputRecordType></val:OutputRecordType>
               <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></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:ValidateMailingAddressProRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:ValidateMailingAddressProResponse xmlns:ns2="http://spectrum.pb.com/" xmlns:ns3="http://www.pb.com/spectrum/services/ValidateMailingAddressPro">
         <ns3:Output>
            <ns3:Address>
               <ns3:ProcessedBy>INT</ns3:ProcessedBy>
              <ns3:AddressLine1>16 Rue Lalande</ns3:AddressLine1>
               <ns3:City>Bourg En Bresse</ns3:City>
               <ns3:StateProvince/>
               <ns3:PostalCode/>
               <ns3:Country>France</ns3:Country>
               <ns3:FirmName/>
               <ns3:AddressBlock1>16 Rue Lalande</ns3:AddressBlock1>
               <ns3:AddressBlock2>Bourg En Bresse</ns3:AddressBlock2>
               <ns3:AddressBlock3>France</ns3:AddressBlock3>
               <ns3:AddressLine5/>
               <ns3:AddressQuality>V5</ns3:AddressQuality>
               <ns3:Deliverability>5</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:ValidateMailingAddressProResponse>
   </soap:Body>
</soap:Envelope>