webservice: fix template reference
webservice: fix entity loading issue with soap