高分悬赏:webservice调用抛异常.
MCSSInfomcssInfo=mcssInfoList.get(0);Stringendpoint=ETERM_WS+"?wsdl";Serviceservice=n...
MCSSInfo mcssInfo = mcssInfoList.get(0);
String endpoint = ETERM_WS + "?wsdl";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("addRule");
call.addParameter("username",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("office",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("subsystem",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("rated_trans,",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("interval",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("status",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
String actionURI = ETERM_WS + "/addRule";
call.setSOAPActionURI(actionURI);
object = (String) call.invoke(new Object[] {mcssInfo.getUsername(), mcssInfo.getOffice(),mcssInfo.getSubsystem(),
mcssInfo.getRated_trans(),mcssInfo.getInterval(), mcssInfo.getStatus() });
异常信息:
Unmarshalling Error: Unexpected character ',' (code 44) excepted space, or '>' or "/>"
at [row,col {unknown-source}]: [1,452] 展开
String endpoint = ETERM_WS + "?wsdl";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("addRule");
call.addParameter("username",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("office",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("subsystem",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("rated_trans,",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("interval",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("status",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
String actionURI = ETERM_WS + "/addRule";
call.setSOAPActionURI(actionURI);
object = (String) call.invoke(new Object[] {mcssInfo.getUsername(), mcssInfo.getOffice(),mcssInfo.getSubsystem(),
mcssInfo.getRated_trans(),mcssInfo.getInterval(), mcssInfo.getStatus() });
异常信息:
Unmarshalling Error: Unexpected character ',' (code 44) excepted space, or '>' or "/>"
at [row,col {unknown-source}]: [1,452] 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询