日期:2014-05-17 浏览次数:20765 次
String res = null;
Service service = new Service();
Call call = null;
try {
call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(serviceUrl));
call.setOperationName(new QName("http://localhost/CigaTransService/" + opName + "/SU", opName));
call.addParameter("TokenRing", XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.addParameter("stamp_s", XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.addParameter("stamp_e", XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://localhost/CigaTransService/" + opName + "/Rpc");
res = (String) call.invoke(new Object[]{tokenRing, startDate, endDate});