本文整理了Java中org.apache.axis.client.Service.<init>()
方法的一些代码示例,展示了Service.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.<init>()
方法的具体详情如下:
包路径:org.apache.axis.client.Service
类名称:Service
方法名:<init>
[英]Constructs a new Service object - this assumes the caller will set the appropriate fields by hand rather than getting them from the WSDL.
[中]构造一个新的服务对象——这假设调用者将手动设置适当的字段,而不是从WSDL获取它们。
代码示例来源:origin: opentripplanner/OpenTripPlanner
Service RTservice = new Service();
Call RTcall = (Call) RTservice.createCall();
RTcall.setOperationName(new QName("edc.usgs.gov", "processAOI"));
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorTransferdStub(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;
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;
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorDbmsdStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.baclava/baclava-store-implementation
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!");
}
}
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorTestStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.baclava/baclava-store-implementation
public String getID(LSIDProvider.NamespaceEnumeration namespaceObject) {
String namespace = namespaceObject.toString();
// Does the map already contain an ID for that
// namespace?
String ID = (String) idMap.get(namespace);
if (ID != null) {
// Use the cached ID and append a counter to it
return ID + nextCounter++;
} else {
// regenerate the cached ID
try {
Call call = (Call) new Service().createCall();
call.setTargetEndpointAddress(serviceEndpoint);
call.setOperationName(new QName("getID"));
idMap.put(namespace, (String) (call
.invoke(new Object[] { namespace })));
return (String) idMap.get(namespace) + nextCounter++;
} catch (RemoteException re) {
log.error("Remote exception when getting identifier", re);
throw new RuntimeException("Cannot fetch metadata!");
} catch (ServiceException se) {
log.error("Service exception when calling remote service", se);
throw new RuntimeException(
"Service exception creating call object!");
}
}
}
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorKbddStub(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;
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;
代码示例来源:origin: net.sf.taverna.t2.activities/soaplab-activity-ui
String endpoint = ((SoaplabActivityConfigurationBean) getActivity()
.getConfiguration()).getEndpoint();
Call call = (Call) new Service().createCall();
call.setTimeout(new Integer(0));
call.setTargetEndpointAddress(endpoint);
call.setOperationName(new QName("describe"));
String metadata = (String) call.invoke(new Object[0]);
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorCgahpStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.baclava/baclava-store-implementation
public void storeDataThing(DataThing theDataThing, boolean silent)
throws DuplicateLSIDException {
Document doc = new Document(DataThingXMLFactory
.getElement(theDataThing));
XMLOutputter xo = new XMLOutputter(Format.getPrettyFormat());
String stringifiedThing = xo.outputString(doc);
try {
Call call = (Call) new Service().createCall();
call.setTargetEndpointAddress(serviceEndpoint);
call.setOperationName(new QName("storeDataThing"));
Boolean operationSucceeded = (Boolean) (call.invoke(new Object[] {
stringifiedThing, new Boolean(silent) }));
if (operationSucceeded.booleanValue() == false && silent == false) {
throw new DuplicateLSIDException();
}
} catch (RemoteException re) {
log.error("Exception when calling remote service", re);
throw new RuntimeException(
"Failed to store datathing in SOAP store");
} catch (ServiceException se) {
log.error("Service exception when calling remote service", se);
throw new RuntimeException(
"Service exception creating call object!");
}
}
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorTtStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.processors/taverna-soaplab-processor
SoaplabProcessor sp = (SoaplabProcessor) processor;
URL soaplabEndpoint = sp.getEndpoint();
Call call = (Call) new Service().createCall();
call.setTimeout(new Integer(0));
call.setTargetEndpointAddress(soaplabEndpoint);
call.setOperationName(new QName("describe"));
String metadata = (String) call.invoke(new Object[0]);
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorNegotiatorStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.baclava/baclava-store-implementation
public DataThing fetchDataThing(String LSID) throws NoSuchLSIDException {
try {
Call call = (Call) new Service().createCall();
call.setTargetEndpointAddress(serviceEndpoint);
call.setOperationName(new QName("fetchDataThing"));
String stringifiedThing = (String) (call
.invoke(new Object[] { LSID }));
try {
DataThing theDataThing = null;
SAXBuilder builder = new SAXBuilder(false);
Document doc = builder
.build(new StringReader(stringifiedThing));
theDataThing = new DataThing(doc.getRootElement());
return theDataThing;
} catch (JDOMException jde) {
log
.error(
"Error whilst reconstructing DataThing from XML",
jde);
throw new NoSuchLSIDException();
}
} catch (Exception e) {
NoSuchLSIDException nsle = new NoSuchLSIDException();
nsle.initCause(e);
throw nsle;
}
}
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorLeaseManagerStub(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;
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;
代码示例来源:origin: uk.org.mygrid.taverna.processors/taverna-soaplab-processor
Call call = (Call) new Service().createCall();
call.setTimeout(new Integer(INVOCATION_TIMEOUT));
URL soaplabWSDLURL = proc.getEndpoint();
call.setOperationName(new QName("createAndRun"));
String jobID = (String) call
.invoke(new Object[] { soaplabInputMap });
call.setOperationName(new QName("waitFor"));
call.invoke(new Object[] { jobID });
} else {
call.setOperationName(new QName("getStatus"));
String statusString = (String) call
.invoke(new Object[] { jobID });
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorStartdFactoryStub(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;
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;
代码示例来源:origin: net.sf.taverna.t2.activities/soaplab-activity
Call call = (Call) new Service().createCall();
call.setTimeout(new Integer(INVOCATION_TIMEOUT));
call.setOperationName(new QName("createAndRun"));
String jobID = (String) call
.invoke(new Object[] { soaplabInputMap });
call.setOperationName(new QName("waitFor"));
call.invoke(new Object[] { jobID });
} else {
call.setOperationName(new QName("getStatus"));
String statusString = (String) call
.invoke(new Object[] { jobID });
代码示例来源:origin: org.renci.condor/condor-wsdl
public CondorHDFSStub(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;
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;
代码示例来源:origin: net.sf.taverna.t2/soaplab-activity
Call call = (Call) new Service().createCall();
call.setTimeout(new Integer(INVOCATION_TIMEOUT));
call.setOperationName(new QName("createAndRun"));
String jobID = (String) call
.invoke(new Object[] { soaplabInputMap });
call.setOperationName(new QName("waitFor"));
call.invoke(new Object[] { jobID });
} else {
call.setOperationName(new QName("getStatus"));
String statusString = (String) call
.invoke(new Object[] { jobID });
内容来源于网络,如有侵权,请联系作者删除!