Provided Web Service
This Web Service allows other web applications to retrieve holidays based on different criteria. Below outlines what holidays are considered and what web methods are provided.
...
List<Holiday> getHolidaysInRange(Date startDate, Date endDate, boolean includeStartAndEnd, boolean isObserved, Optional String type) - gets all holidays within the given time frame, using the includeStartAndEnd param to determine whether or not to include the start and end dates among the return values.
Grails
This web service was developed in a Grails application. This was a fairly straightforward process, only requiring a couple of things in order to get the service running after installation of Grails:
- Installation of the cxf plugin
- This plugin is installed by using the line "compile ':cxf:0.9.0'" in the grails-app/conf/BuildConfig.groovy file
- Creating the service file using the Grails script "grails create-service edu.hawaii.its.holidayWebService.HolidayService"
- Adding the line "static expose=['cxf']" at the beginning of the class, this allows each method to be treated as a web method.