1
7
8 package com.liferay.client.portal.service.http;
9
10 public class Portal_ListTypeServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.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("getListType");
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 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ListTypeSoap"));
31 oper.setReturnClass(com.liferay.client.portal.model.ListTypeSoap.class);
32 oper.setReturnQName(new javax.xml.namespace.QName("", "getListTypeReturn"));
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("getListTypes");
39 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);
40 oper.addParameter(param);
41 oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_ListTypeSoap"));
42 oper.setReturnClass(com.liferay.client.portal.model.ListTypeSoap[].class);
43 oper.setReturnQName(new javax.xml.namespace.QName("", "getListTypesReturn"));
44 oper.setStyle(org.apache.axis.constants.Style.RPC);
45 oper.setUse(org.apache.axis.constants.Use.ENCODED);
46 _operations[1] = oper;
47
48 oper = new org.apache.axis.description.OperationDesc();
49 oper.setName("validate");
50 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);
51 oper.addParameter(param);
52 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);
53 oper.addParameter(param);
54 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);
55 oper.addParameter(param);
56 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
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("validate");
63 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);
64 oper.addParameter(param);
65 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);
66 oper.addParameter(param);
67 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
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.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.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 synchronized (this) {
153 if (firstCall()) {
154 _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 com.liferay.client.portal.model.ListTypeSoap getListType(int listTypeId) 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", "getListType"));
196
197 setRequestHeaders(_call);
198 setAttachments(_call);
199 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId)});
200
201 if (_resp instanceof java.rmi.RemoteException) {
202 throw (java.rmi.RemoteException)_resp;
203 }
204 else {
205 extractAttachments(_call);
206 try {
207 return (com.liferay.client.portal.model.ListTypeSoap) _resp;
208 } catch (java.lang.Exception _exception) {
209 return (com.liferay.client.portal.model.ListTypeSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.portal.model.ListTypeSoap.class);
210 }
211 }
212 } catch (org.apache.axis.AxisFault axisFaultException) {
213 throw axisFaultException;
214 }
215 }
216
217 public com.liferay.client.portal.model.ListTypeSoap[] getListTypes(java.lang.String type) throws java.rmi.RemoteException {
218 if (super.cachedEndpoint == null) {
219 throw new org.apache.axis.NoEndPointException();
220 }
221 org.apache.axis.client.Call _call = createCall();
222 _call.setOperation(_operations[1]);
223 _call.setUseSOAPAction(true);
224 _call.setSOAPActionURI("");
225 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
226 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getListTypes"));
227
228 setRequestHeaders(_call);
229 setAttachments(_call);
230 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {type});
231
232 if (_resp instanceof java.rmi.RemoteException) {
233 throw (java.rmi.RemoteException)_resp;
234 }
235 else {
236 extractAttachments(_call);
237 try {
238 return (com.liferay.client.portal.model.ListTypeSoap[]) _resp;
239 } catch (java.lang.Exception _exception) {
240 return (com.liferay.client.portal.model.ListTypeSoap[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.portal.model.ListTypeSoap[].class);
241 }
242 }
243 } catch (org.apache.axis.AxisFault axisFaultException) {
244 throw axisFaultException;
245 }
246 }
247
248 public void validate(int listTypeId, long classNameId, java.lang.String type) throws java.rmi.RemoteException {
249 if (super.cachedEndpoint == null) {
250 throw new org.apache.axis.NoEndPointException();
251 }
252 org.apache.axis.client.Call _call = createCall();
253 _call.setOperation(_operations[2]);
254 _call.setUseSOAPAction(true);
255 _call.setSOAPActionURI("");
256 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
257 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "validate"));
258
259 setRequestHeaders(_call);
260 setAttachments(_call);
261 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId), new java.lang.Long(classNameId), type});
262
263 if (_resp instanceof java.rmi.RemoteException) {
264 throw (java.rmi.RemoteException)_resp;
265 }
266 extractAttachments(_call);
267 } catch (org.apache.axis.AxisFault axisFaultException) {
268 throw axisFaultException;
269 }
270 }
271
272 public void validate(int listTypeId, java.lang.String type) throws java.rmi.RemoteException {
273 if (super.cachedEndpoint == null) {
274 throw new org.apache.axis.NoEndPointException();
275 }
276 org.apache.axis.client.Call _call = createCall();
277 _call.setOperation(_operations[3]);
278 _call.setUseSOAPAction(true);
279 _call.setSOAPActionURI("");
280 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
281 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "validate"));
282
283 setRequestHeaders(_call);
284 setAttachments(_call);
285 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(listTypeId), type});
286
287 if (_resp instanceof java.rmi.RemoteException) {
288 throw (java.rmi.RemoteException)_resp;
289 }
290 extractAttachments(_call);
291 } catch (org.apache.axis.AxisFault axisFaultException) {
292 throw axisFaultException;
293 }
294 }
295
296 }
297