Service RTservice = new Service(); Call RTcall = (Call) RTservice.createCall(); RTcall.setTargetEndpointAddress(new java.net.URL(RTendpointURL)); RTcall.setOperationName(new QName("edc.usgs.gov", "processAOI")); String response = (String) RTcall.invoke(new Object[] { payload });
public FetaAdminPortTypeBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { if (service == null) { super.service = new org.apache.axis.client.Service(); } else { super.service = service; } ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); }
public CondorVMgahpStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { if (service == null) { super.service = new org.apache.axis.client.Service(); } else { super.service = service; ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); java.lang.Class cls; javax.xml.namespace.QName qName; java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; qName = new javax.xml.namespace.QName("urn:condor", "Status"); cachedSerQNames.add(qName); cls = condor.Status.class; cachedSerClasses.add(cls); cachedSerFactories.add(beansf); cachedDeserFactories.add(beandf); qName = new javax.xml.namespace.QName("urn:condor", "StatusCode"); cachedSerQNames.add(qName); cls = condor.StatusCode.class; cachedDeserFactories.add(enumdf); qName = new javax.xml.namespace.QName("urn:condor", "StringAndStatus"); cachedSerQNames.add(qName); cls = condor.StringAndStatus.class;
throw new ServiceException(Messages.getMessage("wsdlMissing00")); Port port = wsdlService.getPort(portName.getLocalPart()); if (port == null) throw new ServiceException(Messages.getMessage("noPort00", "" + portName)); Iterator i = bEntry.getParameters().keySet().iterator(); Vector calls = new Vector(); while (i.hasNext()) { Operation operation = (Operation) i.next(); javax.xml.rpc.Call call = createCall(QName.valueOf(port.getName()), QName.valueOf(operation.getName())); calls.add(call); javax.xml.rpc.Call[] array = new javax.xml.rpc.Call[calls.size()]; calls.toArray(array); return array;
msgContext.setProperty( MessageContext.CALL, this ); msgContext.setProperty( WSDL_SERVICE, service ); msgContext.setProperty( WSDL_PORT_NAME, getPortName() ); if ( isMsg ) { msgContext.setProperty( MessageContext.IS_MSG, "true" ); operation.setStyle(getOperationStyle()); operation.setUse(getOperationUse()); msgContext.setTargetService(portName.getLocalPart()); } else { for (int i = 0 ; myHeaders != null && i < myHeaders.size() ; i++ ) { reqEnv.addHeader((SOAPHeaderElement)myHeaders.get(i)); transport.setupMessageContext(msgContext, this, service.getEngine());
service = new Service(); call = (Call)service.createCall(); call.setTargetEndpointAddress(endpointURL.toURL()); Vector result = (Vector)call.invoke(soapBodies); if (result.size() > 0 ) { response = ((SOAPBodyElement)result.elementAt(0)).getAsString(); Message msg = call.getResponseMessage(); response = msg.getSOAPEnvelope().getFirstBody().getAsString();
public ValidatorResult callSQL99Validator (URL a_url, int a_sessionId, int a_sessionKey, String a_sqlStatement, String a_resultType) throws RemoteException, ServiceException { Service l_service = new Service(); Call l_call = (Call) l_service.createCall(); l_call.setTargetEndpointAddress( a_url ); l_call.setOperationName( new QName("SQL99Validator", "validateSQL") ); l_call.addParameter( "a_sessionId", XMLType.XSD_INT, ParameterMode.IN ); l_call.addParameter( "a_sessionKey", XMLType.XSD_INT, ParameterMode.IN ); l_call.addParameter( "a_resultType", XMLType.XSD_STRING, ParameterMode.IN ); QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1.0", "ValidatorResult" );
/** * @see ResourceService_impl#getMetaData() */ public ResourceMetaData callGetMetaData() throws ResourceServiceException { final QName operationQName = new QName("http://uima.apache.org/resource", "getMetaData"); final QName resourceMetaDataTypeQName = new QName("http://uima.apache.org/resourceSpecifier", "resourceMetaData"); try { Service service = new Service(); Call call = (Call) service.createCall(); call.setTimeout(getTimeout()); call.setTargetEndpointAddress(mEndpoint); call.setOperationName(operationQName); call.registerTypeMapping(ResourceMetaData.class, resourceMetaDataTypeQName, new XmlSerializerFactory(), new XmlDeserializerFactory()); return (ResourceMetaData) call.invoke(new Object[0]); } catch (ServiceException e) { throw new ResourceServiceException(e); } catch (java.rmi.RemoteException e) { throw new ResourceServiceException(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; }
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); } }
/** * Build a call from a URL. * * @param url the target endpoint URL */ public Call(URL url) { this(new Service()); setTargetEndpointAddress(url); }
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 ); } }
/** * 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; }
/** * Create a Service instance. * @param wsdlDocumentLocation URL for the WSDL document location for the service * @param serviceName QName for the service. * @return Service. * @throws ServiceException If any error in creation of the specified service */ public javax.xml.rpc.Service createService(URL wsdlDocumentLocation, QName serviceName) throws ServiceException { return new Service(wsdlDocumentLocation, serviceName); } // createService
/** * 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); }
/** * 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(); }
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()); } } }
public Object lookupClient(JMXServiceURL address, Map environment) throws IOException { String endpoint = getEndpoint(address, environment); InputStream wsdd = getClass().getResourceAsStream(CLIENT_WSDD); if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor"); Service service = new Service(new FileProvider(wsdd)); service.setMaintainSession(true); return new SOAPClientInvoker(endpoint, service); }
public Call createCall(final QName qName) throws ServiceException { return delegate.createCall(qName); }
/** * Set engine option. * * Note: Not part of JAX-RPC specification. */ public void setOption(String name, Object value) { service.getEngine().setOption(name, value); }