The Sample Code is Giving Strange Errors or is Crashing!

Most likely, the sample code cannot connect to Service Objects. Many environments will not allow you…

Most likely, the sample code cannot connect to Service Objects. Many environments will not allow you to connect out on port 80 or will clip out XML data from these requests/responses.

The easiest way to check for this is to open a browser on the machine running the sample code. In your browser, navigate to: https://trial.serviceobjects.com/pe2 

Then try to run one of the operations with your trial key. If you get a browser error, or get no data back, then the sample code isn’t able to connect, either. Contact your systems administrator to resolve why you are not able to connect to Service Objects.

Can Phone Exchange 2 give me information for Canadian phone numbers?

Yes. Phone Exchange can verify the telco exchange of any telephone number combination…

Yes. Phone Exchange can verify the telco exchange of any telephone number combination in the North American Numbering Plan.

Phone Exchange 2 doesn’t find any data for my phone number!

You may have mistyped your phone number. A valid phone number will always return exchange information…

You may have mistyped your phone number. A valid phone number will always return exchange information, whether it is wireless or landline, connected or disconnected. If you are certain that the number is valid and that it is part of the North American Numbering Plan, then please let us know at support@serviceobjects.com.

Why does Phone Exchange 2 accept a 6 or 7 digit number?

When a single provider match is not enough, providing a 6 or 7 digit (area code + suffix) number…

When a single provider match is not enough, providing a 6 or 7 digit (area code + suffix) number will return a list of known providers that can be used for custom logic. If multiple provider matches for a 6 digit number are potentially problematic for your use case, then a simple solution is to check the length of the number before calling the Phone Exchange service and rejecting any numbers that are not 10 digits in length.

References

  1. DOTS Phone Exchange 2 Now Offers a Global Phone Validation Solution