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