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