View Javadoc

1   /***
2    * JobControllerServiceSoapBindingStub.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    */
7   
8   package org.astrogrid.jes.delegate.v1.jobcontroller;
9   
10  public class JobControllerServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.astrogrid.jes.delegate.v1.jobcontroller.JobController {
11      private java.util.Vector cachedSerClasses = new java.util.Vector();
12      private java.util.Vector cachedSerQNames = new java.util.Vector();
13      private java.util.Vector cachedSerFactories = new java.util.Vector();
14      private java.util.Vector cachedDeserFactories = new java.util.Vector();
15  
16      static org.apache.axis.description.OperationDesc [] _operations;
17  
18      static {
19          _operations = new org.apache.axis.description.OperationDesc[5];
20          org.apache.axis.description.OperationDesc oper;
21          oper = new org.apache.axis.description.OperationDesc();
22          oper.setName("submitWorkflow");
23          oper.addParameter(new javax.xml.namespace.QName("", "workflow-document"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-string"), org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString.class, org.apache.axis.description.ParameterDesc.IN, false, false);
24          oper.setReturnType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"));
25          oper.setReturnClass(org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class);
26          oper.setReturnQName(new javax.xml.namespace.QName("", "urn"));
27          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
28          oper.setUse(org.apache.axis.enum.Use.LITERAL);
29          oper.addFault(new org.apache.axis.description.FaultDesc(
30                        new javax.xml.namespace.QName("", "message"),
31                        "org.astrogrid.jes.delegate.v1.jobcontroller.JesFault",
32                        new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
33                        false
34                       ));
35          _operations[0] = oper;
36  
37          oper = new org.apache.axis.description.OperationDesc();
38          oper.setName("cancelJob");
39          oper.addParameter(new javax.xml.namespace.QName("", "urn"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"), org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class, org.apache.axis.description.ParameterDesc.IN, false, false);
40          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
41          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
42          oper.setUse(org.apache.axis.enum.Use.LITERAL);
43          _operations[1] = oper;
44  
45          oper = new org.apache.axis.description.OperationDesc();
46          oper.setName("deleteJob");
47          oper.addParameter(new javax.xml.namespace.QName("", "urn"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"), org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class, org.apache.axis.description.ParameterDesc.IN, false, false);
48          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
49          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
50          oper.setUse(org.apache.axis.enum.Use.LITERAL);
51          _operations[2] = oper;
52  
53          oper = new org.apache.axis.description.OperationDesc();
54          oper.setName("readJobList");
55          oper.addParameter(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Account"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Account"), org.astrogrid.community.beans.v1.axis._Account.class, org.apache.axis.description.ParameterDesc.IN, false, false);
56          oper.setReturnType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-summary-list"));
57          oper.setReturnClass(org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList.class);
58          oper.setReturnQName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-summary-list"));
59          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
60          oper.setUse(org.apache.axis.enum.Use.LITERAL);
61          oper.addFault(new org.apache.axis.description.FaultDesc(
62                        new javax.xml.namespace.QName("", "message"),
63                        "org.astrogrid.jes.delegate.v1.jobcontroller.JesFault",
64                        new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
65                        false
66                       ));
67          _operations[3] = oper;
68  
69          oper = new org.apache.axis.description.OperationDesc();
70          oper.setName("readJob");
71          oper.addParameter(new javax.xml.namespace.QName("", "urn"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"), org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class, org.apache.axis.description.ParameterDesc.IN, false, false);
72          oper.setReturnType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-string"));
73          oper.setReturnClass(org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString.class);
74          oper.setReturnQName(new javax.xml.namespace.QName("", "workflow-document"));
75          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
76          oper.setUse(org.apache.axis.enum.Use.LITERAL);
77          oper.addFault(new org.apache.axis.description.FaultDesc(
78                        new javax.xml.namespace.QName("", "message"),
79                        "org.astrogrid.jes.delegate.v1.jobcontroller.JesFault",
80                        new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
81                        false
82                       ));
83          _operations[4] = oper;
84  
85      }
86  
87      public JobControllerServiceSoapBindingStub() throws org.apache.axis.AxisFault {
88           this(null);
89      }
90  
91      public JobControllerServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
92           this(service);
93           super.cachedEndpoint = endpointURL;
94      }
95  
96      public JobControllerServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
97          if (service == null) {
98              super.service = new org.apache.axis.client.Service();
99          } else {
100             super.service = service;
101         }
102             java.lang.Class cls;
103             javax.xml.namespace.QName qName;
104             java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
105             java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
106             java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
107             java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
108             java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
109             java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
110             java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
111             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
112             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-summary-type");
113             cachedSerQNames.add(qName);
114             cls = org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowSummaryType.class;
115             cachedSerClasses.add(cls);
116             cachedSerFactories.add(beansf);
117             cachedDeserFactories.add(beandf);
118 
119             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message-type");
120             cachedSerQNames.add(qName);
121             cls = org.astrogrid.jes.types.v1.cea.axis.MessageType.class;
122             cachedSerClasses.add(cls);
123             cachedSerFactories.add(beansf);
124             cachedDeserFactories.add(beandf);
125 
126             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-summary-list");
127             cachedSerQNames.add(qName);
128             cls = org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList.class;
129             cachedSerClasses.add(cls);
130             cachedSerFactories.add(beansf);
131             cachedDeserFactories.add(beandf);
132 
133             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-string");
134             cachedSerQNames.add(qName);
135             cls = org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString.class;
136             cachedSerClasses.add(cls);
137             cachedSerFactories.add(simplesf);
138             cachedDeserFactories.add(simpledf);
139 
140             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Group");
141             cachedSerQNames.add(qName);
142             cls = org.astrogrid.community.beans.v1.axis._Group.class;
143             cachedSerClasses.add(cls);
144             cachedSerFactories.add(beansf);
145             cachedDeserFactories.add(beandf);
146 
147             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN");
148             cachedSerQNames.add(qName);
149             cls = org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class;
150             cachedSerClasses.add(cls);
151             cachedSerFactories.add(simplesf);
152             cachedDeserFactories.add(simpledf);
153 
154             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Identifier");
155             cachedSerQNames.add(qName);
156             cls = org.astrogrid.community.beans.v1.axis.Identifier.class;
157             cachedSerClasses.add(cls);
158             cachedSerFactories.add(simplesf);
159             cachedDeserFactories.add(simpledf);
160 
161             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "extension");
162             cachedSerQNames.add(qName);
163             cls = org.astrogrid.jes.beans.v1.axis.executionrecord._extension.class;
164             cachedSerClasses.add(cls);
165             cachedSerFactories.add(simplesf);
166             cachedDeserFactories.add(simpledf);
167 
168             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "execution-phase");
169             cachedSerQNames.add(qName);
170             cls = org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase.class;
171             cachedSerClasses.add(cls);
172             cachedSerFactories.add(enumsf);
173             cachedDeserFactories.add(enumdf);
174 
175             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "BaseIdentifier");
176             cachedSerQNames.add(qName);
177             cls = org.astrogrid.community.beans.v1.axis.BaseIdentifier.class;
178             cachedSerClasses.add(cls);
179             cachedSerFactories.add(beansf);
180             cachedDeserFactories.add(beandf);
181 
182             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Account");
183             cachedSerQNames.add(qName);
184             cls = org.astrogrid.community.beans.v1.axis._Account.class;
185             cachedSerClasses.add(cls);
186             cachedSerFactories.add(beansf);
187             cachedDeserFactories.add(beandf);
188 
189             qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "log-level");
190             cachedSerQNames.add(qName);
191             cls = org.astrogrid.jes.types.v1.cea.axis.LogLevel.class;
192             cachedSerClasses.add(cls);
193             cachedSerFactories.add(enumsf);
194             cachedDeserFactories.add(enumdf);
195 
196     }
197 
198     private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
199         try {
200             org.apache.axis.client.Call _call =
201                     (org.apache.axis.client.Call) super.service.createCall();
202             if (super.maintainSessionSet) {
203                 _call.setMaintainSession(super.maintainSession);
204             }
205             if (super.cachedUsername != null) {
206                 _call.setUsername(super.cachedUsername);
207             }
208             if (super.cachedPassword != null) {
209                 _call.setPassword(super.cachedPassword);
210             }
211             if (super.cachedEndpoint != null) {
212                 _call.setTargetEndpointAddress(super.cachedEndpoint);
213             }
214             if (super.cachedTimeout != null) {
215                 _call.setTimeout(super.cachedTimeout);
216             }
217             if (super.cachedPortName != null) {
218                 _call.setPortName(super.cachedPortName);
219             }
220             java.util.Enumeration keys = super.cachedProperties.keys();
221             while (keys.hasMoreElements()) {
222                 java.lang.String key = (java.lang.String) keys.nextElement();
223                 _call.setProperty(key, super.cachedProperties.get(key));
224             }
225             // All the type mapping information is registered
226             // when the first call is made.
227             // The type mapping information is actually registered in
228             // the TypeMappingRegistry of the service, which
229             // is the reason why registration is only needed for the first call.
230             synchronized (this) {
231                 if (firstCall()) {
232                     // must set encoding style before registering serializers
233                     _call.setEncodingStyle(null);
234                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
235                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
236                         javax.xml.namespace.QName qName =
237                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
238                         java.lang.Class sf = (java.lang.Class)
239                                  cachedSerFactories.get(i);
240                         java.lang.Class df = (java.lang.Class)
241                                  cachedDeserFactories.get(i);
242                         _call.registerTypeMapping(cls, qName, sf, df, false);
243                     }
244                 }
245             }
246             return _call;
247         }
248         catch (java.lang.Throwable t) {
249             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
250         }
251     }
252 
253     public org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN submitWorkflow(org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString workflowDocument) throws java.rmi.RemoteException, org.astrogrid.jes.delegate.v1.jobcontroller.JesFault {
254         if (super.cachedEndpoint == null) {
255             throw new org.apache.axis.NoEndPointException();
256         }
257         org.apache.axis.client.Call _call = createCall();
258         _call.setOperation(_operations[0]);
259         _call.setUseSOAPAction(true);
260         _call.setSOAPActionURI("submitWorkflow");
261         _call.setEncodingStyle(null);
262         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
263         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
264         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
265         _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobcontroller-wrapper/v1", "submitWorkflow"));
266 
267         setRequestHeaders(_call);
268         setAttachments(_call);
269         java.lang.Object _resp = _call.invoke(new java.lang.Object[] {workflowDocument});
270 
271         if (_resp instanceof java.rmi.RemoteException) {
272             throw (java.rmi.RemoteException)_resp;
273         }
274         else {
275             extractAttachments(_call);
276             try {
277                 return (org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN) _resp;
278             } catch (java.lang.Exception _exception) {
279                 return (org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN) org.apache.axis.utils.JavaUtils.convert(_resp, org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN.class);
280             }
281         }
282     }
283 
284     public void cancelJob(org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN urn) throws java.rmi.RemoteException {
285         if (super.cachedEndpoint == null) {
286             throw new org.apache.axis.NoEndPointException();
287         }
288         org.apache.axis.client.Call _call = createCall();
289         _call.setOperation(_operations[1]);
290         _call.setUseSOAPAction(true);
291         _call.setSOAPActionURI("cancelJob");
292         _call.setEncodingStyle(null);
293         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
294         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
295         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
296         _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobcontroller-wrapper/v1", "cancelJob"));
297 
298         setRequestHeaders(_call);
299         setAttachments(_call);
300         _call.invokeOneWay(new java.lang.Object[] {urn});
301 
302     }
303 
304     public void deleteJob(org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN urn) throws java.rmi.RemoteException {
305         if (super.cachedEndpoint == null) {
306             throw new org.apache.axis.NoEndPointException();
307         }
308         org.apache.axis.client.Call _call = createCall();
309         _call.setOperation(_operations[2]);
310         _call.setUseSOAPAction(true);
311         _call.setSOAPActionURI("deleteJob");
312         _call.setEncodingStyle(null);
313         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
314         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
315         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
316         _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobcontroller-wrapper/v1", "deleteJob"));
317 
318         setRequestHeaders(_call);
319         setAttachments(_call);
320         _call.invokeOneWay(new java.lang.Object[] {urn});
321 
322     }
323 
324     public org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList readJobList(org.astrogrid.community.beans.v1.axis._Account account) throws java.rmi.RemoteException, org.astrogrid.jes.delegate.v1.jobcontroller.JesFault {
325         if (super.cachedEndpoint == null) {
326             throw new org.apache.axis.NoEndPointException();
327         }
328         org.apache.axis.client.Call _call = createCall();
329         _call.setOperation(_operations[3]);
330         _call.setUseSOAPAction(true);
331         _call.setSOAPActionURI("readJobList");
332         _call.setEncodingStyle(null);
333         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
334         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
335         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
336         _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobcontroller-wrapper/v1", "readJobList"));
337 
338         setRequestHeaders(_call);
339         setAttachments(_call);
340         java.lang.Object _resp = _call.invoke(new java.lang.Object[] {account});
341 
342         if (_resp instanceof java.rmi.RemoteException) {
343             throw (java.rmi.RemoteException)_resp;
344         }
345         else {
346             extractAttachments(_call);
347             try {
348                 return (org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList) _resp;
349             } catch (java.lang.Exception _exception) {
350                 return (org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList) org.apache.axis.utils.JavaUtils.convert(_resp, org.astrogrid.jes.beans.v1.axis.executionrecord._workflowSummaryList.class);
351             }
352         }
353     }
354 
355     public org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString readJob(org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN urn) throws java.rmi.RemoteException, org.astrogrid.jes.delegate.v1.jobcontroller.JesFault {
356         if (super.cachedEndpoint == null) {
357             throw new org.apache.axis.NoEndPointException();
358         }
359         org.apache.axis.client.Call _call = createCall();
360         _call.setOperation(_operations[4]);
361         _call.setUseSOAPAction(true);
362         _call.setSOAPActionURI("readJob");
363         _call.setEncodingStyle(null);
364         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
365         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
366         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
367         _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobcontroller-wrapper/v1", "readJob"));
368 
369         setRequestHeaders(_call);
370         setAttachments(_call);
371         java.lang.Object _resp = _call.invoke(new java.lang.Object[] {urn});
372 
373         if (_resp instanceof java.rmi.RemoteException) {
374             throw (java.rmi.RemoteException)_resp;
375         }
376         else {
377             extractAttachments(_call);
378             try {
379                 return (org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString) _resp;
380             } catch (java.lang.Exception _exception) {
381                 return (org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString) org.apache.axis.utils.JavaUtils.convert(_resp, org.astrogrid.jes.beans.v1.axis.executionrecord.WorkflowString.class);
382             }
383         }
384     }
385 
386 }