001: /**
002: * SQLSalomeLockSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.4 Nov 19, 2006 (02:31:34 GMT+00:00) WSDL2Java emitter.
006: */package org.objectweb.salome_tmf.soap;
007:
008: import org.objectweb.salome_tmf.api.data.LockInfoWrapper;
009: import org.objectweb.salome_tmf.api.sql.ISQLSalomeLock;
010:
011: public class SQLSalomeLockSoapBindingStub extends StubClient implements
012: ISQLSalomeLock {
013: private java.util.Vector cachedSerClasses = new java.util.Vector();
014: private java.util.Vector cachedSerQNames = new java.util.Vector();
015: private java.util.Vector cachedSerFactories = new java.util.Vector();
016: private java.util.Vector cachedDeserFactories = new java.util.Vector();
017:
018: static org.apache.axis.description.OperationDesc[] _operations;
019:
020: static {
021: _operations = new org.apache.axis.description.OperationDesc[5];
022: _initOperationDesc1();
023: }
024:
025: private static void _initOperationDesc1() {
026: org.apache.axis.description.OperationDesc oper;
027: org.apache.axis.description.ParameterDesc param;
028: oper = new org.apache.axis.description.OperationDesc();
029: oper.setName("isLock");
030: param = new org.apache.axis.description.ParameterDesc(
031: new javax.xml.namespace.QName("", "in0"),
032: org.apache.axis.description.ParameterDesc.IN,
033: new javax.xml.namespace.QName(
034: "http://www.w3.org/2001/XMLSchema", "int"),
035: int.class, false, false);
036: oper.addParameter(param);
037: oper.setReturnType(new javax.xml.namespace.QName(
038: "http://www.w3.org/2001/XMLSchema", "anyType"));
039: oper.setReturnClass(java.lang.Object.class);
040: oper.setReturnQName(new javax.xml.namespace.QName("",
041: "isLockReturn"));
042: oper.setStyle(org.apache.axis.constants.Style.RPC);
043: oper.setUse(org.apache.axis.constants.Use.LITERAL);
044: _operations[0] = oper;
045:
046: oper = new org.apache.axis.description.OperationDesc();
047: oper.setName("getAllProjectLocks");
048: param = new org.apache.axis.description.ParameterDesc(
049: new javax.xml.namespace.QName("", "in0"),
050: org.apache.axis.description.ParameterDesc.IN,
051: new javax.xml.namespace.QName(
052: "http://www.w3.org/2001/XMLSchema", "int"),
053: int.class, false, false);
054: oper.addParameter(param);
055: oper.setReturnType(new javax.xml.namespace.QName(
056: "http://soap.salome_tmf.objectweb.org",
057: "ArrayOf_tns1_LockInfoWrapper"));
058: oper.setReturnClass(LockInfoWrapper[].class);
059: oper.setReturnQName(new javax.xml.namespace.QName("",
060: "getAllProjectLocksReturn"));
061: param = oper.getReturnParamDesc();
062: param.setItemQName(new javax.xml.namespace.QName("", "item"));
063: oper.setStyle(org.apache.axis.constants.Style.RPC);
064: oper.setUse(org.apache.axis.constants.Use.LITERAL);
065: _operations[1] = oper;
066:
067: oper = new org.apache.axis.description.OperationDesc();
068: oper.setName("delete");
069: param = new org.apache.axis.description.ParameterDesc(
070: new javax.xml.namespace.QName("", "in0"),
071: org.apache.axis.description.ParameterDesc.IN,
072: new javax.xml.namespace.QName(
073: "http://www.w3.org/2001/XMLSchema", "int"),
074: int.class, false, false);
075: oper.addParameter(param);
076: param = new org.apache.axis.description.ParameterDesc(
077: new javax.xml.namespace.QName("", "in1"),
078: org.apache.axis.description.ParameterDesc.IN,
079: new javax.xml.namespace.QName(
080: "http://www.w3.org/2001/XMLSchema", "int"),
081: int.class, false, false);
082: oper.addParameter(param);
083: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
084: oper.setStyle(org.apache.axis.constants.Style.RPC);
085: oper.setUse(org.apache.axis.constants.Use.LITERAL);
086: _operations[2] = oper;
087:
088: oper = new org.apache.axis.description.OperationDesc();
089: oper.setName("delete");
090: param = new org.apache.axis.description.ParameterDesc(
091: new javax.xml.namespace.QName("", "in0"),
092: org.apache.axis.description.ParameterDesc.IN,
093: new javax.xml.namespace.QName(
094: "http://www.w3.org/2001/XMLSchema", "int"),
095: int.class, false, false);
096: oper.addParameter(param);
097: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
098: oper.setStyle(org.apache.axis.constants.Style.RPC);
099: oper.setUse(org.apache.axis.constants.Use.LITERAL);
100: _operations[3] = oper;
101:
102: oper = new org.apache.axis.description.OperationDesc();
103: oper.setName("insert");
104: param = new org.apache.axis.description.ParameterDesc(
105: new javax.xml.namespace.QName("", "in0"),
106: org.apache.axis.description.ParameterDesc.IN,
107: new javax.xml.namespace.QName(
108: "http://www.w3.org/2001/XMLSchema", "int"),
109: int.class, false, false);
110: oper.addParameter(param);
111: param = new org.apache.axis.description.ParameterDesc(
112: new javax.xml.namespace.QName("", "in1"),
113: org.apache.axis.description.ParameterDesc.IN,
114: new javax.xml.namespace.QName(
115: "http://www.w3.org/2001/XMLSchema", "int"),
116: int.class, false, false);
117: oper.addParameter(param);
118: param = new org.apache.axis.description.ParameterDesc(
119: new javax.xml.namespace.QName("", "in2"),
120: org.apache.axis.description.ParameterDesc.IN,
121: new javax.xml.namespace.QName(
122: "http://www.w3.org/2001/XMLSchema", "int"),
123: int.class, false, false);
124: oper.addParameter(param);
125: param = new org.apache.axis.description.ParameterDesc(
126: new javax.xml.namespace.QName("", "in3"),
127: org.apache.axis.description.ParameterDesc.IN,
128: new javax.xml.namespace.QName(
129: "http://www.w3.org/2001/XMLSchema", "int"),
130: int.class, false, false);
131: oper.addParameter(param);
132: param = new org.apache.axis.description.ParameterDesc(
133: new javax.xml.namespace.QName("", "in4"),
134: org.apache.axis.description.ParameterDesc.IN,
135: new javax.xml.namespace.QName(
136: "http://www.w3.org/2001/XMLSchema", "string"),
137: java.lang.String.class, false, false);
138: oper.addParameter(param);
139: param = new org.apache.axis.description.ParameterDesc(
140: new javax.xml.namespace.QName("", "in5"),
141: org.apache.axis.description.ParameterDesc.IN,
142: new javax.xml.namespace.QName(
143: "http://www.w3.org/2001/XMLSchema", "int"),
144: int.class, false, false);
145: oper.addParameter(param);
146: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
147: oper.setStyle(org.apache.axis.constants.Style.RPC);
148: oper.setUse(org.apache.axis.constants.Use.LITERAL);
149: _operations[4] = oper;
150:
151: }
152:
153: public SQLSalomeLockSoapBindingStub()
154: throws org.apache.axis.AxisFault {
155: this (null);
156: }
157:
158: public SQLSalomeLockSoapBindingStub(java.net.URL endpointURL,
159: javax.xml.rpc.Service service)
160: throws org.apache.axis.AxisFault {
161: this (service);
162: super .cachedEndpoint = endpointURL;
163: }
164:
165: public SQLSalomeLockSoapBindingStub(javax.xml.rpc.Service service)
166: throws org.apache.axis.AxisFault {
167: if (service == null) {
168: super .service = new org.apache.axis.client.Service();
169: } else {
170: super .service = service;
171: }
172: ((org.apache.axis.client.Service) super .service)
173: .setTypeMappingVersion("1.2");
174: java.lang.Class cls;
175: javax.xml.namespace.QName qName;
176: javax.xml.namespace.QName qName2;
177: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
178: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
179: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
180: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
181: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
182: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
183: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
184: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
185: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
186: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
187: qName = new javax.xml.namespace.QName(
188: "http://data.api.salome_tmf.objectweb.org",
189: "LockInfoWrapper");
190: cachedSerQNames.add(qName);
191: cls = LockInfoWrapper.class;
192: cachedSerClasses.add(cls);
193: cachedSerFactories.add(beansf);
194: cachedDeserFactories.add(beandf);
195:
196: qName = new javax.xml.namespace.QName(
197: "http://soap.salome_tmf.objectweb.org",
198: "ArrayOf_tns1_LockInfoWrapper");
199: cachedSerQNames.add(qName);
200: cls = LockInfoWrapper[].class;
201: cachedSerClasses.add(cls);
202: qName = new javax.xml.namespace.QName(
203: "http://data.api.salome_tmf.objectweb.org",
204: "LockInfoWrapper");
205: qName2 = new javax.xml.namespace.QName("", "item");
206: cachedSerFactories
207: .add(new org.apache.axis.encoding.ser.ArraySerializerFactory(
208: qName, qName2));
209: cachedDeserFactories
210: .add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
211:
212: }
213:
214: protected org.apache.axis.client.Call createCall()
215: throws java.rmi.RemoteException {
216: try {
217: org.apache.axis.client.Call _call = super ._createCall();
218: if (super .maintainSessionSet) {
219: _call.setMaintainSession(super .maintainSession);
220: }
221: if (super .cachedUsername != null) {
222: _call.setUsername(super .cachedUsername);
223: }
224: if (super .cachedPassword != null) {
225: _call.setPassword(super .cachedPassword);
226: }
227: if (super .cachedEndpoint != null) {
228: _call.setTargetEndpointAddress(super .cachedEndpoint);
229: }
230: if (super .cachedTimeout != null) {
231: _call.setTimeout(super .cachedTimeout);
232: }
233: if (super .cachedPortName != null) {
234: _call.setPortName(super .cachedPortName);
235: }
236: java.util.Enumeration keys = super .cachedProperties.keys();
237: while (keys.hasMoreElements()) {
238: java.lang.String key = (java.lang.String) keys
239: .nextElement();
240: _call.setProperty(key, super .cachedProperties.get(key));
241: }
242: // All the type mapping information is registered
243: // when the first call is made.
244: // The type mapping information is actually registered in
245: // the TypeMappingRegistry of the service, which
246: // is the reason why registration is only needed for the first call.
247: synchronized (this ) {
248: if (firstCall()) {
249: // must set encoding style before registering serializers
250: _call.setEncodingStyle(null);
251: for (int i = 0; i < cachedSerFactories.size(); ++i) {
252: java.lang.Class cls = (java.lang.Class) cachedSerClasses
253: .get(i);
254: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
255: .get(i);
256: java.lang.Object x = cachedSerFactories.get(i);
257: if (x instanceof Class) {
258: java.lang.Class sf = (java.lang.Class) cachedSerFactories
259: .get(i);
260: java.lang.Class df = (java.lang.Class) cachedDeserFactories
261: .get(i);
262: _call.registerTypeMapping(cls, qName, sf,
263: df, false);
264: } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
265: org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
266: .get(i);
267: org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
268: .get(i);
269: _call.registerTypeMapping(cls, qName, sf,
270: df, false);
271: }
272: }
273: }
274: }
275: return _call;
276: } catch (java.lang.Exception _t) {
277: throw new org.apache.axis.AxisFault(
278: "Failure trying to get the Call object", _t);
279: }
280: }
281:
282: public LockInfoWrapper isLock(int in0)
283: throws java.rmi.RemoteException {
284: if (super .cachedEndpoint == null) {
285: throw new org.apache.axis.NoEndPointException();
286: }
287: org.apache.axis.client.Call _call = createCall();
288: _call.setOperation(_operations[0]);
289: _call.setUseSOAPAction(true);
290: _call.setSOAPActionURI("");
291: _call.setEncodingStyle(null);
292: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
293: Boolean.FALSE);
294: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
295: Boolean.FALSE);
296: _call
297: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
298: _call.setOperationName(new javax.xml.namespace.QName(
299: "http://soap.salome_tmf.objectweb.org", "isLock"));
300:
301: setRequestHeaders(_call);
302: setAttachments(_call);
303: try {
304: java.lang.Object _resp = _call
305: .invoke(new java.lang.Object[] { new java.lang.Integer(
306: in0) });
307:
308: if (_resp instanceof java.rmi.RemoteException) {
309: throw (java.rmi.RemoteException) _resp;
310: } else {
311: extractAttachments(_call);
312: try {
313: return (LockInfoWrapper) _resp;
314: } catch (java.lang.Exception _exception) {
315: return (LockInfoWrapper) org.apache.axis.utils.JavaUtils
316: .convert(_resp, java.lang.Object.class);
317: }
318: }
319: } catch (org.apache.axis.AxisFault axisFaultException) {
320: throw axisFaultException;
321: }
322: }
323:
324: public LockInfoWrapper[] getAllProjectLocks(int in0)
325: throws java.rmi.RemoteException {
326: if (super .cachedEndpoint == null) {
327: throw new org.apache.axis.NoEndPointException();
328: }
329: org.apache.axis.client.Call _call = createCall();
330: _call.setOperation(_operations[1]);
331: _call.setUseSOAPAction(true);
332: _call.setSOAPActionURI("");
333: _call.setEncodingStyle(null);
334: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
335: Boolean.FALSE);
336: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
337: Boolean.FALSE);
338: _call
339: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
340: _call.setOperationName(new javax.xml.namespace.QName(
341: "http://soap.salome_tmf.objectweb.org",
342: "getAllProjectLocks"));
343:
344: setRequestHeaders(_call);
345: setAttachments(_call);
346: try {
347: java.lang.Object _resp = _call
348: .invoke(new java.lang.Object[] { new java.lang.Integer(
349: in0) });
350:
351: if (_resp instanceof java.rmi.RemoteException) {
352: throw (java.rmi.RemoteException) _resp;
353: } else {
354: extractAttachments(_call);
355: try {
356: return (LockInfoWrapper[]) _resp;
357: } catch (java.lang.Exception _exception) {
358: return (LockInfoWrapper[]) org.apache.axis.utils.JavaUtils
359: .convert(_resp, LockInfoWrapper[].class);
360: }
361: }
362: } catch (org.apache.axis.AxisFault axisFaultException) {
363: throw axisFaultException;
364: }
365: }
366:
367: public void delete(int in0, int in1)
368: throws java.rmi.RemoteException {
369: if (super .cachedEndpoint == null) {
370: throw new org.apache.axis.NoEndPointException();
371: }
372: org.apache.axis.client.Call _call = createCall();
373: _call.setOperation(_operations[2]);
374: _call.setUseSOAPAction(true);
375: _call.setSOAPActionURI("");
376: _call.setEncodingStyle(null);
377: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
378: Boolean.FALSE);
379: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
380: Boolean.FALSE);
381: _call
382: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
383: _call.setOperationName(new javax.xml.namespace.QName(
384: "http://soap.salome_tmf.objectweb.org", "delete"));
385:
386: setRequestHeaders(_call);
387: setAttachments(_call);
388: try {
389: java.lang.Object _resp = _call
390: .invoke(new java.lang.Object[] {
391: new java.lang.Integer(in0),
392: new java.lang.Integer(in1) });
393:
394: if (_resp instanceof java.rmi.RemoteException) {
395: throw (java.rmi.RemoteException) _resp;
396: }
397: extractAttachments(_call);
398: } catch (org.apache.axis.AxisFault axisFaultException) {
399: throw axisFaultException;
400: }
401: }
402:
403: public void delete(int in0) throws java.rmi.RemoteException {
404: if (super .cachedEndpoint == null) {
405: throw new org.apache.axis.NoEndPointException();
406: }
407: org.apache.axis.client.Call _call = createCall();
408: _call.setOperation(_operations[3]);
409: _call.setUseSOAPAction(true);
410: _call.setSOAPActionURI("");
411: _call.setEncodingStyle(null);
412: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
413: Boolean.FALSE);
414: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
415: Boolean.FALSE);
416: _call
417: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
418: _call.setOperationName(new javax.xml.namespace.QName(
419: "http://soap.salome_tmf.objectweb.org", "delete"));
420:
421: setRequestHeaders(_call);
422: setAttachments(_call);
423: try {
424: java.lang.Object _resp = _call
425: .invoke(new java.lang.Object[] { new java.lang.Integer(
426: in0) });
427:
428: if (_resp instanceof java.rmi.RemoteException) {
429: throw (java.rmi.RemoteException) _resp;
430: }
431: extractAttachments(_call);
432: } catch (org.apache.axis.AxisFault axisFaultException) {
433: throw axisFaultException;
434: }
435: }
436:
437: public void insert(int in0, int in1, int in2, int in3,
438: java.lang.String in4, int in5)
439: throws java.rmi.RemoteException {
440: if (super .cachedEndpoint == null) {
441: throw new org.apache.axis.NoEndPointException();
442: }
443: org.apache.axis.client.Call _call = createCall();
444: _call.setOperation(_operations[4]);
445: _call.setUseSOAPAction(true);
446: _call.setSOAPActionURI("");
447: _call.setEncodingStyle(null);
448: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
449: Boolean.FALSE);
450: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
451: Boolean.FALSE);
452: _call
453: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
454: _call.setOperationName(new javax.xml.namespace.QName(
455: "http://soap.salome_tmf.objectweb.org", "insert"));
456:
457: setRequestHeaders(_call);
458: setAttachments(_call);
459: try {
460: java.lang.Object _resp = _call
461: .invoke(new java.lang.Object[] {
462: new java.lang.Integer(in0),
463: new java.lang.Integer(in1),
464: new java.lang.Integer(in2),
465: new java.lang.Integer(in3), in4,
466: new java.lang.Integer(in5) });
467:
468: if (_resp instanceof java.rmi.RemoteException) {
469: throw (java.rmi.RemoteException) _resp;
470: }
471: extractAttachments(_call);
472: } catch (org.apache.axis.AxisFault axisFaultException) {
473: throw axisFaultException;
474: }
475: }
476:
477: }
|