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)
Syntaxpublic 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:
CheckPostalCodeResultTrue 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)
ExceptionsException | Condition |
---|
FaultException | Fault may contain the following values: ErrorCode.Error: An unspecified error happened in the server |
See Also