weixin_38357782 2018-05-24 03:39 采纳率: 0%
浏览 2254
已结题

webservice : Unexpected wrapper element

问题描述:
在一个webservice服务中写了两个接口,在客户端调用第二个接口的时候出了问题
错误提示
[org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://ws.oa.dsp.org}IOAOperationInfoWSService#{http://ws.oa.dsp.org}getSTHJZCBDBInfo has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected wrapper element {http://ws.oa.dsp.org}getSTHZCFZBInfoResponse found. Expected {http://ws.oa.dsp.org}getSTHJZCBDBInfoResponse.

服务端接口:
package org.dsp.oa.ws;

@WebService
public interface IOAOperationInfoWS {
Result getSTHZCFZBInfo(@WebParam(name="planLicid")String planLicid,@WebParam(name="planid") String planid,@WebParam(name="workflowno") String Result getSTHJZCBDBInfo(@WebParam(name="planLicid")String planLicid,@WebParam(name="planid") String planid,@WebParam(name="workflowno") String workflowno,@WebParam(name="list")List>list);
workflowno,@WebParam(name="list")List>list);

服务端实现类
package org.dsp.oa.ws.imp;
@WebService
public class OAOperationInfoWSImp implements IOAOperationInfoWS {
@Override
public Result getSTHZCFZBInfo(String planLicid, String planid, String workflowno, List> list) {
}
@Override
public Result getSTHJZCBDBInfo(String planLicid, String planid, String workflowno, List> list) {
}}

  • 写回答

1条回答

  • dabocaiqq 2018-05-24 09:48
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗