web service and freemarker template integration