1   /**
2    * Portal_ThemeServiceSoapBindingStub.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_ThemeServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.ThemeServiceSoap {
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[2];
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("getThemes");
28          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);
29          oper.addParameter(param);
30          oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_xsd_anyType"));
31          oper.setReturnClass(java.lang.Object[].class);
32          oper.setReturnQName(new javax.xml.namespace.QName("", "getThemesReturn"));
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("getWARThemes");
39          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
40          oper.setReturnClass(java.lang.Object.class);
41          oper.setReturnQName(new javax.xml.namespace.QName("", "getWARThemesReturn"));
42          oper.setStyle(org.apache.axis.constants.Style.RPC);
43          oper.setUse(org.apache.axis.constants.Use.ENCODED);
44          _operations[1] = oper;
45  
46      }
47  
48      public Portal_ThemeServiceSoapBindingStub() throws org.apache.axis.AxisFault {
49           this(null);
50      }
51  
52      public Portal_ThemeServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
53           this(service);
54           super.cachedEndpoint = endpointURL;
55      }
56  
57      public Portal_ThemeServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
58          if (service == null) {
59              super.service = new org.apache.axis.client.Service();
60          } else {
61              super.service = service;
62          }
63          ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
64              java.lang.Class cls;
65              javax.xml.namespace.QName qName;
66              javax.xml.namespace.QName qName2;
67              java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
68              java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
69              java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
70              java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
71              java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
72              java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
73              java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
74              java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
75              java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
76              java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
77              qName = new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_xsd_anyType");
78              cachedSerQNames.add(qName);
79              cls = java.lang.Object[].class;
80              cachedSerClasses.add(cls);
81              qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType");
82              qName2 = null;
83              cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
84              cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
85  
86      }
87  
88      protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
89          try {
90              org.apache.axis.client.Call _call = super._createCall();
91              if (super.maintainSessionSet) {
92                  _call.setMaintainSession(super.maintainSession);
93              }
94              if (super.cachedUsername != null) {
95                  _call.setUsername(super.cachedUsername);
96              }
97              if (super.cachedPassword != null) {
98                  _call.setPassword(super.cachedPassword);
99              }
100             if (super.cachedEndpoint != null) {
101                 _call.setTargetEndpointAddress(super.cachedEndpoint);
102             }
103             if (super.cachedTimeout != null) {
104                 _call.setTimeout(super.cachedTimeout);
105             }
106             if (super.cachedPortName != null) {
107                 _call.setPortName(super.cachedPortName);
108             }
109             java.util.Enumeration keys = super.cachedProperties.keys();
110             while (keys.hasMoreElements()) {
111                 java.lang.String key = (java.lang.String) keys.nextElement();
112                 _call.setProperty(key, super.cachedProperties.get(key));
113             }
114             // All the type mapping information is registered
115             // when the first call is made.
116             // The type mapping information is actually registered in
117             // the TypeMappingRegistry of the service, which
118             // is the reason why registration is only needed for the first call.
119             synchronized (this) {
120                 if (firstCall()) {
121                     // must set encoding style before registering serializers
122                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
123                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
124                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
125                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
126                         javax.xml.namespace.QName qName =
127                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
128                         java.lang.Object x = cachedSerFactories.get(i);
129                         if (x instanceof Class) {
130                             java.lang.Class sf = (java.lang.Class)
131                                  cachedSerFactories.get(i);
132                             java.lang.Class df = (java.lang.Class)
133                                  cachedDeserFactories.get(i);
134                             _call.registerTypeMapping(cls, qName, sf, df, false);
135                         }
136                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
137                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
138                                  cachedSerFactories.get(i);
139                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
140                                  cachedDeserFactories.get(i);
141                             _call.registerTypeMapping(cls, qName, sf, df, false);
142                         }
143                     }
144                 }
145             }
146             return _call;
147         }
148         catch (java.lang.Throwable _t) {
149             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
150         }
151     }
152 
153     public java.lang.Object[] getThemes(long companyId) throws java.rmi.RemoteException {
154         if (super.cachedEndpoint == null) {
155             throw new org.apache.axis.NoEndPointException();
156         }
157         org.apache.axis.client.Call _call = createCall();
158         _call.setOperation(_operations[0]);
159         _call.setUseSOAPAction(true);
160         _call.setSOAPActionURI("");
161         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
162         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getThemes"));
163 
164         setRequestHeaders(_call);
165         setAttachments(_call);
166  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(companyId)});
167 
168         if (_resp instanceof java.rmi.RemoteException) {
169             throw (java.rmi.RemoteException)_resp;
170         }
171         else {
172             extractAttachments(_call);
173             try {
174                 return (java.lang.Object[]) _resp;
175             } catch (java.lang.Exception _exception) {
176                 return (java.lang.Object[]) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Object[].class);
177             }
178         }
179   } catch (org.apache.axis.AxisFault axisFaultException) {
180   throw axisFaultException;
181 }
182     }
183 
184     public java.lang.Object getWARThemes() throws java.rmi.RemoteException {
185         if (super.cachedEndpoint == null) {
186             throw new org.apache.axis.NoEndPointException();
187         }
188         org.apache.axis.client.Call _call = createCall();
189         _call.setOperation(_operations[1]);
190         _call.setUseSOAPAction(true);
191         _call.setSOAPActionURI("");
192         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
193         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getWARThemes"));
194 
195         setRequestHeaders(_call);
196         setAttachments(_call);
197  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
198 
199         if (_resp instanceof java.rmi.RemoteException) {
200             throw (java.rmi.RemoteException)_resp;
201         }
202         else {
203             extractAttachments(_call);
204             try {
205                 return (java.lang.Object) _resp;
206             } catch (java.lang.Exception _exception) {
207                 return (java.lang.Object) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Object.class);
208             }
209         }
210   } catch (org.apache.axis.AxisFault axisFaultException) {
211   throw axisFaultException;
212 }
213     }
214 
215 }
216