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