Call RTcall = (Call) RTservice.createCall();
public Call createCall(final QName qName, final QName qName1) throws ServiceException { return delegate.createCall(qName, qName1); }
public Call createCall(final QName qName) throws ServiceException { return delegate.createCall(qName); }
public Call createCall(final QName qName, final String s) throws ServiceException { return delegate.createCall(qName, s); }
public Call createCall() throws ServiceException { return delegate.createCall(); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, QName operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, QName operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, String operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, String operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, QName operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * Creates a new Call object - will prefill as much info from the WSDL * as it can. Right now it's target URL, SOAPAction, Parameter types, * and return type of the Web Service. * * @param portName PortName in the WSDL doc to search for * @param operationName Operation(method) that's going to be invoked * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall(QName portName, String operationName) throws ServiceException { Call call = (org.apache.axis.client.Call) createCall(); call.setOperation(portName, operationName); return (call); }
/** * core initialisation routine * * @throws ServiceException */ private void initAdminClient() throws ServiceException { // Initialize our Service - allow the user to override the // default configuration with a thread-local version (see // setDefaultConfiguration() above) EngineConfiguration config = (EngineConfiguration) defaultConfiguration.get(); Service service; if (config != null) { service = new Service(config); } else { service = new Service(); } call = (Call) service.createCall(); }
public void storeMetadata(String theMetadata) { try { Call call = (Call) new Service().createCall(); call.setTargetEndpointAddress(serviceEndpoint); call.setOperationName(new QName("storeMetadata")); call.invoke(new Object[] { theMetadata }); } catch (RemoteException re) { log.error("Remote exception when storing metadata", re); throw new RuntimeException("Cannot store metadata!"); } catch (ServiceException se) { log.error("Service exception when calling remote service", se); throw new RuntimeException( "Service exception creating call object!"); } }
/** * core initialisation routine * * @throws ServiceException */ private void initAdminClient() throws ServiceException { // Initialize our Service - allow the user to override the // default configuration with a thread-local version (see // setDefaultConfiguration() above) EngineConfiguration config = (EngineConfiguration) defaultConfiguration.get(); Service service; if (config != null) { service = new Service(config); } else { service = new Service(); } call = (Call) service.createCall(); }
public AbstractClient( String url ) throws ClientException { try { Service service = new Service(); this.call = (Call) service.createCall(); call.setTimeout( new Integer( Integer.MAX_VALUE ) ); call.setTargetEndpointAddress( new URL( url ) ); } catch ( Exception e ) { throw new ClientException( "Can't to the Kalumet agent WS server", e ); } }
public Call[] getCalls(final QName portName) throws ServiceException { if (portName == null) throw new ServiceException("Portname cannot be null"); final SeiFactory factory = (SeiFactory) portToImplementationMap.get(portName.getLocalPart()); if (factory == null) throw new ServiceException("No port for portname: " + portName); final OperationInfo[] operationInfos = factory.getOperationInfos(); final javax.xml.rpc.Call[] array = new javax.xml.rpc.Call[operationInfos.length]; for (int i = 0; i < operationInfos.length; i++) { final OperationInfo operation = operationInfos[i]; array[i] = delegate.createCall(factory.getPortQName(), operation.getOperationName()); } return array; }
/** * Prepares SOAP-Call for given url and operation. * * @param serviceEndpoint * URL for ORCHESTRA-Gatekeeper. * @param operation * @return SOAP Call. */ private static Call prepareCall(final String serviceEndpoint) { Call call = null; try { call = (Call) new Service().createCall(); call.setTargetEndpointAddress(serviceEndpoint); } catch (javax.xml.rpc.ServiceException e) { e.printStackTrace(); } return call; }
private Call createCall() throws IOException { try { Call call = (Call)service.createCall(); call.setTargetEndpointAddress(endpoint); SOAPHeaderElement connectionIDHeader = new SOAPHeaderElement(SOAPConstants.NAMESPACE_URI, SOAPConstants.CONNECTION_ID_HEADER_NAME, connectionId); connectionIDHeader.setMustUnderstand(true); call.addHeader(connectionIDHeader); return call; } catch (ServiceException x) { throw new IOException(x.toString()); } } }
/** * Invoke the web service and return the result. * * @param target The full URL to the service, example "http://www.ebi.ac.uk/soaplab/services/AnalysisFactory" * @param operation The operation name, example "getAvailableCategories" * @param parameters A (possibly empty) list of parameters * @return The result returned from calling the webservice operation * @throws ServiceException If web service facilities are not available * @throws RemoteException If remote call failed */ public static Object callWebService(String target, String operation, Object[] parameters) throws ServiceException, RemoteException { Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(target); // No need to do new Qname(operation) with unspecified namespaces call.setOperationName(operation); return call.invoke(parameters); } }
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); } }