1   /**
2    * Portal_PortalServiceSoapBindingStub.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_PortalServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.PortalServiceSoap {
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("getAutoDeployDirectory");
28          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
29          oper.setReturnClass(java.lang.String.class);
30          oper.setReturnQName(new javax.xml.namespace.QName("", "getAutoDeployDirectoryReturn"));
31          oper.setStyle(org.apache.axis.constants.Style.RPC);
32          oper.setUse(org.apache.axis.constants.Use.ENCODED);
33          _operations[0] = oper;
34  
35          oper = new org.apache.axis.description.OperationDesc();
36          oper.setName("getBuildNumber");
37          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
38          oper.setReturnClass(int.class);
39          oper.setReturnQName(new javax.xml.namespace.QName("", "getBuildNumberReturn"));
40          oper.setStyle(org.apache.axis.constants.Style.RPC);
41          oper.setUse(org.apache.axis.constants.Use.ENCODED);
42          _operations[1] = oper;
43  
44          oper = new org.apache.axis.description.OperationDesc();
45          oper.setName("test");
46          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
47          oper.setStyle(org.apache.axis.constants.Style.RPC);
48          oper.setUse(org.apache.axis.constants.Use.ENCODED);
49          _operations[2] = oper;
50  
51          oper = new org.apache.axis.description.OperationDesc();
52          oper.setName("testCounterRollback");
53          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
54          oper.setStyle(org.apache.axis.constants.Style.RPC);
55          oper.setUse(org.apache.axis.constants.Use.ENCODED);
56          _operations[3] = oper;
57  
58      }
59  
60      public Portal_PortalServiceSoapBindingStub() throws org.apache.axis.AxisFault {
61           this(null);
62      }
63  
64      public Portal_PortalServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
65           this(service);
66           super.cachedEndpoint = endpointURL;
67      }
68  
69      public Portal_PortalServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
70          if (service == null) {
71              super.service = new org.apache.axis.client.Service();
72          } else {
73              super.service = service;
74          }
75          ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
76      }
77  
78      protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
79          try {
80              org.apache.axis.client.Call _call = super._createCall();
81              if (super.maintainSessionSet) {
82                  _call.setMaintainSession(super.maintainSession);
83              }
84              if (super.cachedUsername != null) {
85                  _call.setUsername(super.cachedUsername);
86              }
87              if (super.cachedPassword != null) {
88                  _call.setPassword(super.cachedPassword);
89              }
90              if (super.cachedEndpoint != null) {
91                  _call.setTargetEndpointAddress(super.cachedEndpoint);
92              }
93              if (super.cachedTimeout != null) {
94                  _call.setTimeout(super.cachedTimeout);
95              }
96              if (super.cachedPortName != null) {
97                  _call.setPortName(super.cachedPortName);
98              }
99              java.util.Enumeration keys = super.cachedProperties.keys();
100             while (keys.hasMoreElements()) {
101                 java.lang.String key = (java.lang.String) keys.nextElement();
102                 _call.setProperty(key, super.cachedProperties.get(key));
103             }
104             return _call;
105         }
106         catch (java.lang.Throwable _t) {
107             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
108         }
109     }
110 
111     public java.lang.String getAutoDeployDirectory() throws java.rmi.RemoteException {
112         if (super.cachedEndpoint == null) {
113             throw new org.apache.axis.NoEndPointException();
114         }
115         org.apache.axis.client.Call _call = createCall();
116         _call.setOperation(_operations[0]);
117         _call.setUseSOAPAction(true);
118         _call.setSOAPActionURI("");
119         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
120         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getAutoDeployDirectory"));
121 
122         setRequestHeaders(_call);
123         setAttachments(_call);
124  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
125 
126         if (_resp instanceof java.rmi.RemoteException) {
127             throw (java.rmi.RemoteException)_resp;
128         }
129         else {
130             extractAttachments(_call);
131             try {
132                 return (java.lang.String) _resp;
133             } catch (java.lang.Exception _exception) {
134                 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
135             }
136         }
137   } catch (org.apache.axis.AxisFault axisFaultException) {
138   throw axisFaultException;
139 }
140     }
141 
142     public int getBuildNumber() throws java.rmi.RemoteException {
143         if (super.cachedEndpoint == null) {
144             throw new org.apache.axis.NoEndPointException();
145         }
146         org.apache.axis.client.Call _call = createCall();
147         _call.setOperation(_operations[1]);
148         _call.setUseSOAPAction(true);
149         _call.setSOAPActionURI("");
150         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
151         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getBuildNumber"));
152 
153         setRequestHeaders(_call);
154         setAttachments(_call);
155  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
156 
157         if (_resp instanceof java.rmi.RemoteException) {
158             throw (java.rmi.RemoteException)_resp;
159         }
160         else {
161             extractAttachments(_call);
162             try {
163                 return ((java.lang.Integer) _resp).intValue();
164             } catch (java.lang.Exception _exception) {
165                 return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
166             }
167         }
168   } catch (org.apache.axis.AxisFault axisFaultException) {
169   throw axisFaultException;
170 }
171     }
172 
173     public void test() throws java.rmi.RemoteException {
174         if (super.cachedEndpoint == null) {
175             throw new org.apache.axis.NoEndPointException();
176         }
177         org.apache.axis.client.Call _call = createCall();
178         _call.setOperation(_operations[2]);
179         _call.setUseSOAPAction(true);
180         _call.setSOAPActionURI("");
181         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
182         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "test"));
183 
184         setRequestHeaders(_call);
185         setAttachments(_call);
186  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
187 
188         if (_resp instanceof java.rmi.RemoteException) {
189             throw (java.rmi.RemoteException)_resp;
190         }
191         extractAttachments(_call);
192   } catch (org.apache.axis.AxisFault axisFaultException) {
193   throw axisFaultException;
194 }
195     }
196 
197     public void testCounterRollback() throws java.rmi.RemoteException {
198         if (super.cachedEndpoint == null) {
199             throw new org.apache.axis.NoEndPointException();
200         }
201         org.apache.axis.client.Call _call = createCall();
202         _call.setOperation(_operations[3]);
203         _call.setUseSOAPAction(true);
204         _call.setSOAPActionURI("");
205         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
206         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "testCounterRollback"));
207 
208         setRequestHeaders(_call);
209         setAttachments(_call);
210  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
211 
212         if (_resp instanceof java.rmi.RemoteException) {
213             throw (java.rmi.RemoteException)_resp;
214         }
215         extractAttachments(_call);
216   } catch (org.apache.axis.AxisFault axisFaultException) {
217   throw axisFaultException;
218 }
219     }
220 
221 }
222