1 /***
2 * JobMonitorServiceSoapBindingStub.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.jobmonitor;
9
10 public class JobMonitorServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.astrogrid.jes.delegate.v1.jobmonitor.JobMonitor {
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[1];
20 org.apache.axis.description.OperationDesc oper;
21 oper = new org.apache.axis.description.OperationDesc();
22 oper.setName("monitorJob");
23 oper.addParameter(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier-type"), org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType.class, org.apache.axis.description.ParameterDesc.IN, false, false);
24 oper.addParameter(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message-type"), org.astrogrid.jes.types.v1.cea.axis.MessageType.class, org.apache.axis.description.ParameterDesc.IN, false, false);
25 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
26 oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
27 oper.setUse(org.apache.axis.enum.Use.LITERAL);
28 _operations[0] = oper;
29
30 }
31
32 public JobMonitorServiceSoapBindingStub() throws org.apache.axis.AxisFault {
33 this(null);
34 }
35
36 public JobMonitorServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
37 this(service);
38 super.cachedEndpoint = endpointURL;
39 }
40
41 public JobMonitorServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
42 if (service == null) {
43 super.service = new org.apache.axis.client.Service();
44 } else {
45 super.service = service;
46 }
47 java.lang.Class cls;
48 javax.xml.namespace.QName qName;
49 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
50 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
51 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
52 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
53 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
54 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
55 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
56 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
57 qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier-type");
58 cachedSerQNames.add(qName);
59 cls = org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType.class;
60 cachedSerClasses.add(cls);
61 cachedSerFactories.add(simplesf);
62 cachedDeserFactories.add(simpledf);
63
64 qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "log-level");
65 cachedSerQNames.add(qName);
66 cls = org.astrogrid.jes.types.v1.cea.axis.LogLevel.class;
67 cachedSerClasses.add(cls);
68 cachedSerFactories.add(enumsf);
69 cachedDeserFactories.add(enumdf);
70
71 qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message-type");
72 cachedSerQNames.add(qName);
73 cls = org.astrogrid.jes.types.v1.cea.axis.MessageType.class;
74 cachedSerClasses.add(cls);
75 cachedSerFactories.add(beansf);
76 cachedDeserFactories.add(beandf);
77
78 qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "execution-phase");
79 cachedSerQNames.add(qName);
80 cls = org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase.class;
81 cachedSerClasses.add(cls);
82 cachedSerFactories.add(enumsf);
83 cachedDeserFactories.add(enumdf);
84
85 }
86
87 private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
88 try {
89 org.apache.axis.client.Call _call =
90 (org.apache.axis.client.Call) super.service.createCall();
91 if (super.maintainSessionSet) {
92 _call.setMaintainSession(super.maintainSession);
93 }
94 if (super.cachedUsername != null) {
95 _call.setUsername(super.cachedUsername);
96 }
97 if (super.cachedPassword != null) {
98 _call.setPassword(super.cachedPassword);
99 }
100 if (super.cachedEndpoint != null) {
101 _call.setTargetEndpointAddress(super.cachedEndpoint);
102 }
103 if (super.cachedTimeout != null) {
104 _call.setTimeout(super.cachedTimeout);
105 }
106 if (super.cachedPortName != null) {
107 _call.setPortName(super.cachedPortName);
108 }
109 java.util.Enumeration keys = super.cachedProperties.keys();
110 while (keys.hasMoreElements()) {
111 java.lang.String key = (java.lang.String) keys.nextElement();
112 _call.setProperty(key, super.cachedProperties.get(key));
113 }
114
115
116
117
118
119 synchronized (this) {
120 if (firstCall()) {
121
122 _call.setEncodingStyle(null);
123 for (int i = 0; i < cachedSerFactories.size(); ++i) {
124 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
125 javax.xml.namespace.QName qName =
126 (javax.xml.namespace.QName) cachedSerQNames.get(i);
127 java.lang.Class sf = (java.lang.Class)
128 cachedSerFactories.get(i);
129 java.lang.Class df = (java.lang.Class)
130 cachedDeserFactories.get(i);
131 _call.registerTypeMapping(cls, qName, sf, df, false);
132 }
133 }
134 }
135 return _call;
136 }
137 catch (java.lang.Throwable t) {
138 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
139 }
140 }
141
142 public void monitorJob(org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType jobIdentifier, org.astrogrid.jes.types.v1.cea.axis.MessageType message) throws java.rmi.RemoteException {
143 if (super.cachedEndpoint == null) {
144 throw new org.apache.axis.NoEndPointException();
145 }
146 org.apache.axis.client.Call _call = createCall();
147 _call.setOperation(_operations[0]);
148 _call.setUseSOAPAction(true);
149 _call.setSOAPActionURI("monitorJob");
150 _call.setEncodingStyle(null);
151 _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
152 _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
153 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
154 _call.setOperationName(new javax.xml.namespace.QName("urn:jes/jobmonitor-wrapper/v1", "monitorJob"));
155
156 setRequestHeaders(_call);
157 setAttachments(_call);
158 _call.invokeOneWay(new java.lang.Object[] {jobIdentifier, message});
159
160 }
161
162 }