org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}string 请问一下这是什么原因导致的问题 |
|
Service service = new Service ();
Call call = (Call) service.createCall (); call.setTargetEndpointAddress(new java.net.URL(“http://172.16.215.18:8081/wf_cas/services/SessionService”)); call.setOperation(“getHelloWord”); Map<String,String> returnParamMap = null; HashMap paramMap=new HashMap(); paramMap.put(“name”,”托尔斯泰”); returnParamMap = (Map<String,String>)call.invoke(new Object[] {paramMap}); System.out.println(returnParamMap.get(“returnMap”)); |
|
我现在修改 call.setOperation(“getHelloWord”); 为 call.setOperationName(“getHelloWord”); 就能够解决。但是我不知道什么原因
|
|
20分 |
就是调用方法没得呗
|
20分 |
用的axis几?call.setOperation();会把所有的参数都清空。
public void setOperation(String opName) { if (this.service == null) { throw new JAXRPCException(Messages.getMessage("noService04")); } setOperationName(opName); setEncodingStyle(null); setReturnType(null); removeAllParameters();
|