ValidateMailingAddressPremium - Spectrum_OnDemand - Latest

Spectrum OnDemand Web Services (SOAP)

Product type
Software
Portfolio
Verify
Product family
Product
Spectrum OnDemand
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (SOAP)
First publish date
2006

Resource URL

https://OnDemandServer/soap/ValidateMailingAddressPremium

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

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:ValidateMailingAddressPremiumResponse xmlns:ns2="http://spectrum.pb.com/" xmlns:ns3="http://www.pb.com/spectrum/services/ValidateMailingAddressPremium">
         <ns3:Output>
            <ns3:Address>
               <ns3:CountryLevel>A</ns3:CountryLevel>
               <ns3:ProcessedBy>INTH</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:Country.Result>S</ns3:Country.Result>
               <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:Latitude>46.203939312800664</ns3:Latitude>
               <ns3:Longitude>5.222980635742331</ns3:Longitude>
               <ns3:LocationPrecision>1</ns3:LocationPrecision>
               <ns3:user_fields>
                  <ns3:user_field>
                     <ns3:name/>
                     <ns3:value/>
                  </ns3:user_field>
               </ns3:user_fields>
            </ns3:Address>
         </ns3:Output>
      </ns3:ValidateMailingAddressPremiumResponse>
   </soap:Body>
</soap:Envelope>