在线急等关于xfire 传递参数MAP问题 .aegis 配置问题

whb851423 2014-06-24 07:30:11

public interface RedCollarService {


public String updateUseVIP(Map userVip,String actionType);

// public String saveUseVIPALL(List userList);

// public String saveClothingSize(Map map);

// public String saveClothingSize(List cllist);

public String test();
}

实现类

public class RedCollarServiceImpl implements RedCollarService{
@Override
public String updateUseVIP(Map userVip, String actionType) {

String vl = null;
WebBusiness wb = new WebBusiness(ApplicationContent.getServletContent());
if("ADD".equals(actionType)){
if(wb.saveVipUser(userVip)==1){
vl = "1";
}else{
vl = "0";
}
} else if("UPDATE".equals(actionType)){
if(wb.updateVipUser(userVip)==1){
vl = "1";
}else{
vl = "0";
}
}
return vl;
}
public String test() {
return "123456"; //To change body of implemented methods use File | Settings | File Templates.
}
}



由于传递参数,用到映射,新建RedCollarService.aegis.xml
<?xml version="1.0" encoding="UTF-8"?>
<mappings>
<mapping>
<method name="updateUseVIP">
<parameter index="0" componentType="java.util.Map"/>
<parameter index="1" componentType="java.lang.String" />
</method>
</mapping>
</mappings>


在执行调用报错
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: java.lang.String cannot be cast to java.util.Map
求大神帮组
...全文
164 2 打赏 收藏 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
whb851423 2014-06-24
  • 打赏
  • 举报
回复
还是没有人吗
whb851423 2014-06-24
  • 打赏
  • 举报
回复
没人吗???????????

51,407

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧