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