问题
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
回答1:
Solve your problem exporting the wso2dynamic response (wso2dynamic-response-1.5.jar and wso2dynamic-response.mar) to modules folder (WEB/INF/modules).
来源:https://stackoverflow.com/questions/14656147/i-cant-to-return-json-objects-using-axis2