1
7
8 package com.liferay.client.soap.portal.service.http;
9
10 public class Portal_CountryServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.CountryServiceSoap {
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 static org.apache.axis.description.OperationDesc [] _operations;
17
18 static {
19 _operations = new org.apache.axis.description.OperationDesc[7];
20 _initOperationDesc1();
21 }
22
23 private static void _initOperationDesc1(){
24 org.apache.axis.description.OperationDesc oper;
25 org.apache.axis.description.ParameterDesc param;
26 oper = new org.apache.axis.description.OperationDesc();
27 oper.setName("getCountry");
28 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "countryId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
29 oper.addParameter(param);
30 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
31 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap.class);
32 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountryReturn"));
33 oper.setStyle(org.apache.axis.constants.Style.RPC);
34 oper.setUse(org.apache.axis.constants.Use.ENCODED);
35 _operations[0] = oper;
36
37 oper = new org.apache.axis.description.OperationDesc();
38 oper.setName("addCountry");
39 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "name"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
40 oper.addParameter(param);
41 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "a2"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
42 oper.addParameter(param);
43 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "a3"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
44 oper.addParameter(param);
45 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "number"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
46 oper.addParameter(param);
47 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "idd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
48 oper.addParameter(param);
49 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "active"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
50 oper.addParameter(param);
51 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
52 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap.class);
53 oper.setReturnQName(new javax.xml.namespace.QName("", "addCountryReturn"));
54 oper.setStyle(org.apache.axis.constants.Style.RPC);
55 oper.setUse(org.apache.axis.constants.Use.ENCODED);
56 _operations[1] = oper;
57
58 oper = new org.apache.axis.description.OperationDesc();
59 oper.setName("getCountries");
60 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "active"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
61 oper.addParameter(param);
62 oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_CountrySoap"));
63 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap[].class);
64 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountriesReturn"));
65 oper.setStyle(org.apache.axis.constants.Style.RPC);
66 oper.setUse(org.apache.axis.constants.Use.ENCODED);
67 _operations[2] = oper;
68
69 oper = new org.apache.axis.description.OperationDesc();
70 oper.setName("getCountries");
71 oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_CountrySoap"));
72 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap[].class);
73 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountriesReturn"));
74 oper.setStyle(org.apache.axis.constants.Style.RPC);
75 oper.setUse(org.apache.axis.constants.Use.ENCODED);
76 _operations[3] = oper;
77
78 oper = new org.apache.axis.description.OperationDesc();
79 oper.setName("getCountryByA2");
80 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "a2"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
81 oper.addParameter(param);
82 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
83 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap.class);
84 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountryByA2Return"));
85 oper.setStyle(org.apache.axis.constants.Style.RPC);
86 oper.setUse(org.apache.axis.constants.Use.ENCODED);
87 _operations[4] = oper;
88
89 oper = new org.apache.axis.description.OperationDesc();
90 oper.setName("getCountryByA3");
91 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "a3"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
92 oper.addParameter(param);
93 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
94 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap.class);
95 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountryByA3Return"));
96 oper.setStyle(org.apache.axis.constants.Style.RPC);
97 oper.setUse(org.apache.axis.constants.Use.ENCODED);
98 _operations[5] = oper;
99
100 oper = new org.apache.axis.description.OperationDesc();
101 oper.setName("getCountryByName");
102 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "name"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
103 oper.addParameter(param);
104 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
105 oper.setReturnClass(com.liferay.client.soap.portal.model.CountrySoap.class);
106 oper.setReturnQName(new javax.xml.namespace.QName("", "getCountryByNameReturn"));
107 oper.setStyle(org.apache.axis.constants.Style.RPC);
108 oper.setUse(org.apache.axis.constants.Use.ENCODED);
109 _operations[6] = oper;
110
111 }
112
113 public Portal_CountryServiceSoapBindingStub() throws org.apache.axis.AxisFault {
114 this(null);
115 }
116
117 public Portal_CountryServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
118 this(service);
119 super.cachedEndpoint = endpointURL;
120 }
121
122 public Portal_CountryServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
123 if (service == null) {
124 super.service = new org.apache.axis.client.Service();
125 } else {
126 super.service = service;
127 }
128 ((org.apache.axis.client.Service)super.service).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("http://model.portal.liferay.com", "CountrySoap");
143 cachedSerQNames.add(qName);
144 cls = com.liferay.client.soap.portal.model.CountrySoap.class;
145 cachedSerClasses.add(cls);
146 cachedSerFactories.add(beansf);
147 cachedDeserFactories.add(beandf);
148
149 qName = new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_CountrySoap");
150 cachedSerQNames.add(qName);
151 cls = com.liferay.client.soap.portal.model.CountrySoap[].class;
152 cachedSerClasses.add(cls);
153 qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap");
154 qName2 = null;
155 cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
156 cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
157
158 }
159
160 protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
161 try {
162 org.apache.axis.client.Call _call = super._createCall();
163 if (super.maintainSessionSet) {
164 _call.setMaintainSession(super.maintainSession);
165 }
166 if (super.cachedUsername != null) {
167 _call.setUsername(super.cachedUsername);
168 }
169 if (super.cachedPassword != null) {
170 _call.setPassword(super.cachedPassword);
171 }
172 if (super.cachedEndpoint != null) {
173 _call.setTargetEndpointAddress(super.cachedEndpoint);
174 }
175 if (super.cachedTimeout != null) {
176 _call.setTimeout(super.cachedTimeout);
177 }
178 if (super.cachedPortName != null) {
179 _call.setPortName(super.cachedPortName);
180 }
181 java.util.Enumeration keys = super.cachedProperties.keys();
182 while (keys.hasMoreElements()) {
183 java.lang.String key = (java.lang.String) keys.nextElement();
184 _call.setProperty(key, super.cachedProperties.get(key));
185 }
186 synchronized (this) {
192 if (firstCall()) {
193 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
195 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
196 for (int i = 0; i < cachedSerFactories.size(); ++i) {
197 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
198 javax.xml.namespace.QName qName =
199 (javax.xml.namespace.QName) cachedSerQNames.get(i);
200 java.lang.Object x = cachedSerFactories.get(i);
201 if (x instanceof Class) {
202 java.lang.Class sf = (java.lang.Class)
203 cachedSerFactories.get(i);
204 java.lang.Class df = (java.lang.Class)
205 cachedDeserFactories.get(i);
206 _call.registerTypeMapping(cls, qName, sf, df, false);
207 }
208 else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
209 org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
210 cachedSerFactories.get(i);
211 org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
212 cachedDeserFactories.get(i);
213 _call.registerTypeMapping(cls, qName, sf, df, false);
214 }
215 }
216 }
217 }
218 return _call;
219 }
220 catch (java.lang.Throwable _t) {
221 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
222 }
223 }
224
225 public com.liferay.client.soap.portal.model.CountrySoap getCountry(long countryId) throws java.rmi.RemoteException {
226 if (super.cachedEndpoint == null) {
227 throw new org.apache.axis.NoEndPointException();
228 }
229 org.apache.axis.client.Call _call = createCall();
230 _call.setOperation(_operations[0]);
231 _call.setUseSOAPAction(true);
232 _call.setSOAPActionURI("");
233 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
234 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountry"));
235
236 setRequestHeaders(_call);
237 setAttachments(_call);
238 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(countryId)});
239
240 if (_resp instanceof java.rmi.RemoteException) {
241 throw (java.rmi.RemoteException)_resp;
242 }
243 else {
244 extractAttachments(_call);
245 try {
246 return (com.liferay.client.soap.portal.model.CountrySoap) _resp;
247 } catch (java.lang.Exception _exception) {
248 return (com.liferay.client.soap.portal.model.CountrySoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap.class);
249 }
250 }
251 } catch (org.apache.axis.AxisFault axisFaultException) {
252 throw axisFaultException;
253 }
254 }
255
256 public com.liferay.client.soap.portal.model.CountrySoap addCountry(java.lang.String name, java.lang.String a2, java.lang.String a3, java.lang.String number, java.lang.String idd, boolean active) throws java.rmi.RemoteException {
257 if (super.cachedEndpoint == null) {
258 throw new org.apache.axis.NoEndPointException();
259 }
260 org.apache.axis.client.Call _call = createCall();
261 _call.setOperation(_operations[1]);
262 _call.setUseSOAPAction(true);
263 _call.setSOAPActionURI("");
264 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
265 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "addCountry"));
266
267 setRequestHeaders(_call);
268 setAttachments(_call);
269 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {name, a2, a3, number, idd, new java.lang.Boolean(active)});
270
271 if (_resp instanceof java.rmi.RemoteException) {
272 throw (java.rmi.RemoteException)_resp;
273 }
274 else {
275 extractAttachments(_call);
276 try {
277 return (com.liferay.client.soap.portal.model.CountrySoap) _resp;
278 } catch (java.lang.Exception _exception) {
279 return (com.liferay.client.soap.portal.model.CountrySoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap.class);
280 }
281 }
282 } catch (org.apache.axis.AxisFault axisFaultException) {
283 throw axisFaultException;
284 }
285 }
286
287 public com.liferay.client.soap.portal.model.CountrySoap[] getCountries(boolean active) throws java.rmi.RemoteException {
288 if (super.cachedEndpoint == null) {
289 throw new org.apache.axis.NoEndPointException();
290 }
291 org.apache.axis.client.Call _call = createCall();
292 _call.setOperation(_operations[2]);
293 _call.setUseSOAPAction(true);
294 _call.setSOAPActionURI("");
295 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
296 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountries"));
297
298 setRequestHeaders(_call);
299 setAttachments(_call);
300 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Boolean(active)});
301
302 if (_resp instanceof java.rmi.RemoteException) {
303 throw (java.rmi.RemoteException)_resp;
304 }
305 else {
306 extractAttachments(_call);
307 try {
308 return (com.liferay.client.soap.portal.model.CountrySoap[]) _resp;
309 } catch (java.lang.Exception _exception) {
310 return (com.liferay.client.soap.portal.model.CountrySoap[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap[].class);
311 }
312 }
313 } catch (org.apache.axis.AxisFault axisFaultException) {
314 throw axisFaultException;
315 }
316 }
317
318 public com.liferay.client.soap.portal.model.CountrySoap[] getCountries() throws java.rmi.RemoteException {
319 if (super.cachedEndpoint == null) {
320 throw new org.apache.axis.NoEndPointException();
321 }
322 org.apache.axis.client.Call _call = createCall();
323 _call.setOperation(_operations[3]);
324 _call.setUseSOAPAction(true);
325 _call.setSOAPActionURI("");
326 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
327 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountries"));
328
329 setRequestHeaders(_call);
330 setAttachments(_call);
331 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
332
333 if (_resp instanceof java.rmi.RemoteException) {
334 throw (java.rmi.RemoteException)_resp;
335 }
336 else {
337 extractAttachments(_call);
338 try {
339 return (com.liferay.client.soap.portal.model.CountrySoap[]) _resp;
340 } catch (java.lang.Exception _exception) {
341 return (com.liferay.client.soap.portal.model.CountrySoap[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap[].class);
342 }
343 }
344 } catch (org.apache.axis.AxisFault axisFaultException) {
345 throw axisFaultException;
346 }
347 }
348
349 public com.liferay.client.soap.portal.model.CountrySoap getCountryByA2(java.lang.String a2) 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[4]);
355 _call.setUseSOAPAction(true);
356 _call.setSOAPActionURI("");
357 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
358 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountryByA2"));
359
360 setRequestHeaders(_call);
361 setAttachments(_call);
362 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {a2});
363
364 if (_resp instanceof java.rmi.RemoteException) {
365 throw (java.rmi.RemoteException)_resp;
366 }
367 else {
368 extractAttachments(_call);
369 try {
370 return (com.liferay.client.soap.portal.model.CountrySoap) _resp;
371 } catch (java.lang.Exception _exception) {
372 return (com.liferay.client.soap.portal.model.CountrySoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap.class);
373 }
374 }
375 } catch (org.apache.axis.AxisFault axisFaultException) {
376 throw axisFaultException;
377 }
378 }
379
380 public com.liferay.client.soap.portal.model.CountrySoap getCountryByA3(java.lang.String a3) throws java.rmi.RemoteException {
381 if (super.cachedEndpoint == null) {
382 throw new org.apache.axis.NoEndPointException();
383 }
384 org.apache.axis.client.Call _call = createCall();
385 _call.setOperation(_operations[5]);
386 _call.setUseSOAPAction(true);
387 _call.setSOAPActionURI("");
388 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
389 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountryByA3"));
390
391 setRequestHeaders(_call);
392 setAttachments(_call);
393 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {a3});
394
395 if (_resp instanceof java.rmi.RemoteException) {
396 throw (java.rmi.RemoteException)_resp;
397 }
398 else {
399 extractAttachments(_call);
400 try {
401 return (com.liferay.client.soap.portal.model.CountrySoap) _resp;
402 } catch (java.lang.Exception _exception) {
403 return (com.liferay.client.soap.portal.model.CountrySoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap.class);
404 }
405 }
406 } catch (org.apache.axis.AxisFault axisFaultException) {
407 throw axisFaultException;
408 }
409 }
410
411 public com.liferay.client.soap.portal.model.CountrySoap getCountryByName(java.lang.String name) throws java.rmi.RemoteException {
412 if (super.cachedEndpoint == null) {
413 throw new org.apache.axis.NoEndPointException();
414 }
415 org.apache.axis.client.Call _call = createCall();
416 _call.setOperation(_operations[6]);
417 _call.setUseSOAPAction(true);
418 _call.setSOAPActionURI("");
419 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
420 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getCountryByName"));
421
422 setRequestHeaders(_call);
423 setAttachments(_call);
424 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {name});
425
426 if (_resp instanceof java.rmi.RemoteException) {
427 throw (java.rmi.RemoteException)_resp;
428 }
429 else {
430 extractAttachments(_call);
431 try {
432 return (com.liferay.client.soap.portal.model.CountrySoap) _resp;
433 } catch (java.lang.Exception _exception) {
434 return (com.liferay.client.soap.portal.model.CountrySoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.CountrySoap.class);
435 }
436 }
437 } catch (org.apache.axis.AxisFault axisFaultException) {
438 throw axisFaultException;
439 }
440 }
441
442 }
443