001: /**
002: * Doc_Test_BindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package interop.wsifserviceWrapped;
007:
008: public class Doc_Test_BindingStub extends org.apache.axis.client.Stub
009: implements interop.wsifserviceWrapped.Doc_TestPortType {
010: private java.util.Vector cachedSerClasses = new java.util.Vector();
011: private java.util.Vector cachedSerQNames = new java.util.Vector();
012: private java.util.Vector cachedSerFactories = new java.util.Vector();
013: private java.util.Vector cachedDeserFactories = new java.util.Vector();
014:
015: public Doc_Test_BindingStub() throws org.apache.axis.AxisFault {
016: this (null);
017: }
018:
019: public Doc_Test_BindingStub(java.net.URL endpointURL,
020: javax.xml.rpc.Service service)
021: throws org.apache.axis.AxisFault {
022: this (service);
023: super .cachedEndpoint = endpointURL;
024: }
025:
026: public Doc_Test_BindingStub(javax.xml.rpc.Service service)
027: throws org.apache.axis.AxisFault {
028: if (service == null) {
029: super .service = new org.apache.axis.client.Service();
030: } else {
031: super .service = service;
032: }
033: java.lang.Class cls;
034: javax.xml.namespace.QName qName;
035: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
036: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
037: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
038: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
039: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
040: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
041: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
042: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
043: qName = new javax.xml.namespace.QName(
044: "http://soapinterop.org/", ">ComplexDocument");
045: cachedSerQNames.add(qName);
046: cls = interop.wsifserviceWrapped.ComplexDocument_ElemType.class;
047: cachedSerClasses.add(cls);
048: cachedSerFactories.add(beansf);
049: cachedDeserFactories.add(beandf);
050:
051: qName = new javax.xml.namespace.QName(
052: "http://soapinterop.org/", ">SingleTagResponse");
053: cachedSerQNames.add(qName);
054: cls = interop.wsifserviceWrapped.SingleTagResponse.class;
055: cachedSerClasses.add(cls);
056: cachedSerFactories.add(beansf);
057: cachedDeserFactories.add(beandf);
058:
059: qName = new javax.xml.namespace.QName(
060: "http://soapinterop.org/", "ArrayOfSimpleDocument");
061: cachedSerQNames.add(qName);
062: cls = interop.wsifserviceWrapped.ArrayOfSimpleDocument.class;
063: cachedSerClasses.add(cls);
064: cachedSerFactories.add(beansf);
065: cachedDeserFactories.add(beandf);
066:
067: qName = new javax.xml.namespace.QName(
068: "http://soapinterop.org/", "SingleTag");
069: cachedSerQNames.add(qName);
070: cls = interop.wsifserviceWrapped.SingleTag_Type.class;
071: cachedSerClasses.add(cls);
072: cachedSerFactories.add(beansf);
073: cachedDeserFactories.add(beandf);
074:
075: qName = new javax.xml.namespace.QName(
076: "http://soapinterop.org/", "ComplexDocument");
077: cachedSerQNames.add(qName);
078: cls = interop.wsifserviceWrapped.ComplexDocument_Type.class;
079: cachedSerClasses.add(cls);
080: cachedSerFactories.add(beansf);
081: cachedDeserFactories.add(beandf);
082:
083: qName = new javax.xml.namespace.QName(
084: "http://soapinterop.org/", "ChildDocument");
085: cachedSerQNames.add(qName);
086: cls = interop.wsifserviceWrapped.ChildDocument.class;
087: cachedSerClasses.add(cls);
088: cachedSerFactories.add(beansf);
089: cachedDeserFactories.add(beandf);
090:
091: qName = new javax.xml.namespace.QName(
092: "http://soapinterop.org/", ">SimpleDocumentResponse");
093: cachedSerQNames.add(qName);
094: cls = interop.wsifserviceWrapped.SimpleDocumentResponse.class;
095: cachedSerClasses.add(cls);
096: cachedSerFactories.add(beansf);
097: cachedDeserFactories.add(beandf);
098:
099: qName = new javax.xml.namespace.QName(
100: "http://soapinterop.org/", ">SimpleDocument");
101: cachedSerQNames.add(qName);
102: cls = interop.wsifserviceWrapped.SimpleDocument_ElemType.class;
103: cachedSerClasses.add(cls);
104: cachedSerFactories.add(beansf);
105: cachedDeserFactories.add(beandf);
106:
107: qName = new javax.xml.namespace.QName(
108: "http://soapinterop.org/", "SimpleDocument");
109: cachedSerQNames.add(qName);
110: cls = interop.wsifserviceWrapped.SimpleDocument_Type.class;
111: cachedSerClasses.add(cls);
112: cachedSerFactories.add(simplesf);
113: cachedDeserFactories.add(simpledf);
114:
115: qName = new javax.xml.namespace.QName(
116: "http://soapinterop.org/", ">SingleTag");
117: cachedSerQNames.add(qName);
118: cls = interop.wsifserviceWrapped.SingleTag_ElemType.class;
119: cachedSerClasses.add(cls);
120: cachedSerFactories.add(beansf);
121: cachedDeserFactories.add(beandf);
122:
123: qName = new javax.xml.namespace.QName(
124: "http://soapinterop.org/", ">ComplexDocumentResponse");
125: cachedSerQNames.add(qName);
126: cls = interop.wsifserviceWrapped.ComplexDocumentResponse.class;
127: cachedSerClasses.add(cls);
128: cachedSerFactories.add(beansf);
129: cachedDeserFactories.add(beandf);
130:
131: }
132:
133: private org.apache.axis.client.Call createCall()
134: throws java.rmi.RemoteException {
135: try {
136: org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super .service
137: .createCall();
138: if (super .maintainSessionSet) {
139: _call.setMaintainSession(super .maintainSession);
140: }
141: if (super .cachedUsername != null) {
142: _call.setUsername(super .cachedUsername);
143: }
144: if (super .cachedPassword != null) {
145: _call.setPassword(super .cachedPassword);
146: }
147: if (super .cachedEndpoint != null) {
148: _call.setTargetEndpointAddress(super .cachedEndpoint);
149: }
150: if (super .cachedTimeout != null) {
151: _call.setTimeout(super .cachedTimeout);
152: }
153: if (super .cachedPortName != null) {
154: _call.setPortName(super .cachedPortName);
155: }
156: java.util.Enumeration keys = super .cachedProperties.keys();
157: while (keys.hasMoreElements()) {
158: java.lang.String key = (java.lang.String) keys
159: .nextElement();
160: if (_call.isPropertySupported(key))
161: _call.setProperty(key, super .cachedProperties
162: .get(key));
163: else
164: _call.setScopedProperty(key, super .cachedProperties
165: .get(key));
166: }
167: // All the type mapping information is registered
168: // when the first call is made.
169: // The type mapping information is actually registered in
170: // the TypeMappingRegistry of the service, which
171: // is the reason why registration is only needed for the first call.
172: synchronized (this ) {
173: if (firstCall()) {
174: // must set encoding style before registering serializers
175: _call.setEncodingStyle(null);
176: for (int i = 0; i < cachedSerFactories.size(); ++i) {
177: java.lang.Class cls = (java.lang.Class) cachedSerClasses
178: .get(i);
179: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
180: .get(i);
181: java.lang.Class sf = (java.lang.Class) cachedSerFactories
182: .get(i);
183: java.lang.Class df = (java.lang.Class) cachedDeserFactories
184: .get(i);
185: _call.registerTypeMapping(cls, qName, sf, df,
186: false);
187: }
188: }
189: }
190: return _call;
191: } catch (java.lang.Throwable t) {
192: throw new org.apache.axis.AxisFault(
193: "Failure trying to get the Call object", t);
194: }
195: }
196:
197: public interop.wsifserviceWrapped.SingleTagResponse singleTag(
198: interop.wsifserviceWrapped.SingleTag_ElemType parameters)
199: throws java.rmi.RemoteException {
200: if (super .cachedEndpoint == null) {
201: throw new org.apache.axis.NoEndPointException();
202: }
203: org.apache.axis.client.Call _call = createCall();
204: _call.addParameter(new javax.xml.namespace.QName(
205: "http://soapinterop.org/", "SingleTag"),
206: new javax.xml.namespace.QName(
207: "http://soapinterop.org/", ">SingleTag"),
208: interop.wsifserviceWrapped.SingleTag_ElemType.class,
209: javax.xml.rpc.ParameterMode.IN);
210: _call.setReturnType(new javax.xml.namespace.QName(
211: "http://soapinterop.org/", ">SingleTagResponse"),
212: interop.wsifserviceWrapped.SingleTagResponse.class);
213: _call.setUseSOAPAction(true);
214: _call.setSOAPActionURI("http://soapinterop.org/SingleTag");
215: _call.setEncodingStyle(null);
216: _call.setScopedProperty(
217: org.apache.axis.client.Call.SEND_TYPE_ATTR,
218: Boolean.FALSE);
219: _call.setScopedProperty(
220: org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
221: Boolean.FALSE);
222: _call.setOperationStyle("document");
223: _call.setOperationName(new javax.xml.namespace.QName(
224: "http://soapinterop.org/", "SingleTag"));
225:
226: java.lang.Object _resp = _call
227: .invoke(new java.lang.Object[] { parameters });
228:
229: if (_resp instanceof java.rmi.RemoteException) {
230: throw (java.rmi.RemoteException) _resp;
231: } else {
232: try {
233: return (interop.wsifserviceWrapped.SingleTagResponse) _resp;
234: } catch (java.lang.Exception _exception) {
235: return (interop.wsifserviceWrapped.SingleTagResponse) org.apache.axis.utils.JavaUtils
236: .convert(
237: _resp,
238: interop.wsifserviceWrapped.SingleTagResponse.class);
239: }
240: }
241: }
242:
243: public interop.wsifserviceWrapped.SimpleDocumentResponse simpleDocument(
244: interop.wsifserviceWrapped.SimpleDocument_ElemType parameters)
245: throws java.rmi.RemoteException {
246: if (super .cachedEndpoint == null) {
247: throw new org.apache.axis.NoEndPointException();
248: }
249: org.apache.axis.client.Call _call = createCall();
250: _call
251: .addParameter(
252: new javax.xml.namespace.QName(
253: "http://soapinterop.org/",
254: "SimpleDocument"),
255: new javax.xml.namespace.QName(
256: "http://soapinterop.org/",
257: ">SimpleDocument"),
258: interop.wsifserviceWrapped.SimpleDocument_ElemType.class,
259: javax.xml.rpc.ParameterMode.IN);
260: _call
261: .setReturnType(
262: new javax.xml.namespace.QName(
263: "http://soapinterop.org/",
264: ">SimpleDocumentResponse"),
265: interop.wsifserviceWrapped.SimpleDocumentResponse.class);
266: _call.setUseSOAPAction(true);
267: _call.setSOAPActionURI("http://soapinterop.org/SimpleDocument");
268: _call.setEncodingStyle(null);
269: _call.setScopedProperty(
270: org.apache.axis.client.Call.SEND_TYPE_ATTR,
271: Boolean.FALSE);
272: _call.setScopedProperty(
273: org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
274: Boolean.FALSE);
275: _call.setOperationStyle("document");
276: _call.setOperationName(new javax.xml.namespace.QName(
277: "http://soapinterop.org/", "SimpleDocument"));
278:
279: java.lang.Object _resp = _call
280: .invoke(new java.lang.Object[] { parameters });
281:
282: if (_resp instanceof java.rmi.RemoteException) {
283: throw (java.rmi.RemoteException) _resp;
284: } else {
285: try {
286: return (interop.wsifserviceWrapped.SimpleDocumentResponse) _resp;
287: } catch (java.lang.Exception _exception) {
288: return (interop.wsifserviceWrapped.SimpleDocumentResponse) org.apache.axis.utils.JavaUtils
289: .convert(
290: _resp,
291: interop.wsifserviceWrapped.SimpleDocumentResponse.class);
292: }
293: }
294: }
295:
296: public interop.wsifserviceWrapped.ComplexDocumentResponse complexDocument(
297: interop.wsifserviceWrapped.ComplexDocument_ElemType parameters)
298: throws java.rmi.RemoteException {
299: if (super .cachedEndpoint == null) {
300: throw new org.apache.axis.NoEndPointException();
301: }
302: org.apache.axis.client.Call _call = createCall();
303: _call
304: .addParameter(
305: new javax.xml.namespace.QName(
306: "http://soapinterop.org/",
307: "ComplexDocument"),
308: new javax.xml.namespace.QName(
309: "http://soapinterop.org/",
310: ">ComplexDocument"),
311: interop.wsifserviceWrapped.ComplexDocument_ElemType.class,
312: javax.xml.rpc.ParameterMode.IN);
313: _call
314: .setReturnType(
315: new javax.xml.namespace.QName(
316: "http://soapinterop.org/",
317: ">ComplexDocumentResponse"),
318: interop.wsifserviceWrapped.ComplexDocumentResponse.class);
319: _call.setUseSOAPAction(true);
320: _call
321: .setSOAPActionURI("http://soapinterop.org/ComplexDocument");
322: _call.setEncodingStyle(null);
323: _call.setScopedProperty(
324: org.apache.axis.client.Call.SEND_TYPE_ATTR,
325: Boolean.FALSE);
326: _call.setScopedProperty(
327: org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
328: Boolean.FALSE);
329: _call.setOperationStyle("document");
330: _call.setOperationName(new javax.xml.namespace.QName(
331: "http://soapinterop.org/", "ComplexDocument"));
332:
333: java.lang.Object _resp = _call
334: .invoke(new java.lang.Object[] { parameters });
335:
336: if (_resp instanceof java.rmi.RemoteException) {
337: throw (java.rmi.RemoteException) _resp;
338: } else {
339: try {
340: return (interop.wsifserviceWrapped.ComplexDocumentResponse) _resp;
341: } catch (java.lang.Exception _exception) {
342: return (interop.wsifserviceWrapped.ComplexDocumentResponse) org.apache.axis.utils.JavaUtils
343: .convert(
344: _resp,
345: interop.wsifserviceWrapped.ComplexDocumentResponse.class);
346: }
347: }
348: }
349:
350: }
|