add xml support for restful service