Source code: interop/wsifserviceWrapped/Doc_Test_BindingStub.java
1 /**
2 * Doc_Test_BindingStub.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package interop.wsifserviceWrapped;
9
10 public class Doc_Test_BindingStub extends org.apache.axis.client.Stub implements interop.wsifserviceWrapped.Doc_TestPortType {
11 private java.util.Vector cachedSerClasses = new java.util.Vector();
12 private java.util.Vector cachedSerQNames = new java.util.Vector();
13 private java.util.Vector cachedSerFactories = new java.util.Vector();
14 private java.util.Vector cachedDeserFactories = new java.util.Vector();
15
16 public Doc_Test_BindingStub() throws org.apache.axis.AxisFault {
17 this(null);
18 }
19
20 public Doc_Test_BindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
21 this(service);
22 super.cachedEndpoint = endpointURL;
23 }
24
25 public Doc_Test_BindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
26 if (service == null) {
27 super.service = new org.apache.axis.client.Service();
28 } else {
29 super.service = service;
30 }
31 java.lang.Class cls;
32 javax.xml.namespace.QName qName;
33 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
34 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
35 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
36 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
37 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
38 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
39 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
40 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
41 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">ComplexDocument");
42 cachedSerQNames.add(qName);
43 cls = interop.wsifserviceWrapped.ComplexDocument_ElemType.class;
44 cachedSerClasses.add(cls);
45 cachedSerFactories.add(beansf);
46 cachedDeserFactories.add(beandf);
47
48 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">SingleTagResponse");
49 cachedSerQNames.add(qName);
50 cls = interop.wsifserviceWrapped.SingleTagResponse.class;
51 cachedSerClasses.add(cls);
52 cachedSerFactories.add(beansf);
53 cachedDeserFactories.add(beandf);
54
55 qName = new javax.xml.namespace.QName("http://soapinterop.org/", "ArrayOfSimpleDocument");
56 cachedSerQNames.add(qName);
57 cls = interop.wsifserviceWrapped.ArrayOfSimpleDocument.class;
58 cachedSerClasses.add(cls);
59 cachedSerFactories.add(beansf);
60 cachedDeserFactories.add(beandf);
61
62 qName = new javax.xml.namespace.QName("http://soapinterop.org/", "SingleTag");
63 cachedSerQNames.add(qName);
64 cls = interop.wsifserviceWrapped.SingleTag_Type.class;
65 cachedSerClasses.add(cls);
66 cachedSerFactories.add(beansf);
67 cachedDeserFactories.add(beandf);
68
69 qName = new javax.xml.namespace.QName("http://soapinterop.org/", "ComplexDocument");
70 cachedSerQNames.add(qName);
71 cls = interop.wsifserviceWrapped.ComplexDocument_Type.class;
72 cachedSerClasses.add(cls);
73 cachedSerFactories.add(beansf);
74 cachedDeserFactories.add(beandf);
75
76 qName = new javax.xml.namespace.QName("http://soapinterop.org/", "ChildDocument");
77 cachedSerQNames.add(qName);
78 cls = interop.wsifserviceWrapped.ChildDocument.class;
79 cachedSerClasses.add(cls);
80 cachedSerFactories.add(beansf);
81 cachedDeserFactories.add(beandf);
82
83 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">SimpleDocumentResponse");
84 cachedSerQNames.add(qName);
85 cls = interop.wsifserviceWrapped.SimpleDocumentResponse.class;
86 cachedSerClasses.add(cls);
87 cachedSerFactories.add(beansf);
88 cachedDeserFactories.add(beandf);
89
90 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">SimpleDocument");
91 cachedSerQNames.add(qName);
92 cls = interop.wsifserviceWrapped.SimpleDocument_ElemType.class;
93 cachedSerClasses.add(cls);
94 cachedSerFactories.add(beansf);
95 cachedDeserFactories.add(beandf);
96
97 qName = new javax.xml.namespace.QName("http://soapinterop.org/", "SimpleDocument");
98 cachedSerQNames.add(qName);
99 cls = interop.wsifserviceWrapped.SimpleDocument_Type.class;
100 cachedSerClasses.add(cls);
101 cachedSerFactories.add(simplesf);
102 cachedDeserFactories.add(simpledf);
103
104 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">SingleTag");
105 cachedSerQNames.add(qName);
106 cls = interop.wsifserviceWrapped.SingleTag_ElemType.class;
107 cachedSerClasses.add(cls);
108 cachedSerFactories.add(beansf);
109 cachedDeserFactories.add(beandf);
110
111 qName = new javax.xml.namespace.QName("http://soapinterop.org/", ">ComplexDocumentResponse");
112 cachedSerQNames.add(qName);
113 cls = interop.wsifserviceWrapped.ComplexDocumentResponse.class;
114 cachedSerClasses.add(cls);
115 cachedSerFactories.add(beansf);
116 cachedDeserFactories.add(beandf);
117
118 }
119
120 private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
121 try {
122 org.apache.axis.client.Call _call =
123 (org.apache.axis.client.Call) super.service.createCall();
124 if (super.maintainSessionSet) {
125 _call.setMaintainSession(super.maintainSession);
126 }
127 if (super.cachedUsername != null) {
128 _call.setUsername(super.cachedUsername);
129 }
130 if (super.cachedPassword != null) {
131 _call.setPassword(super.cachedPassword);
132 }
133 if (super.cachedEndpoint != null) {
134 _call.setTargetEndpointAddress(super.cachedEndpoint);
135 }
136 if (super.cachedTimeout != null) {
137 _call.setTimeout(super.cachedTimeout);
138 }
139 if (super.cachedPortName != null) {
140 _call.setPortName(super.cachedPortName);
141 }
142 java.util.Enumeration keys = super.cachedProperties.keys();
143 while (keys.hasMoreElements()) {
144 java.lang.String key = (java.lang.String) keys.nextElement();
145 if(_call.isPropertySupported(key))
146 _call.setProperty(key, super.cachedProperties.get(key));
147 else
148 _call.setScopedProperty(key, super.cachedProperties.get(key));
149 }
150 // All the type mapping information is registered
151 // when the first call is made.
152 // The type mapping information is actually registered in
153 // the TypeMappingRegistry of the service, which
154 // is the reason why registration is only needed for the first call.
155 synchronized (this) {
156 if (firstCall()) {
157 // must set encoding style before registering serializers
158 _call.setEncodingStyle(null);
159 for (int i = 0; i < cachedSerFactories.size(); ++i) {
160 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
161 javax.xml.namespace.QName qName =
162 (javax.xml.namespace.QName) cachedSerQNames.get(i);
163 java.lang.Class sf = (java.lang.Class)
164 cachedSerFactories.get(i);
165 java.lang.Class df = (java.lang.Class)
166 cachedDeserFactories.get(i);
167 _call.registerTypeMapping(cls, qName, sf, df, false);
168 }
169 }
170 }
171 return _call;
172 }
173 catch (java.lang.Throwable t) {
174 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
175 }
176 }
177
178 public interop.wsifserviceWrapped.SingleTagResponse singleTag(interop.wsifserviceWrapped.SingleTag_ElemType parameters) throws java.rmi.RemoteException {
179 if (super.cachedEndpoint == null) {
180 throw new org.apache.axis.NoEndPointException();
181 }
182 org.apache.axis.client.Call _call = createCall();
183 _call.addParameter(new javax.xml.namespace.QName("http://soapinterop.org/", "SingleTag"), new javax.xml.namespace.QName("http://soapinterop.org/", ">SingleTag"), interop.wsifserviceWrapped.SingleTag_ElemType.class, javax.xml.rpc.ParameterMode.IN);
184 _call.setReturnType(new javax.xml.namespace.QName("http://soapinterop.org/", ">SingleTagResponse"), interop.wsifserviceWrapped.SingleTagResponse.class);
185 _call.setUseSOAPAction(true);
186 _call.setSOAPActionURI("http://soapinterop.org/SingleTag");
187 _call.setEncodingStyle(null);
188 _call.setScopedProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
189 _call.setScopedProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
190 _call.setOperationStyle("document");
191 _call.setOperationName(new javax.xml.namespace.QName("http://soapinterop.org/", "SingleTag"));
192
193 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters});
194
195 if (_resp instanceof java.rmi.RemoteException) {
196 throw (java.rmi.RemoteException)_resp;
197 }
198 else {
199 try {
200 return (interop.wsifserviceWrapped.SingleTagResponse) _resp;
201 } catch (java.lang.Exception _exception) {
202 return (interop.wsifserviceWrapped.SingleTagResponse) org.apache.axis.utils.JavaUtils.convert(_resp, interop.wsifserviceWrapped.SingleTagResponse.class);
203 }
204 }
205 }
206
207 public interop.wsifserviceWrapped.SimpleDocumentResponse simpleDocument(interop.wsifserviceWrapped.SimpleDocument_ElemType parameters) throws java.rmi.RemoteException {
208 if (super.cachedEndpoint == null) {
209 throw new org.apache.axis.NoEndPointException();
210 }
211 org.apache.axis.client.Call _call = createCall();
212 _call.addParameter(new javax.xml.namespace.QName("http://soapinterop.org/", "SimpleDocument"), new javax.xml.namespace.QName("http://soapinterop.org/", ">SimpleDocument"), interop.wsifserviceWrapped.SimpleDocument_ElemType.class, javax.xml.rpc.ParameterMode.IN);
213 _call.setReturnType(new javax.xml.namespace.QName("http://soapinterop.org/", ">SimpleDocumentResponse"), interop.wsifserviceWrapped.SimpleDocumentResponse.class);
214 _call.setUseSOAPAction(true);
215 _call.setSOAPActionURI("http://soapinterop.org/SimpleDocument");
216 _call.setEncodingStyle(null);
217 _call.setScopedProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
218 _call.setScopedProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
219 _call.setOperationStyle("document");
220 _call.setOperationName(new javax.xml.namespace.QName("http://soapinterop.org/", "SimpleDocument"));
221
222 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters});
223
224 if (_resp instanceof java.rmi.RemoteException) {
225 throw (java.rmi.RemoteException)_resp;
226 }
227 else {
228 try {
229 return (interop.wsifserviceWrapped.SimpleDocumentResponse) _resp;
230 } catch (java.lang.Exception _exception) {
231 return (interop.wsifserviceWrapped.SimpleDocumentResponse) org.apache.axis.utils.JavaUtils.convert(_resp, interop.wsifserviceWrapped.SimpleDocumentResponse.class);
232 }
233 }
234 }
235
236 public interop.wsifserviceWrapped.ComplexDocumentResponse complexDocument(interop.wsifserviceWrapped.ComplexDocument_ElemType parameters) throws java.rmi.RemoteException {
237 if (super.cachedEndpoint == null) {
238 throw new org.apache.axis.NoEndPointException();
239 }
240 org.apache.axis.client.Call _call = createCall();
241 _call.addParameter(new javax.xml.namespace.QName("http://soapinterop.org/", "ComplexDocument"), new javax.xml.namespace.QName("http://soapinterop.org/", ">ComplexDocument"), interop.wsifserviceWrapped.ComplexDocument_ElemType.class, javax.xml.rpc.ParameterMode.IN);
242 _call.setReturnType(new javax.xml.namespace.QName("http://soapinterop.org/", ">ComplexDocumentResponse"), interop.wsifserviceWrapped.ComplexDocumentResponse.class);
243 _call.setUseSOAPAction(true);
244 _call.setSOAPActionURI("http://soapinterop.org/ComplexDocument");
245 _call.setEncodingStyle(null);
246 _call.setScopedProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
247 _call.setScopedProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
248 _call.setOperationStyle("document");
249 _call.setOperationName(new javax.xml.namespace.QName("http://soapinterop.org/", "ComplexDocument"));
250
251 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters});
252
253 if (_resp instanceof java.rmi.RemoteException) {
254 throw (java.rmi.RemoteException)_resp;
255 }
256 else {
257 try {
258 return (interop.wsifserviceWrapped.ComplexDocumentResponse) _resp;
259 } catch (java.lang.Exception _exception) {
260 return (interop.wsifserviceWrapped.ComplexDocumentResponse) org.apache.axis.utils.JavaUtils.convert(_resp, interop.wsifserviceWrapped.ComplexDocumentResponse.class);
261 }
262 }
263 }
264
265 }