001: /**
002: * SQLAttachmentSoapBindingStub.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.ISQLAttachment;
009:
010: public class SQLAttachmentSoapBindingStub extends StubClient implements
011: ISQLAttachment {
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[3];
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("updateDescription");
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", "int"),
034: int.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(org.apache.axis.encoding.XMLType.AXIS_VOID);
044: oper.setStyle(org.apache.axis.constants.Style.RPC);
045: oper.setUse(org.apache.axis.constants.Use.LITERAL);
046: _operations[0] = oper;
047:
048: oper = new org.apache.axis.description.OperationDesc();
049: oper.setName("getLastIdAttach");
050: oper.setReturnType(new javax.xml.namespace.QName(
051: "http://www.w3.org/2001/XMLSchema", "int"));
052: oper.setReturnClass(int.class);
053: oper.setReturnQName(new javax.xml.namespace.QName("",
054: "getLastIdAttachReturn"));
055: oper.setStyle(org.apache.axis.constants.Style.RPC);
056: oper.setUse(org.apache.axis.constants.Use.LITERAL);
057: _operations[1] = oper;
058:
059: oper = new org.apache.axis.description.OperationDesc();
060: oper.setName("delete");
061: param = new org.apache.axis.description.ParameterDesc(
062: new javax.xml.namespace.QName("", "in0"),
063: org.apache.axis.description.ParameterDesc.IN,
064: new javax.xml.namespace.QName(
065: "http://www.w3.org/2001/XMLSchema", "int"),
066: int.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[2] = oper;
072:
073: }
074:
075: public SQLAttachmentSoapBindingStub()
076: throws org.apache.axis.AxisFault {
077: this (null);
078: }
079:
080: public SQLAttachmentSoapBindingStub(java.net.URL endpointURL,
081: javax.xml.rpc.Service service)
082: throws org.apache.axis.AxisFault {
083: this (service);
084: super .cachedEndpoint = endpointURL;
085: }
086:
087: public SQLAttachmentSoapBindingStub(javax.xml.rpc.Service service)
088: throws org.apache.axis.AxisFault {
089: if (service == null) {
090: super .service = new org.apache.axis.client.Service();
091: } else {
092: super .service = service;
093: }
094: ((org.apache.axis.client.Service) super .service)
095: .setTypeMappingVersion("1.2");
096: }
097:
098: protected org.apache.axis.client.Call createCall()
099: throws java.rmi.RemoteException {
100: try {
101: org.apache.axis.client.Call _call = super ._createCall();
102: if (super .maintainSessionSet) {
103: _call.setMaintainSession(super .maintainSession);
104: }
105: if (super .cachedUsername != null) {
106: _call.setUsername(super .cachedUsername);
107: }
108: if (super .cachedPassword != null) {
109: _call.setPassword(super .cachedPassword);
110: }
111: if (super .cachedEndpoint != null) {
112: _call.setTargetEndpointAddress(super .cachedEndpoint);
113: }
114: if (super .cachedTimeout != null) {
115: _call.setTimeout(super .cachedTimeout);
116: }
117: if (super .cachedPortName != null) {
118: _call.setPortName(super .cachedPortName);
119: }
120: java.util.Enumeration keys = super .cachedProperties.keys();
121: while (keys.hasMoreElements()) {
122: java.lang.String key = (java.lang.String) keys
123: .nextElement();
124: _call.setProperty(key, super .cachedProperties.get(key));
125: }
126: return _call;
127: } catch (java.lang.Exception _t) {
128: throw new org.apache.axis.AxisFault(
129: "Failure trying to get the Call object", _t);
130: }
131: }
132:
133: public void updateDescription(int in0, java.lang.String in1)
134: throws java.rmi.RemoteException {
135: if (super .cachedEndpoint == null) {
136: throw new org.apache.axis.NoEndPointException();
137: }
138: org.apache.axis.client.Call _call = createCall();
139: _call.setOperation(_operations[0]);
140: _call.setUseSOAPAction(true);
141: _call.setSOAPActionURI("");
142: _call.setEncodingStyle(null);
143: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
144: Boolean.FALSE);
145: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
146: Boolean.FALSE);
147: _call
148: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
149: _call.setOperationName(new javax.xml.namespace.QName(
150: "http://soap.salome_tmf.objectweb.org",
151: "updateDescription"));
152:
153: setRequestHeaders(_call);
154: setAttachments(_call);
155: try {
156: java.lang.Object _resp = _call
157: .invoke(new java.lang.Object[] {
158: new java.lang.Integer(in0), in1 });
159:
160: if (_resp instanceof java.rmi.RemoteException) {
161: throw (java.rmi.RemoteException) _resp;
162: }
163: extractAttachments(_call);
164: } catch (org.apache.axis.AxisFault axisFaultException) {
165: throw axisFaultException;
166: }
167: }
168:
169: public int getLastIdAttach() throws java.rmi.RemoteException {
170: if (super .cachedEndpoint == null) {
171: throw new org.apache.axis.NoEndPointException();
172: }
173: org.apache.axis.client.Call _call = createCall();
174: _call.setOperation(_operations[1]);
175: _call.setUseSOAPAction(true);
176: _call.setSOAPActionURI("");
177: _call.setEncodingStyle(null);
178: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
179: Boolean.FALSE);
180: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
181: Boolean.FALSE);
182: _call
183: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
184: _call.setOperationName(new javax.xml.namespace.QName(
185: "http://soap.salome_tmf.objectweb.org",
186: "getLastIdAttach"));
187:
188: setRequestHeaders(_call);
189: setAttachments(_call);
190: try {
191: java.lang.Object _resp = _call
192: .invoke(new java.lang.Object[] {});
193:
194: if (_resp instanceof java.rmi.RemoteException) {
195: throw (java.rmi.RemoteException) _resp;
196: } else {
197: extractAttachments(_call);
198: try {
199: return ((java.lang.Integer) _resp).intValue();
200: } catch (java.lang.Exception _exception) {
201: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
202: .convert(_resp, int.class)).intValue();
203: }
204: }
205: } catch (org.apache.axis.AxisFault axisFaultException) {
206: throw axisFaultException;
207: }
208: }
209:
210: public void delete(int in0) throws java.rmi.RemoteException {
211: if (super .cachedEndpoint == null) {
212: throw new org.apache.axis.NoEndPointException();
213: }
214: org.apache.axis.client.Call _call = createCall();
215: _call.setOperation(_operations[2]);
216: _call.setUseSOAPAction(true);
217: _call.setSOAPActionURI("");
218: _call.setEncodingStyle(null);
219: _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
220: Boolean.FALSE);
221: _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
222: Boolean.FALSE);
223: _call
224: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
225: _call.setOperationName(new javax.xml.namespace.QName(
226: "http://soap.salome_tmf.objectweb.org", "delete"));
227:
228: setRequestHeaders(_call);
229: setAttachments(_call);
230: try {
231: java.lang.Object _resp = _call
232: .invoke(new java.lang.Object[] { new java.lang.Integer(
233: in0) });
234:
235: if (_resp instanceof java.rmi.RemoteException) {
236: throw (java.rmi.RemoteException) _resp;
237: }
238: extractAttachments(_call);
239: } catch (org.apache.axis.AxisFault axisFaultException) {
240: throw axisFaultException;
241: }
242: }
243:
244: }
|