Web service modified to add the template output