ValidatePhoneNumber - 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

The ValidatePhoneNumber service receives a phone number, validates the number, and gets network information about the number when available.

Resource URL

https://OnDemandServer/soap/ValidatePhoneNumber

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/ValidatePhoneNumber">
   <soapenv:Header />
   <soapenv:Body>
      <val:ValidatePhoneNumberRequest>
         <!--Optional:-->
         <val:options />
         <!--Optional:-->
         <val:Input>
            <!--Zero or more repetitions:-->
            <val:Row>
               <!--You may enter the following 3 items in any order-->
               <!--Optional:-->
               <val:PhoneNumber>+1 (507) 252 3440</val:PhoneNumber>
               <!--Optional:-->
               <val:Country>US</val:Country>
               <!--Optional:-->
               <val:user_fields>
                  <!--Zero or more repetitions:-->
                  <val:user_field>
                     <val:name />
                     <val:value />
                  </val:user_field>
               </val:user_fields>
            </val:Row>
         </val:Input>
      </val:ValidatePhoneNumberRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:ValidatePhoneNumberResponse xmlns:ns3="http://www.pb.com/spectrum/services/ValidatePhoneNumber" xmlns:ns2="http://spectrum.pb.com/">
         <ns3:Output>
            <ns3:Row>
               <ns3:MCC>310</ns3:MCC>
               <ns3:CarrierName>Level 3 Communications, LLC</ns3:CarrierName>
               <ns3:PhoneType>Landline</ns3:PhoneType>
               <ns3:PhoneNumberFormatted>(507) 252-3440</ns3:PhoneNumberFormatted>
               <ns3:CountryCode>US</ns3:CountryCode>
               <ns3:PhoneNumber>+15072523440</ns3:PhoneNumber>
               <ns3:ResultCode>100</ns3:ResultCode>
               <ns3:user_fields>
                  <ns3:user_field>
                     <ns3:name />
                     <ns3:value />
                  </ns3:user_field>
               </ns3:user_fields>
            </ns3:Row>
         </ns3:Output>
      </ns3:ValidatePhoneNumberResponse>
   </soap:Body>
</soap:Envelope>