1   /**
2    * Portlet_Polls_PollsQuestionServiceSoapBindingStub.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portlet.polls.service.http;
9   
10  public class Portlet_Polls_PollsQuestionServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portlet.polls.service.http.PollsQuestionServiceSoap {
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[4];
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("addQuestion");
28          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "title"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
29          oper.addParameter(param);
30          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "description"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
31          oper.addParameter(param);
32          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateMonth"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
33          oper.addParameter(param);
34          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateDay"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
35          oper.addParameter(param);
36          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateYear"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
37          oper.addParameter(param);
38          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateHour"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
39          oper.addParameter(param);
40          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateMinute"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
41          oper.addParameter(param);
42          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "neverExpire"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
43          oper.addParameter(param);
44          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "choices"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "ArrayOf_tns2_PollsChoiceSoap"), com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap[].class, false, false);
45          oper.addParameter(param);
46          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "serviceContext"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext"), com.liferay.client.soap.portal.service.ServiceContext.class, false, false);
47          oper.addParameter(param);
48          oper.setReturnType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap"));
49          oper.setReturnClass(com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
50          oper.setReturnQName(new javax.xml.namespace.QName("", "addQuestionReturn"));
51          oper.setStyle(org.apache.axis.constants.Style.RPC);
52          oper.setUse(org.apache.axis.constants.Use.ENCODED);
53          _operations[0] = oper;
54  
55          oper = new org.apache.axis.description.OperationDesc();
56          oper.setName("deleteQuestion");
57          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "questionId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
58          oper.addParameter(param);
59          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
60          oper.setStyle(org.apache.axis.constants.Style.RPC);
61          oper.setUse(org.apache.axis.constants.Use.ENCODED);
62          _operations[1] = oper;
63  
64          oper = new org.apache.axis.description.OperationDesc();
65          oper.setName("getQuestion");
66          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "questionId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
67          oper.addParameter(param);
68          oper.setReturnType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap"));
69          oper.setReturnClass(com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
70          oper.setReturnQName(new javax.xml.namespace.QName("", "getQuestionReturn"));
71          oper.setStyle(org.apache.axis.constants.Style.RPC);
72          oper.setUse(org.apache.axis.constants.Use.ENCODED);
73          _operations[2] = oper;
74  
75          oper = new org.apache.axis.description.OperationDesc();
76          oper.setName("updateQuestion");
77          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "questionId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
78          oper.addParameter(param);
79          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "title"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
80          oper.addParameter(param);
81          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "description"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
82          oper.addParameter(param);
83          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateMonth"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
84          oper.addParameter(param);
85          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateDay"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
86          oper.addParameter(param);
87          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateYear"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
88          oper.addParameter(param);
89          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateHour"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
90          oper.addParameter(param);
91          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "expirationDateMinute"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
92          oper.addParameter(param);
93          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "neverExpire"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
94          oper.addParameter(param);
95          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "choices"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "ArrayOf_tns2_PollsChoiceSoap"), com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap[].class, false, false);
96          oper.addParameter(param);
97          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "serviceContext"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext"), com.liferay.client.soap.portal.service.ServiceContext.class, false, false);
98          oper.addParameter(param);
99          oper.setReturnType(new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap"));
100         oper.setReturnClass(com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
101         oper.setReturnQName(new javax.xml.namespace.QName("", "updateQuestionReturn"));
102         oper.setStyle(org.apache.axis.constants.Style.RPC);
103         oper.setUse(org.apache.axis.constants.Use.ENCODED);
104         _operations[3] = oper;
105 
106     }
107 
108     public Portlet_Polls_PollsQuestionServiceSoapBindingStub() throws org.apache.axis.AxisFault {
109          this(null);
110     }
111 
112     public Portlet_Polls_PollsQuestionServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
113          this(service);
114          super.cachedEndpoint = endpointURL;
115     }
116 
117     public Portlet_Polls_PollsQuestionServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
118         if (service == null) {
119             super.service = new org.apache.axis.client.Service();
120         } else {
121             super.service = service;
122         }
123         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
124             java.lang.Class cls;
125             javax.xml.namespace.QName qName;
126             javax.xml.namespace.QName qName2;
127             java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
128             java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
129             java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
130             java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
131             java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
132             java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
133             java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
134             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
135             java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
136             java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
137             qName = new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsChoiceSoap");
138             cachedSerQNames.add(qName);
139             cls = com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap.class;
140             cachedSerClasses.add(cls);
141             cachedSerFactories.add(beansf);
142             cachedDeserFactories.add(beandf);
143 
144             qName = new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsQuestionSoap");
145             cachedSerQNames.add(qName);
146             cls = com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class;
147             cachedSerClasses.add(cls);
148             cachedSerFactories.add(beansf);
149             cachedDeserFactories.add(beandf);
150 
151             qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "PortletPreferencesIds");
152             cachedSerQNames.add(qName);
153             cls = com.liferay.client.soap.portal.model.PortletPreferencesIds.class;
154             cachedSerClasses.add(cls);
155             cachedSerFactories.add(beansf);
156             cachedDeserFactories.add(beandf);
157 
158             qName = new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext");
159             cachedSerQNames.add(qName);
160             cls = com.liferay.client.soap.portal.service.ServiceContext.class;
161             cachedSerClasses.add(cls);
162             cachedSerFactories.add(beansf);
163             cachedDeserFactories.add(beandf);
164 
165             qName = new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "ArrayOf_tns2_PollsChoiceSoap");
166             cachedSerQNames.add(qName);
167             cls = com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap[].class;
168             cachedSerClasses.add(cls);
169             qName = new javax.xml.namespace.QName("http://model.polls.portlet.liferay.com", "PollsChoiceSoap");
170             qName2 = null;
171             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
172             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
173 
174             qName = new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "ArrayOf_xsd_string");
175             cachedSerQNames.add(qName);
176             cls = java.lang.String[].class;
177             cachedSerClasses.add(cls);
178             qName = new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string");
179             qName2 = null;
180             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
181             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
182 
183     }
184 
185     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
186         try {
187             org.apache.axis.client.Call _call = super._createCall();
188             if (super.maintainSessionSet) {
189                 _call.setMaintainSession(super.maintainSession);
190             }
191             if (super.cachedUsername != null) {
192                 _call.setUsername(super.cachedUsername);
193             }
194             if (super.cachedPassword != null) {
195                 _call.setPassword(super.cachedPassword);
196             }
197             if (super.cachedEndpoint != null) {
198                 _call.setTargetEndpointAddress(super.cachedEndpoint);
199             }
200             if (super.cachedTimeout != null) {
201                 _call.setTimeout(super.cachedTimeout);
202             }
203             if (super.cachedPortName != null) {
204                 _call.setPortName(super.cachedPortName);
205             }
206             java.util.Enumeration keys = super.cachedProperties.keys();
207             while (keys.hasMoreElements()) {
208                 java.lang.String key = (java.lang.String) keys.nextElement();
209                 _call.setProperty(key, super.cachedProperties.get(key));
210             }
211             // All the type mapping information is registered
212             // when the first call is made.
213             // The type mapping information is actually registered in
214             // the TypeMappingRegistry of the service, which
215             // is the reason why registration is only needed for the first call.
216             synchronized (this) {
217                 if (firstCall()) {
218                     // must set encoding style before registering serializers
219                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
220                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
221                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
222                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
223                         javax.xml.namespace.QName qName =
224                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
225                         java.lang.Object x = cachedSerFactories.get(i);
226                         if (x instanceof Class) {
227                             java.lang.Class sf = (java.lang.Class)
228                                  cachedSerFactories.get(i);
229                             java.lang.Class df = (java.lang.Class)
230                                  cachedDeserFactories.get(i);
231                             _call.registerTypeMapping(cls, qName, sf, df, false);
232                         }
233                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
234                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
235                                  cachedSerFactories.get(i);
236                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
237                                  cachedDeserFactories.get(i);
238                             _call.registerTypeMapping(cls, qName, sf, df, false);
239                         }
240                     }
241                 }
242             }
243             return _call;
244         }
245         catch (java.lang.Throwable _t) {
246             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
247         }
248     }
249 
250     public com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap addQuestion(java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap[] choices, com.liferay.client.soap.portal.service.ServiceContext serviceContext) throws java.rmi.RemoteException {
251         if (super.cachedEndpoint == null) {
252             throw new org.apache.axis.NoEndPointException();
253         }
254         org.apache.axis.client.Call _call = createCall();
255         _call.setOperation(_operations[0]);
256         _call.setUseSOAPAction(true);
257         _call.setSOAPActionURI("");
258         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
259         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "addQuestion"));
260 
261         setRequestHeaders(_call);
262         setAttachments(_call);
263  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {title, description, new java.lang.Integer(expirationDateMonth), new java.lang.Integer(expirationDateDay), new java.lang.Integer(expirationDateYear), new java.lang.Integer(expirationDateHour), new java.lang.Integer(expirationDateMinute), new java.lang.Boolean(neverExpire), choices, serviceContext});
264 
265         if (_resp instanceof java.rmi.RemoteException) {
266             throw (java.rmi.RemoteException)_resp;
267         }
268         else {
269             extractAttachments(_call);
270             try {
271                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) _resp;
272             } catch (java.lang.Exception _exception) {
273                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
274             }
275         }
276   } catch (org.apache.axis.AxisFault axisFaultException) {
277   throw axisFaultException;
278 }
279     }
280 
281     public void deleteQuestion(long questionId) throws java.rmi.RemoteException {
282         if (super.cachedEndpoint == null) {
283             throw new org.apache.axis.NoEndPointException();
284         }
285         org.apache.axis.client.Call _call = createCall();
286         _call.setOperation(_operations[1]);
287         _call.setUseSOAPAction(true);
288         _call.setSOAPActionURI("");
289         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
290         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "deleteQuestion"));
291 
292         setRequestHeaders(_call);
293         setAttachments(_call);
294  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(questionId)});
295 
296         if (_resp instanceof java.rmi.RemoteException) {
297             throw (java.rmi.RemoteException)_resp;
298         }
299         extractAttachments(_call);
300   } catch (org.apache.axis.AxisFault axisFaultException) {
301   throw axisFaultException;
302 }
303     }
304 
305     public com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap getQuestion(long questionId) throws java.rmi.RemoteException {
306         if (super.cachedEndpoint == null) {
307             throw new org.apache.axis.NoEndPointException();
308         }
309         org.apache.axis.client.Call _call = createCall();
310         _call.setOperation(_operations[2]);
311         _call.setUseSOAPAction(true);
312         _call.setSOAPActionURI("");
313         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
314         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "getQuestion"));
315 
316         setRequestHeaders(_call);
317         setAttachments(_call);
318  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(questionId)});
319 
320         if (_resp instanceof java.rmi.RemoteException) {
321             throw (java.rmi.RemoteException)_resp;
322         }
323         else {
324             extractAttachments(_call);
325             try {
326                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) _resp;
327             } catch (java.lang.Exception _exception) {
328                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
329             }
330         }
331   } catch (org.apache.axis.AxisFault axisFaultException) {
332   throw axisFaultException;
333 }
334     }
335 
336     public com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap updateQuestion(long questionId, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.client.soap.portlet.polls.model.PollsChoiceSoap[] choices, com.liferay.client.soap.portal.service.ServiceContext serviceContext) throws java.rmi.RemoteException {
337         if (super.cachedEndpoint == null) {
338             throw new org.apache.axis.NoEndPointException();
339         }
340         org.apache.axis.client.Call _call = createCall();
341         _call.setOperation(_operations[3]);
342         _call.setUseSOAPAction(true);
343         _call.setSOAPActionURI("");
344         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
345         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.polls.portlet.liferay.com", "updateQuestion"));
346 
347         setRequestHeaders(_call);
348         setAttachments(_call);
349  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(questionId), title, description, new java.lang.Integer(expirationDateMonth), new java.lang.Integer(expirationDateDay), new java.lang.Integer(expirationDateYear), new java.lang.Integer(expirationDateHour), new java.lang.Integer(expirationDateMinute), new java.lang.Boolean(neverExpire), choices, serviceContext});
350 
351         if (_resp instanceof java.rmi.RemoteException) {
352             throw (java.rmi.RemoteException)_resp;
353         }
354         else {
355             extractAttachments(_call);
356             try {
357                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) _resp;
358             } catch (java.lang.Exception _exception) {
359                 return (com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.polls.model.PollsQuestionSoap.class);
360             }
361         }
362   } catch (org.apache.axis.AxisFault axisFaultException) {
363   throw axisFaultException;
364 }
365     }
366 
367 }
368