int size = parameters.list.size(); for (int i = 0; i < size; i++) { Parameter p = (Parameter) parameters.list.get(i); switch (p.getMode()) { case Parameter.IN: inputs.add(getParamData((org.apache.axis.client.Call) call, p, (String) parameterValues.elementAt(i))); break; case Parameter.OUT: break; case Parameter.INOUT: inputs.add(getParamData((org.apache.axis.client.Call) call, p, (String) parameterValues.elementAt(i))); break; } }
Object ret = call.invoke(inputs.toArray()); Map outputs = call.getOutputParams(); HashMap map = new HashMap(); if (ret != null && returnName != null) { map.put(returnName, ret); } if (outputs != null) { for (Iterator i = outputs.keySet().iterator(); i.hasNext();) { Object obj = i.next(); String name; Object value; if (obj.getClass().getName().equals("java.lang.String")) { name = (String) obj; } else { name = ((QName) obj).getLocalPart(); } value = outputs.get(obj); map.put(name, value); } } logger.info("--------"+serviceName+"-----"+portName+"-----"+operationName+"---------result begin-------"); logger.info(map.toString()); logger.info("--------"+serviceName+"-----"+portName+"-----"+operationName+"---------result end-------"); return map; }
public Vector enumServiceNames() { Vector v = new Vector(); Iterator i = services.keySet().iterator(); while (i.hasNext()) { String s = (String) i.next(); v.addElement(s); } return v; }
public Vector enumPortNames(String serviceName) { Vector v = new Vector(); ServiceEntry serviceEntry = (ServiceEntry) services.get(serviceName); Map ports = serviceEntry.getService().getPorts(); Iterator i = ports.keySet().iterator(); while (i.hasNext()) { String s = (String) i.next(); v.addElement(s); } return v; }
public Vector enumOperationNames(String serviceName, String portName) { Vector v = new Vector(); BindingEntry entry = getBindingEntry(serviceName, portName); Set operations = entry.getOperations(); Iterator i = operations.iterator(); while (i.hasNext()) { Operation o = (Operation) i.next(); String s = o.getName(); v.addElement(s); } return v; }
public String getParameterModeString(Parameter p) { String ret = null; switch (p.getMode()) { case Parameter.IN: ret = "[IN]"; break; case Parameter.INOUT: ret = "[IN, OUT]"; break; case Parameter.OUT: ret = "[OUT]"; break; } return ret; }