开发者

How to customize response structure when working with Axis2 REST web services?

开发者 https://www.devze.com 2022-12-12 05:43 出处:网络
I\'m using Axis2 1.4.1 to expose RESTful web services. I need to return xml structure (or any other for example ATOM xml or RSS xml or JSON structure) of my choosing. Axis2 out of the box returns it\'

I'm using Axis2 1.4.1 to expose RESTful web services. I need to return xml structure (or any other for example ATOM xml or RSS xml or JSON structure) of my choosing. Axis2 out of the box returns it's own default xml structure (which is SOAP like). The question is what is the right way to customize this. Is it via Handlers? Is it via Data Binding?开发者_Python百科 Is it via custom MessageFormatter? What is the way and how?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消