/** * Constructor AsyncResult * * @param ac * @param opName * @param params */ public AsyncResult(AsyncCall ac, QName opName, Object[] params) { this.ac = ac; this.opName = opName; this.params = params; if (opName == null) { this.opName = ac.getCall().getOperationName(); } thread = new Thread(this); thread.setDaemon(true); thread.start(); }
/** * Constructor AsyncResult * * @param ac * @param opName * @param params */ public AsyncResult(AsyncCall ac, QName opName, Object[] params) { this.ac = ac; this.opName = opName; this.params = params; if (opName == null) { this.opName = ac.getCall().getOperationName(); } thread = new Thread(this); thread.setDaemon(true); thread.start(); }
/** * Constructor AsyncResult * * @param ac * @param opName * @param params */ public AsyncResult(AsyncCall ac, QName opName, Object[] params) { this.ac = ac; this.opName = opName; this.params = params; if (opName == null) { this.opName = ac.getCall().getOperationName(); } thread = new Thread(this); thread.setDaemon(true); thread.start(); }
private String doCall(String method, Object[] parameters) throws MobyException { Call call = null; try { Service service = new Service(); call = (Call) service.createCall(); call.setTargetEndpointAddress(REGISTRY_URL); call.setTimeout(new Integer(0)); call.setSOAPActionURI(REGISTRY_URI + "#" + method); return resultToString(call.invoke(REGISTRY_URI, method, parameters)); } catch (AxisFault e) { throw new MobyException(REGISTRY_URL.toString() + (call == null ? "" : call.getOperationName()), e); } catch (Exception e) { throw new MobyException(e.toString(), e); } }
MessageContext messageContext = stub._getCall().getMessageContext(); RequestInfo.Builder requestInfoBuilder = new RequestInfo.Builder() .withMethodName(stub._getCall().getOperationName().getLocalPart()) .withServiceName(stub._getService().getServiceName().getLocalPart()) .withUrl(stub._getCall().getTargetEndpointAddress());
MessageContext messageContext = stub._getCall().getMessageContext(); RequestInfo.Builder requestInfoBuilder = new RequestInfo.Builder() .withMethodName(stub._getCall().getOperationName().getLocalPart()) .withServiceName(stub._getService().getServiceName().getLocalPart()) .withUrl(stub._getCall().getTargetEndpointAddress());