我无法使用Axis2返回json对象 [英] I can't to return json objects using Axis2

查看:345
本文介绍了我无法使用Axis2返回json对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法像Web服务一样使用Axis2返回json对象.我在web2.xml中添加了支持json的builder和messageFormatter行,但始终会访问我的Web服务以测试xml中的返回值.

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.

我使用url测试我的操作: http://server.com:8080/webservice/services/classe/action?response=application/json ,但没有成功.

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

有什么主意吗?

谢谢

推荐答案

解决将wso2dynamic响应(wso2dynamic-response-1.5.jar和wso2dynamic-response.mar)导出到modules文件夹(WEB/INF/modules)的问题.

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

这篇关于我无法使用Axis2返回json对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆