Introduction
If you don't know what is a web service, learn more here. You can use the web service to call Enrico from any programming language. Anyway consider using JSON interface for Javascript or iCalendar interface.
WSDL
Latest version of WSDL for Enrico is here.
Details of Operations
To see details of each operation from wsdl, click here.
Examples
Remarks to data types
Data returned from Enrico web service are always UTF-8 encoded.
DateType:
- day - min. value: 1, max value: 31.
- month - min. value: 1 (January), max value: 12 (December).
- year - e.g. 1945, 2012, 32767
- dayOfWeek - 1 (Monday), 2 (Tuesday) ... , 6 (Saturday), 7 (Sunday)
PublicHolidayCollectionType, IsPublicHolidayType, SupportedCountriesType:
- error - if this is set to an non-empty string there was an error serving web service call
getPublicHolidaysForMonthRequest:
- month - min. value: 1 (January), max value: 12 (December).
- year - e.g. 1945, 2012, 32767
- country - countryCode returned from getSupportedCountries. See 'Country Code' column.
- region - one from the regions returned from getSupportedCountries. See 'Regions' column. If there is no region defined for the country, this value is ignored by Enrico Service.
getPublicHolidaysForYearRequest:
- year - e.g. 1945, 2012, 32767
- country - countryCode returned from getSupportedCountries. See 'Country Code' column.
- region - one from the regions returned from getSupportedCountries. See 'Regions' column. If there is no region defined for the country, this value is ignored by Enrico Service.
getPublicHolidaysForDateRangeRequest:
- fromDate - start date (including this date) to get public holidays. dayOfWeek is ignored.
- toDate - end date (including this date) to get public holidays. dayOfWeek is ignored.
- country - countryCode returned from getSupportedCountries. See 'Country Code' column.
- region - one from the regions returned from getSupportedCountries. See 'Regions' column. If there is no region defined for the country, this value is ignored by Enrico Service.
isPublicHolidayRequest:
- date - date to check if it is public holiday. dayOfWeek is ignored.
- country - countryCode returned from getSupportedCountries. See 'Country Code' column.
- region - one from the regions returned from getSupportedCountries. See 'Regions' column. If there is no region defined for the country, this value is ignored by Enrico Service.
|
|