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.portal.service.http;
9   
10  public class Portal_PortalServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.portal.service.http.PortalServiceSoap {
11  
12      static org.apache.axis.description.OperationDesc [] _operations;
13  
14      static {
15          _operations = new org.apache.axis.description.OperationDesc[1];
16          _initOperationDesc1();
17      }
18  
19      private static void _initOperationDesc1(){
20          org.apache.axis.description.OperationDesc oper;
21          org.apache.axis.description.ParameterDesc param;
22          oper = new org.apache.axis.description.OperationDesc();
23          oper.setName("test");
24          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
25          oper.setStyle(org.apache.axis.constants.Style.RPC);
26          oper.setUse(org.apache.axis.constants.Use.ENCODED);
27          _operations[0] = oper;
28  
29      }
30  
31      public Portal_PortalServiceSoapBindingStub() throws org.apache.axis.AxisFault {
32           this(null);
33      }
34  
35      public Portal_PortalServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
36           this(service);
37           super.cachedEndpoint = endpointURL;
38      }
39  
40      public Portal_PortalServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
41          if (service == null) {
42              super.service = new org.apache.axis.client.Service();
43          } else {
44              super.service = service;
45          }
46          ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
47      }
48  
49      protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
50          try {
51              org.apache.axis.client.Call _call = super._createCall();
52              if (super.maintainSessionSet) {
53                  _call.setMaintainSession(super.maintainSession);
54              }
55              if (super.cachedUsername != null) {
56                  _call.setUsername(super.cachedUsername);
57              }
58              if (super.cachedPassword != null) {
59                  _call.setPassword(super.cachedPassword);
60              }
61              if (super.cachedEndpoint != null) {
62                  _call.setTargetEndpointAddress(super.cachedEndpoint);
63              }
64              if (super.cachedTimeout != null) {
65                  _call.setTimeout(super.cachedTimeout);
66              }
67              if (super.cachedPortName != null) {
68                  _call.setPortName(super.cachedPortName);
69              }
70              java.util.Enumeration keys = super.cachedProperties.keys();
71              while (keys.hasMoreElements()) {
72                  java.lang.String key = (java.lang.String) keys.nextElement();
73                  _call.setProperty(key, super.cachedProperties.get(key));
74              }
75              return _call;
76          }
77          catch (java.lang.Throwable _t) {
78              throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
79          }
80      }
81  
82      public void test() throws java.rmi.RemoteException {
83          if (super.cachedEndpoint == null) {
84              throw new org.apache.axis.NoEndPointException();
85          }
86          org.apache.axis.client.Call _call = createCall();
87          _call.setOperation(_operations[0]);
88          _call.setUseSOAPAction(true);
89          _call.setSOAPActionURI("");
90          _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
91          _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "test"));
92  
93          setRequestHeaders(_call);
94          setAttachments(_call);
95   try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
96  
97          if (_resp instanceof java.rmi.RemoteException) {
98              throw (java.rmi.RemoteException)_resp;
99          }
100         extractAttachments(_call);
101   } catch (org.apache.axis.AxisFault axisFaultException) {
102   throw axisFaultException;
103 }
104     }
105 
106 }
107