2014.11.22 - added rest service to support both xml and json response