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("test");
28          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
29          oper.setStyle(org.apache.axis.constants.Style.RPC);
30          oper.setUse(org.apache.axis.constants.Use.ENCODED);
31          _operations[0] = oper;
32  
33          oper = new org.apache.axis.description.OperationDesc();
34          oper.setName("getBuildNumber");
35          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
36          oper.setReturnClass(int.class);
37          oper.setReturnQName(new javax.xml.namespace.QName("", "getBuildNumberReturn"));
38          oper.setStyle(org.apache.axis.constants.Style.RPC);
39          oper.setUse(org.apache.axis.constants.Use.ENCODED);
40          _operations[1] = oper;
41  
42          oper = new org.apache.axis.description.OperationDesc();
43          oper.setName("getAutoDeployDirectory");
44          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
45          oper.setReturnClass(java.lang.String.class);
46          oper.setReturnQName(new javax.xml.namespace.QName("", "getAutoDeployDirectoryReturn"));
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 void test() 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", "test"));
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         extractAttachments(_call);
130   } catch (org.apache.axis.AxisFault axisFaultException) {
131   throw axisFaultException;
132 }
133     }
134 
135     public int getBuildNumber() throws java.rmi.RemoteException {
136         if (super.cachedEndpoint == null) {
137             throw new org.apache.axis.NoEndPointException();
138         }
139         org.apache.axis.client.Call _call = createCall();
140         _call.setOperation(_operations[1]);
141         _call.setUseSOAPAction(true);
142         _call.setSOAPActionURI("");
143         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
144         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getBuildNumber"));
145 
146         setRequestHeaders(_call);
147         setAttachments(_call);
148  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
149 
150         if (_resp instanceof java.rmi.RemoteException) {
151             throw (java.rmi.RemoteException)_resp;
152         }
153         else {
154             extractAttachments(_call);
155             try {
156                 return ((java.lang.Integer) _resp).intValue();
157             } catch (java.lang.Exception _exception) {
158                 return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
159             }
160         }
161   } catch (org.apache.axis.AxisFault axisFaultException) {
162   throw axisFaultException;
163 }
164     }
165 
166     public java.lang.String getAutoDeployDirectory() throws java.rmi.RemoteException {
167         if (super.cachedEndpoint == null) {
168             throw new org.apache.axis.NoEndPointException();
169         }
170         org.apache.axis.client.Call _call = createCall();
171         _call.setOperation(_operations[2]);
172         _call.setUseSOAPAction(true);
173         _call.setSOAPActionURI("");
174         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
175         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getAutoDeployDirectory"));
176 
177         setRequestHeaders(_call);
178         setAttachments(_call);
179  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
180 
181         if (_resp instanceof java.rmi.RemoteException) {
182             throw (java.rmi.RemoteException)_resp;
183         }
184         else {
185             extractAttachments(_call);
186             try {
187                 return (java.lang.String) _resp;
188             } catch (java.lang.Exception _exception) {
189                 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
190             }
191         }
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