Click or drag to resize

BookingWcfServiceCheckPostalCode Method

Checks if a postal code is valid

Namespace:  Tse.EasyBook.Server.WcfContracts.WebClient
Assembly:  Tse.EasyBook.Server.WcfContracts (in Tse.EasyBook.Server.WcfContracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public CheckPostalCodeResult CheckPostalCode(
	string code,
	string isoCountryCode
)

Parameters

code
Type: SystemString
Postal code string
isoCountryCode
Type: SystemString
Country code according to the ISO 3166-1 alpha 2 standard

Return Value

Type: CheckPostalCodeResult
True if valid, False if invalid. Also returns a list of matching postal code/cities. For countries like germany more than 1 city can share a postal code!

Implements

IBookingWcfServiceCheckPostalCode(String, String)
Exceptions
ExceptionCondition
FaultExceptionFault may contain the following values:

ErrorCode.Error: An unspecified error happened in the server

See Also