001: /**
002: * SQLUrlAttachmentSoapBindingStub.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.sql.ISQLUrlAttachment;
009:
010: public class SQLUrlAttachmentSoapBindingStub extends StubClient
011: implements ISQLUrlAttachment {
012: private java.util.Vector cachedSerClasses = new java.util.Vector();
013: private java.util.Vector cachedSerQNames = new java.util.Vector();
014: private java.util.Vector cachedSerFactories = new java.util.Vector();
015: private java.util.Vector cachedDeserFactories = new java.util.Vector();
016:
017: static org.apache.axis.description.OperationDesc[] _operations;
018:
019: static {
020: _operations = new org.apache.axis.description.OperationDesc[4];
021: _initOperationDesc1();
022: }
023:
024: private static void _initOperationDesc1() {
025: org.apache.axis.description.OperationDesc oper;
026: org.apache.axis.description.ParameterDesc param;
027: oper = new org.apache.axis.description.OperationDesc();
028: oper.setName("insert");
029: param = new org.apache.axis.description.ParameterDesc(
030: new javax.xml.namespace.QName("", "in0"),
031: org.apache.axis.description.ParameterDesc.IN,
032: new javax.xml.namespace.QName(
033: "http://www.w3.org/2001/XMLSchema", "string"),
034: java.lang.String.class, false, false);
035: oper.addParameter(param);
036: param = new org.apache.axis.description.ParameterDesc(
037: new javax.xml.namespace.QName("", "in1"),
038: org.apache.axis.description.ParameterDesc.IN,
039: new javax.xml.namespace.QName(
040: "http://www.w3.org/2001/XMLSchema", "string"),
041: java.lang.String.class, false, false);
042: oper.addParameter(param);
043: oper.setReturnType(new javax.xml.namespace.QName(
044: "http://www.w3.org/2001/XMLSchema", "int"));
045: oper.setReturnClass(int.class);
046: oper.setReturnQName(new javax.xml.namespace.QName("",
047: "insertReturn"));
048: oper.setStyle(org.apache.axis.constants.Style.RPC);
049: oper.setUse(org.apache.axis.constants.Use.LITERAL);
050: _operations[0] = oper;
051:
052: oper = new org.apache.axis.description.OperationDesc();
053: oper.setName("updateDescription");
054: param = new org.apache.axis.description.ParameterDesc(
055: new javax.xml.namespace.QName("", "in0"),
056: org.apache.axis.description.ParameterDesc.IN,
057: new javax.xml.namespace.QName(
058: "http://www.w3.org/2001/XMLSchema", "int"),
059: int.class, false, false);
060: oper.addParameter(param);
061: param = new org.apache.axis.description.ParameterDesc(
062: new javax.xml.namespace.QName("", "in1"),
063: org.apache.axis.description.ParameterDesc.IN,
064: new javax.xml.namespace.QName(
065: "http://www.w3.org/2001/XMLSchema", "string"),
066: java.lang.String.class, false, false);
067: oper.addParameter(param);
068: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
069: oper.setStyle(org.apache.axis.constants.Style.RPC);
070: oper.setUse(org.apache.axis.constants.Use.LITERAL);
071: _operations[1] = oper;
072:
073: oper = new org.apache.axis.description.OperationDesc();
074: oper.setName("getLastIdAttach");
075: oper.setReturnType(new javax.xml.namespace.QName(
076: "http://www.w3.org/2001/XMLSchema", "int"));
077: oper.setReturnClass(int.class);
078: oper.setReturnQName(new javax.xml.namespace.QName("",
079: "getLastIdAttachReturn"));
080: oper.setStyle(org.apache.axis.constants.Style.RPC);
081: oper.setUse(org.apache.axis.constants.Use.LITERAL);
082: _operations[2] = oper;
083:
084: oper = new org.apache.axis.description.OperationDesc();
085: oper.setName("delete");
086: param = new org.apache.axis.description.ParameterDesc(
087: new javax.xml.namespace.QName("", "in0"),
088: org.apache.axis.description.ParameterDesc.IN,
089: new javax.xml.namespace.QName(
090: "http://www.w3.org/2001/XMLSchema", "int"),
091: int.class, false, false);
092: oper.addParameter(param);
093: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
094: oper.setStyle(org.apache.axis.constants.Style.RPC);
095: oper.setUse(org.apache.axis.constants.Use.LITERAL);
096: _operations[3] = oper;
097:
098: }
099:
100: public SQLUrlAttachmentSoapBindingStub()
101: throws org.apache.axis.AxisFault {
102: this (null);
103: }
104:
105: public SQLUrlAttachmentSoapBindingStub(java.net.URL endpointURL,
106: javax.xml.rpc.Service service)
107: throws org.apache.axis.AxisFault {
108: this (service);
109: super .cachedEndpoint = endpointURL;
110: }
111:
112: public SQLUrlAttachmentSoapBindingStub(javax.xml.rpc.Service service)
113: throws org.apache.axis.AxisFault {
114: if (service == null) {
115: super .service = new org.apache.axis.client.Service();
116: } else {
117: super .service = service;
118: }
119: ((org.apache.axis.client.Service) super .service)
120: .setTypeMappingVersion("1.2");
121: }
122:
123: protected org.apache.axis.client.Call createCall()
124: throws java.rmi.RemoteException {
125: try {
126: org.apache.axis.client.Call _call = super ._createCall();
127: if (super .maintainSessionSet) {
128: _call.setMaintainSession(super .maintainSession);
129: }
130: if (super .cachedUsername != null) {
131: _call.setUsername(super .cachedUsername);
132: }
133: if (super .cachedPassword != null) {
134: _call.setPassword(super .cachedPassword);
135: }
136: if (super .cachedEndpoint != null) {
137: _call.setTargetEndpointAddress(super .cachedEndpoint);
138: }
139: if (super .cachedTimeout != null) {
140: _call.setTimeout(super .cachedTimeout);
141: }
142: if (super .cachedPortName != null) {
143: _call.setPortName(super .cachedPortName);
144: }
145: java.util.Enumeration keys = super .cachedProperties.keys();
146: while (keys.hasMoreElements()) {
147: java.lang.String key = (java.lang.String) keys
148: .nextElement();
149: _call.setProperty(key, super .cachedProperties.get(key));
150: }
151: return _call;
152: } catch (java.lang.Exception _t) {
153: throw new org.apache.axis.AxisFault(
154: "Failure trying to get the Call object", _t);
155: }
156: }
157:
158: public int insert(java.lang.String in0, java.lang.String in1)
159: throws java.rmi.RemoteException {
160: if (super .cachedEndpoint == null) {
161: throw new org.apache.axis.NoEndPointException();
162: }
163: org.apache.axis.client.Call _call = createCall();
164: _call.setOperation(_operations[0]);
165: _call.setUseSOAPAction(true);
166: _call.setSOAPActionURI("");
167: _call.setEncodingStyle(null);
168: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
169: Boolean.FALSE);
170: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
171: Boolean.FALSE);
172: _call
173: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
174: _call.setOperationName(new javax.xml.namespace.QName(
175: "http://soap.salome_tmf.objectweb.org", "insert"));
176:
177: setRequestHeaders(_call);
178: setAttachments(_call);
179: try {
180: java.lang.Object _resp = _call
181: .invoke(new java.lang.Object[] { in0, in1 });
182:
183: if (_resp instanceof java.rmi.RemoteException) {
184: throw (java.rmi.RemoteException) _resp;
185: } else {
186: extractAttachments(_call);
187: try {
188: return ((java.lang.Integer) _resp).intValue();
189: } catch (java.lang.Exception _exception) {
190: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
191: .convert(_resp, int.class)).intValue();
192: }
193: }
194: } catch (org.apache.axis.AxisFault axisFaultException) {
195: throw axisFaultException;
196: }
197: }
198:
199: public void updateDescription(int in0, java.lang.String in1)
200: throws java.rmi.RemoteException {
201: if (super .cachedEndpoint == null) {
202: throw new org.apache.axis.NoEndPointException();
203: }
204: org.apache.axis.client.Call _call = createCall();
205: _call.setOperation(_operations[1]);
206: _call.setUseSOAPAction(true);
207: _call.setSOAPActionURI("");
208: _call.setEncodingStyle(null);
209: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
210: Boolean.FALSE);
211: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
212: Boolean.FALSE);
213: _call
214: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
215: _call.setOperationName(new javax.xml.namespace.QName(
216: "http://soap.salome_tmf.objectweb.org",
217: "updateDescription"));
218:
219: setRequestHeaders(_call);
220: setAttachments(_call);
221: try {
222: java.lang.Object _resp = _call
223: .invoke(new java.lang.Object[] {
224: new java.lang.Integer(in0), in1 });
225:
226: if (_resp instanceof java.rmi.RemoteException) {
227: throw (java.rmi.RemoteException) _resp;
228: }
229: extractAttachments(_call);
230: } catch (org.apache.axis.AxisFault axisFaultException) {
231: throw axisFaultException;
232: }
233: }
234:
235: public int getLastIdAttach() throws java.rmi.RemoteException {
236: if (super .cachedEndpoint == null) {
237: throw new org.apache.axis.NoEndPointException();
238: }
239: org.apache.axis.client.Call _call = createCall();
240: _call.setOperation(_operations[2]);
241: _call.setUseSOAPAction(true);
242: _call.setSOAPActionURI("");
243: _call.setEncodingStyle(null);
244: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
245: Boolean.FALSE);
246: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
247: Boolean.FALSE);
248: _call
249: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
250: _call.setOperationName(new javax.xml.namespace.QName(
251: "http://soap.salome_tmf.objectweb.org",
252: "getLastIdAttach"));
253:
254: setRequestHeaders(_call);
255: setAttachments(_call);
256: try {
257: java.lang.Object _resp = _call
258: .invoke(new java.lang.Object[] {});
259:
260: if (_resp instanceof java.rmi.RemoteException) {
261: throw (java.rmi.RemoteException) _resp;
262: } else {
263: extractAttachments(_call);
264: try {
265: return ((java.lang.Integer) _resp).intValue();
266: } catch (java.lang.Exception _exception) {
267: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
268: .convert(_resp, int.class)).intValue();
269: }
270: }
271: } catch (org.apache.axis.AxisFault axisFaultException) {
272: throw axisFaultException;
273: }
274: }
275:
276: public void delete(int in0) throws java.rmi.RemoteException {
277: if (super .cachedEndpoint == null) {
278: throw new org.apache.axis.NoEndPointException();
279: }
280: org.apache.axis.client.Call _call = createCall();
281: _call.setOperation(_operations[3]);
282: _call.setUseSOAPAction(true);
283: _call.setSOAPActionURI("");
284: _call.setEncodingStyle(null);
285: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
286: Boolean.FALSE);
287: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
288: Boolean.FALSE);
289: _call
290: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
291: _call.setOperationName(new javax.xml.namespace.QName(
292: "http://soap.salome_tmf.objectweb.org", "delete"));
293:
294: setRequestHeaders(_call);
295: setAttachments(_call);
296: try {
297: java.lang.Object _resp = _call
298: .invoke(new java.lang.Object[] { new java.lang.Integer(
299: in0) });
300:
301: if (_resp instanceof java.rmi.RemoteException) {
302: throw (java.rmi.RemoteException) _resp;
303: }
304: extractAttachments(_call);
305: } catch (org.apache.axis.AxisFault axisFaultException) {
306: throw axisFaultException;
307: }
308: }
309:
310: }
|