Search code examples
javaxmljsonweb-servicesapache-axis

I can't to return json objects using Axis2


I can't to return json objects using Axis2 like web service. I added the lines of builder and messageFormatter in my web2.xml for the support json but always that access my web service to test return in xml.

I use the url to test my action: http://server.com:8080/webservice/services/classe/action?response=application/json but no success.

Any idea?

Thank you


Solution

  • Solve your problem exporting the wso2dynamic response (wso2dynamic-response-1.5.jar and wso2dynamic-response.mar) to modules folder (WEB/INF/modules).