非常感激您进来关注我的问题:异常如下:
Server was unable to process request. ---> Root element is missing.下面是我的10行代码。
org.apache.axis.client.Service service = new org.apache.axis.client.Service();
org.apache.axis.client.Call call = (org.apache.axis.client.Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL("http://passport.cga.com.cn/AccountService/HFPTAccTokenAuth.asmx") );
call.setOperationName("TokenAuth");
call.addParameter("appid",org.apache.axis.Constants.XSD_INT,javax.xml.rpc.ParameterMode.IN);
call.addParameter("token",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.XSD_BOOLEAN);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://www.cga.com.cn.auth.PTAccToken/TokenAuth");
Boolean isSucceed = (Boolean) call.invoke( new Object[] {123,"testtoken"} );请问,如何才能修改它到正常呢? 谢谢您!
Server was unable to process request. ---> Root element is missing.下面是我的10行代码。
org.apache.axis.client.Service service = new org.apache.axis.client.Service();
org.apache.axis.client.Call call = (org.apache.axis.client.Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL("http://passport.cga.com.cn/AccountService/HFPTAccTokenAuth.asmx") );
call.setOperationName("TokenAuth");
call.addParameter("appid",org.apache.axis.Constants.XSD_INT,javax.xml.rpc.ParameterMode.IN);
call.addParameter("token",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.XSD_BOOLEAN);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://www.cga.com.cn.auth.PTAccToken/TokenAuth");
Boolean isSucceed = (Boolean) call.invoke( new Object[] {123,"testtoken"} );请问,如何才能修改它到正常呢? 谢谢您!
org.apache.axis.client.Call call = (org.apache.axis.client.Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL("http://passport.cga.com.cn/AccountService/HFPTAccTokenAuth.asmx?WSDL") );
call.setOperationName("TokenAuth");
call.addParameter("appid",org.apache.axis.Constants.XSD_INT,javax.xml.rpc.ParameterMode.IN);
call.addParameter("token",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.XSD_BOOLEAN);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://www.cga.com.cn.auth.PTAccToken/TokenAuth");
Boolean isSucceed = (Boolean) call.invoke( new Object[] {123,"testtoken"} );
可是我加了wsdl后也不正常。我的是用的axis1.4。
不需要答案了,谢谢各位大哥。