webservice接口调用出错,org.apache.axis2.AxisFault: 20
org.apache.axis2.AxisFault:Serviceclasscom.caf.template.service.xtgl.IOraUserServicem...
org.apache.axis2.AxisFault: Service class com.caf.template.service.xtgl.IOraUserService must have public as access Modifier
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.caf.template.service.xtgl.MyService2Stub.saveOrgUser1(MyService2Stub.java:955)
at common.user.UserAction.addUser(UserAction.java:285)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
这是我客户端的报错信息,我的理解是服务器端IOraUserService接口必须是public的,但是我服务器的方法就是public修饰符。下面是我的服务器端代码,saveOrgUser1是我要调用的方法。
package com.caf.template.service.xtgl;
import java.util.List;
import com.caf.template.vo.entity.gl.OrgUser;
/**
* 系统管理模块接口
* @author
*/
public interface IOraUserService {
/**
* 保存
* @param orguser
*/
public String saveOrgUser1(String userstr);
}
困扰了好几天了,希望哪位能帮我解决一下。谢谢 展开
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.caf.template.service.xtgl.MyService2Stub.saveOrgUser1(MyService2Stub.java:955)
at common.user.UserAction.addUser(UserAction.java:285)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
这是我客户端的报错信息,我的理解是服务器端IOraUserService接口必须是public的,但是我服务器的方法就是public修饰符。下面是我的服务器端代码,saveOrgUser1是我要调用的方法。
package com.caf.template.service.xtgl;
import java.util.List;
import com.caf.template.vo.entity.gl.OrgUser;
/**
* 系统管理模块接口
* @author
*/
public interface IOraUserService {
/**
* 保存
* @param orguser
*/
public String saveOrgUser1(String userstr);
}
困扰了好几天了,希望哪位能帮我解决一下。谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询