1   /**
2    * Portal_ListTypeServiceSoapBindingStub.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.portal.service.http;
9   
10  public class Portal_ListTypeServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.ListTypeServiceSoap {
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("validate");
28          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "listTypeId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
29          oper.addParameter(param);
30          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "type"), 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          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
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("validate");
39          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "listTypeId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
40          oper.addParameter(param);
41          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "classNameId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
42          oper.addParameter(param);
43          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "type"), 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          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
46          oper.setStyle(org.apache.axis.constants.Style.RPC);
47          oper.setUse(org.apache.axis.constants.Use.ENCODED);
48          _operations[1] = oper;
49  
50          oper = new org.apache.axis.description.OperationDesc();
51          oper.setName("getListType");
52          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "listTypeId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
53          oper.addParameter(param);
54          oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ListTypeSoap"));
55          oper.setReturnClass(com.liferay.client.soap.portal.model.ListTypeSoap.class);
56          oper.setReturnQName(new javax.xml.namespace.QName("", "getListTypeReturn"));
57          oper.setStyle(org.apache.axis.constants.Style.RPC);
58          oper.setUse(org.apache.axis.constants.Use.ENCODED);
59          _operations[2] = oper;
60  
61          oper = new org.apache.axis.description.OperationDesc();
62          oper.setName("getListTypes");
63          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "type"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
64          oper.addParameter(param);
65          oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_ListTypeSoap"));
66          oper.setReturnClass(com.liferay.client.soap.portal.model.ListTypeSoap[].class);
67          oper.setReturnQName(new javax.xml.namespace.QName("", "getListTypesReturn"));
68          oper.setStyle(org.apache.axis.constants.Style.RPC);
69          oper.setUse(org.apache.axis.constants.Use.ENCODED);
70          _operations[3] = oper;
71  
72      }
73  
74      public Portal_ListTypeServiceSoapBindingStub() throws org.apache.axis.AxisFault {
75           this(null);
76      }
77  
78      public Portal_ListTypeServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
79           this(service);
80           super.cachedEndpoint = endpointURL;
81      }
82  
83      public Portal_ListTypeServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
84          if (service == null) {
85              super.service = new org.apache.axis.client.Service();
86          } else {
87              super.service = service;
88          }
89          ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
90              java.lang.Class cls;
91              javax.xml.namespace.QName qName;
92              javax.xml.namespace.QName qName2;
93              java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
94              java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
95              java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
96              java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
97              java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
98              java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
99              java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
100             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
101             java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
102             java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
103             qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "ListTypeSoap");
104             cachedSerQNames.add(qName);
105             cls = com.liferay.client.soap.portal.model.ListTypeSoap.class;
106             cachedSerClasses.add(cls);
107             cachedSerFactories.add(beansf);
108             cachedDeserFactories.add(beandf);
109 
110             qName = new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_ListTypeSoap");
111             cachedSerQNames.add(qName);
112             cls = com.liferay.client.soap.portal.model.ListTypeSoap[].class;
113             cachedSerClasses.add(cls);
114             qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "ListTypeSoap");
115             qName2 = null;
116             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
117             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
118 
119     }
120 
121     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
122         try {
123             org.apache.axis.client.Call _call = super._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                 _call.setProperty(key, super.cachedProperties.get(key));
146             }
147             // All the type mapping information is registered
148             // when the first call is made.
149             // The type mapping information is actually registered in
150             // the TypeMappingRegistry of the service, which
151             // is the reason why registration is only needed for the first call.
152             synchronized (this) {
153                 if (firstCall()) {
154                     // must set encoding style before registering serializers
155                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
156                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
157                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
158                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
159                         javax.xml.namespace.QName qName =
160                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
161                         java.lang.Object x = cachedSerFactories.get(i);
162                         if (x instanceof Class) {
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                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
170                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
171                                  cachedSerFactories.get(i);
172                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
173                                  cachedDeserFactories.get(i);
174                             _call.registerTypeMapping(cls, qName, sf, df, false);
175                         }
176                     }
177                 }
178             }
179             return _call;
180         }
181         catch (java.lang.Throwable _t) {
182             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
183         }
184     }
185 
186     public void validate(int listTypeId, java.lang.String type) throws java.rmi.RemoteException {
187         if (super.cachedEndpoint == null) {
188             throw new org.apache.axis.NoEndPointException();
189         }
190         org.apache.axis.client.Call _call = createCall();
191         _call.setOperation(_operations[0]);
192         _call.setUseSOAPAction(true);
193         _call.setSOAPActionURI("");
194         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
195         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "validate"));
196 
197         setRequestHeaders(_call);
198         setAttachments(_call);
199  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId), type});
200 
201         if (_resp instanceof java.rmi.RemoteException) {
202             throw (java.rmi.RemoteException)_resp;
203         }
204         extractAttachments(_call);
205   } catch (org.apache.axis.AxisFault axisFaultException) {
206   throw axisFaultException;
207 }
208     }
209 
210     public void validate(int listTypeId, long classNameId, java.lang.String type) 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[1]);
216         _call.setUseSOAPAction(true);
217         _call.setSOAPActionURI("");
218         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
219         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "validate"));
220 
221         setRequestHeaders(_call);
222         setAttachments(_call);
223  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId), new java.lang.Long(classNameId), type});
224 
225         if (_resp instanceof java.rmi.RemoteException) {
226             throw (java.rmi.RemoteException)_resp;
227         }
228         extractAttachments(_call);
229   } catch (org.apache.axis.AxisFault axisFaultException) {
230   throw axisFaultException;
231 }
232     }
233 
234     public com.liferay.client.soap.portal.model.ListTypeSoap getListType(int listTypeId) throws java.rmi.RemoteException {
235         if (super.cachedEndpoint == null) {
236             throw new org.apache.axis.NoEndPointException();
237         }
238         org.apache.axis.client.Call _call = createCall();
239         _call.setOperation(_operations[2]);
240         _call.setUseSOAPAction(true);
241         _call.setSOAPActionURI("");
242         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
243         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getListType"));
244 
245         setRequestHeaders(_call);
246         setAttachments(_call);
247  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId)});
248 
249         if (_resp instanceof java.rmi.RemoteException) {
250             throw (java.rmi.RemoteException)_resp;
251         }
252         else {
253             extractAttachments(_call);
254             try {
255                 return (com.liferay.client.soap.portal.model.ListTypeSoap) _resp;
256             } catch (java.lang.Exception _exception) {
257                 return (com.liferay.client.soap.portal.model.ListTypeSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.ListTypeSoap.class);
258             }
259         }
260   } catch (org.apache.axis.AxisFault axisFaultException) {
261   throw axisFaultException;
262 }
263     }
264 
265     public com.liferay.client.soap.portal.model.ListTypeSoap[] getListTypes(java.lang.String type) throws java.rmi.RemoteException {
266         if (super.cachedEndpoint == null) {
267             throw new org.apache.axis.NoEndPointException();
268         }
269         org.apache.axis.client.Call _call = createCall();
270         _call.setOperation(_operations[3]);
271         _call.setUseSOAPAction(true);
272         _call.setSOAPActionURI("");
273         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
274         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getListTypes"));
275 
276         setRequestHeaders(_call);
277         setAttachments(_call);
278  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {type});
279 
280         if (_resp instanceof java.rmi.RemoteException) {
281             throw (java.rmi.RemoteException)_resp;
282         }
283         else {
284             extractAttachments(_call);
285             try {
286                 return (com.liferay.client.soap.portal.model.ListTypeSoap[]) _resp;
287             } catch (java.lang.Exception _exception) {
288                 return (com.liferay.client.soap.portal.model.ListTypeSoap[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.ListTypeSoap[].class);
289             }
290         }
291   } catch (org.apache.axis.AxisFault axisFaultException) {
292   throw axisFaultException;
293 }
294     }
295 
296 }
297