View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  /**
35   * SearchAssetServiceSoapBindingStub.java
36   *
37   * This file was auto-generated from WSDL
38   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
39   */
40  
41  package com.tvnavig.server.searchengine;
42  
43  public class SearchAssetServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.tvnavig.server.searchengine.SearchAssetService {
44      private java.util.Vector cachedSerClasses = new java.util.Vector();
45      private java.util.Vector cachedSerQNames = new java.util.Vector();
46      private java.util.Vector cachedSerFactories = new java.util.Vector();
47      private java.util.Vector cachedDeserFactories = new java.util.Vector();
48  
49      static org.apache.axis.description.OperationDesc [] _operations;
50  
51      static {
52          _operations = new org.apache.axis.description.OperationDesc[3];
53          _initOperationDesc1();
54      }
55  
56      private static void _initOperationDesc1(){
57          org.apache.axis.description.OperationDesc oper;
58          org.apache.axis.description.ParameterDesc param;
59          oper = new org.apache.axis.description.OperationDesc();
60          oper.setName("getAsset");
61          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "domainId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
62          oper.addParameter(param);
63          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "id"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
64          oper.addParameter(param);
65          oper.setReturnType(new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetOGC"));
66          oper.setReturnClass(com.tvnavig.server.searchengine.service.common.AssetOGC.class);
67          oper.setReturnQName(new javax.xml.namespace.QName("", "getAssetReturn"));
68          oper.setStyle(org.apache.axis.constants.Style.RPC);
69          oper.setUse(org.apache.axis.constants.Use.ENCODED);
70          oper.addFault(new org.apache.axis.description.FaultDesc(
71                        new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "fault"),
72                        "com.tvnavig.server.searchengine.SearchAssetServiceException",
73                        new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"), 
74                        true
75                       ));
76          _operations[0] = oper;
77  
78          oper = new org.apache.axis.description.OperationDesc();
79          oper.setName("getAssetsList");
80          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "domainId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
81          oper.addParameter(param);
82          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "searchSubject"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
83          oper.addParameter(param);
84          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "metaValues"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "ArrayOf_tns2_MetaValueResult"), com.tvnavig.server.asset.service.common.MetaValueResult[].class, false, false);
85          oper.addParameter(param);
86          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "beginDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
87          oper.addParameter(param);
88          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "endDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
89          oper.addParameter(param);
90          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "format"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
91          oper.addParameter(param);
92          oper.setReturnType(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "ArrayOf_tns1_AssetOGC"));
93          oper.setReturnClass(com.tvnavig.server.searchengine.service.common.AssetOGC[].class);
94          oper.setReturnQName(new javax.xml.namespace.QName("", "getAssetsListReturn"));
95          oper.setStyle(org.apache.axis.constants.Style.RPC);
96          oper.setUse(org.apache.axis.constants.Use.ENCODED);
97          oper.addFault(new org.apache.axis.description.FaultDesc(
98                        new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "fault"),
99                        "com.tvnavig.server.searchengine.SearchAssetServiceException",
100                       new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"), 
101                       true
102                      ));
103         _operations[1] = oper;
104 
105         oper = new org.apache.axis.description.OperationDesc();
106         oper.setName("getAssetPlayer");
107         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "id"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
108         oper.addParameter(param);
109         oper.setReturnType(new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetPlayer"));
110         oper.setReturnClass(com.tvnavig.server.searchengine.service.common.AssetPlayer.class);
111         oper.setReturnQName(new javax.xml.namespace.QName("", "getAssetPlayerReturn"));
112         oper.setStyle(org.apache.axis.constants.Style.RPC);
113         oper.setUse(org.apache.axis.constants.Use.ENCODED);
114         oper.addFault(new org.apache.axis.description.FaultDesc(
115                       new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "fault"),
116                       "com.tvnavig.server.searchengine.SearchAssetServiceException",
117                       new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException"), 
118                       true
119                      ));
120         _operations[2] = oper;
121 
122     }
123 
124     public SearchAssetServiceSoapBindingStub() throws org.apache.axis.AxisFault {
125          this(null);
126     }
127 
128     public SearchAssetServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
129          this(service);
130          super.cachedEndpoint = endpointURL;
131     }
132 
133     public SearchAssetServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
134         if (service == null) {
135             super.service = new org.apache.axis.client.Service();
136         } else {
137             super.service = service;
138         }
139         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
140             java.lang.Class cls;
141             javax.xml.namespace.QName qName;
142             javax.xml.namespace.QName qName2;
143             java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
144             java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
145             java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
146             java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
147             java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
148             java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
149             java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
150             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
151             java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
152             java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
153             qName = new javax.xml.namespace.QName("http://common.service.asset.server.tvnavig.com", "MetaValueResult");
154             cachedSerQNames.add(qName);
155             cls = com.tvnavig.server.asset.service.common.MetaValueResult.class;
156             cachedSerClasses.add(cls);
157             cachedSerFactories.add(beansf);
158             cachedDeserFactories.add(beandf);
159 
160             qName = new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetOGC");
161             cachedSerQNames.add(qName);
162             cls = com.tvnavig.server.searchengine.service.common.AssetOGC.class;
163             cachedSerClasses.add(cls);
164             cachedSerFactories.add(beansf);
165             cachedDeserFactories.add(beandf);
166 
167             qName = new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetPlayer");
168             cachedSerQNames.add(qName);
169             cls = com.tvnavig.server.searchengine.service.common.AssetPlayer.class;
170             cachedSerClasses.add(cls);
171             cachedSerFactories.add(beansf);
172             cachedDeserFactories.add(beandf);
173 
174             qName = new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "ArrayOf_tns1_AssetOGC");
175             cachedSerQNames.add(qName);
176             cls = com.tvnavig.server.searchengine.service.common.AssetOGC[].class;
177             cachedSerClasses.add(cls);
178             qName = new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetOGC");
179             qName2 = null;
180             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
181             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
182 
183             qName = new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "ArrayOf_tns2_MetaValueResult");
184             cachedSerQNames.add(qName);
185             cls = com.tvnavig.server.asset.service.common.MetaValueResult[].class;
186             cachedSerClasses.add(cls);
187             qName = new javax.xml.namespace.QName("http://common.service.asset.server.tvnavig.com", "MetaValueResult");
188             qName2 = null;
189             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
190             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
191 
192             qName = new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "ArrayOf_xsd_string");
193             cachedSerQNames.add(qName);
194             cls = java.lang.String[].class;
195             cachedSerClasses.add(cls);
196             qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
197             qName2 = null;
198             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
199             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
200 
201             qName = new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceException");
202             cachedSerQNames.add(qName);
203             cls = com.tvnavig.server.searchengine.SearchAssetServiceException.class;
204             cachedSerClasses.add(cls);
205             cachedSerFactories.add(beansf);
206             cachedDeserFactories.add(beandf);
207 
208             qName = new javax.xml.namespace.QName("http://util.server.tvnavig.com", "ServiceException");
209             cachedSerQNames.add(qName);
210             cls = com.tvnavig.server.util.ServiceException.class;
211             cachedSerClasses.add(cls);
212             cachedSerFactories.add(beansf);
213             cachedDeserFactories.add(beandf);
214 
215     }
216 
217     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
218         try {
219             org.apache.axis.client.Call _call = super._createCall();
220             if (super.maintainSessionSet) {
221                 _call.setMaintainSession(super.maintainSession);
222             }
223             if (super.cachedUsername != null) {
224                 _call.setUsername(super.cachedUsername);
225             }
226             if (super.cachedPassword != null) {
227                 _call.setPassword(super.cachedPassword);
228             }
229             if (super.cachedEndpoint != null) {
230                 _call.setTargetEndpointAddress(super.cachedEndpoint);
231             }
232             if (super.cachedTimeout != null) {
233                 _call.setTimeout(super.cachedTimeout);
234             }
235             if (super.cachedPortName != null) {
236                 _call.setPortName(super.cachedPortName);
237             }
238             java.util.Enumeration keys = super.cachedProperties.keys();
239             while (keys.hasMoreElements()) {
240                 java.lang.String key = (java.lang.String) keys.nextElement();
241                 _call.setProperty(key, super.cachedProperties.get(key));
242             }
243             // All the type mapping information is registered
244             // when the first call is made.
245             // The type mapping information is actually registered in
246             // the TypeMappingRegistry of the service, which
247             // is the reason why registration is only needed for the first call.
248             synchronized (this) {
249                 if (firstCall()) {
250                     // must set encoding style before registering serializers
251                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
252                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
253                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
254                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
255                         javax.xml.namespace.QName qName =
256                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
257                         java.lang.Object x = cachedSerFactories.get(i);
258                         if (x instanceof Class) {
259                             java.lang.Class sf = (java.lang.Class)
260                                  cachedSerFactories.get(i);
261                             java.lang.Class df = (java.lang.Class)
262                                  cachedDeserFactories.get(i);
263                             _call.registerTypeMapping(cls, qName, sf, df, false);
264                         }
265                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
266                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
267                                  cachedSerFactories.get(i);
268                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
269                                  cachedDeserFactories.get(i);
270                             _call.registerTypeMapping(cls, qName, sf, df, false);
271                         }
272                     }
273                 }
274             }
275             return _call;
276         }
277         catch (java.lang.Throwable _t) {
278             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
279         }
280     }
281 
282     public com.tvnavig.server.searchengine.service.common.AssetOGC getAsset(int domainId, int id) throws java.rmi.RemoteException, com.tvnavig.server.searchengine.SearchAssetServiceException {
283         if (super.cachedEndpoint == null) {
284             throw new org.apache.axis.NoEndPointException();
285         }
286         org.apache.axis.client.Call _call = createCall();
287         _call.setOperation(_operations[0]);
288         _call.setUseSOAPAction(true);
289         _call.setSOAPActionURI("");
290         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
291         _call.setOperationName(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "getAsset"));
292 
293         setRequestHeaders(_call);
294         setAttachments(_call);
295  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(domainId), new java.lang.Integer(id)});
296 
297         if (_resp instanceof java.rmi.RemoteException) {
298             throw (java.rmi.RemoteException)_resp;
299         }
300         else {
301             extractAttachments(_call);
302             try {
303                 return (com.tvnavig.server.searchengine.service.common.AssetOGC) _resp;
304             } catch (java.lang.Exception _exception) {
305                 return (com.tvnavig.server.searchengine.service.common.AssetOGC) org.apache.axis.utils.JavaUtils.convert(_resp, com.tvnavig.server.searchengine.service.common.AssetOGC.class);
306             }
307         }
308   } catch (org.apache.axis.AxisFault axisFaultException) {
309     if (axisFaultException.detail != null) {
310         if (axisFaultException.detail instanceof java.rmi.RemoteException) {
311               throw (java.rmi.RemoteException) axisFaultException.detail;
312          }
313         if (axisFaultException.detail instanceof com.tvnavig.server.searchengine.SearchAssetServiceException) {
314               throw (com.tvnavig.server.searchengine.SearchAssetServiceException) axisFaultException.detail;
315          }
316    }
317   throw axisFaultException;
318 }
319     }
320 
321     public com.tvnavig.server.searchengine.service.common.AssetOGC[] getAssetsList(int domainId, java.lang.String searchSubject, com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues, java.util.Calendar beginDate, java.util.Calendar endDate, java.lang.String format) throws java.rmi.RemoteException, com.tvnavig.server.searchengine.SearchAssetServiceException {
322         if (super.cachedEndpoint == null) {
323             throw new org.apache.axis.NoEndPointException();
324         }
325         org.apache.axis.client.Call _call = createCall();
326         _call.setOperation(_operations[1]);
327         _call.setUseSOAPAction(true);
328         _call.setSOAPActionURI("");
329         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
330         _call.setOperationName(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "getAssetsList"));
331 
332         setRequestHeaders(_call);
333         setAttachments(_call);
334  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(domainId), searchSubject, metaValues, beginDate, endDate, format});
335 
336         if (_resp instanceof java.rmi.RemoteException) {
337             throw (java.rmi.RemoteException)_resp;
338         }
339         else {
340             extractAttachments(_call);
341             try {
342                 return (com.tvnavig.server.searchengine.service.common.AssetOGC[]) _resp;
343             } catch (java.lang.Exception _exception) {
344                 return (com.tvnavig.server.searchengine.service.common.AssetOGC[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.tvnavig.server.searchengine.service.common.AssetOGC[].class);
345             }
346         }
347   } catch (org.apache.axis.AxisFault axisFaultException) {
348     if (axisFaultException.detail != null) {
349         if (axisFaultException.detail instanceof java.rmi.RemoteException) {
350               throw (java.rmi.RemoteException) axisFaultException.detail;
351          }
352         if (axisFaultException.detail instanceof com.tvnavig.server.searchengine.SearchAssetServiceException) {
353               throw (com.tvnavig.server.searchengine.SearchAssetServiceException) axisFaultException.detail;
354          }
355    }
356   throw axisFaultException;
357 }
358     }
359 
360     public com.tvnavig.server.searchengine.service.common.AssetPlayer getAssetPlayer(int id) throws java.rmi.RemoteException, com.tvnavig.server.searchengine.SearchAssetServiceException {
361         if (super.cachedEndpoint == null) {
362             throw new org.apache.axis.NoEndPointException();
363         }
364         org.apache.axis.client.Call _call = createCall();
365         _call.setOperation(_operations[2]);
366         _call.setUseSOAPAction(true);
367         _call.setSOAPActionURI("");
368         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
369         _call.setOperationName(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "getAssetPlayer"));
370 
371         setRequestHeaders(_call);
372         setAttachments(_call);
373  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(id)});
374 
375         if (_resp instanceof java.rmi.RemoteException) {
376             throw (java.rmi.RemoteException)_resp;
377         }
378         else {
379             extractAttachments(_call);
380             try {
381                 return (com.tvnavig.server.searchengine.service.common.AssetPlayer) _resp;
382             } catch (java.lang.Exception _exception) {
383                 return (com.tvnavig.server.searchengine.service.common.AssetPlayer) org.apache.axis.utils.JavaUtils.convert(_resp, com.tvnavig.server.searchengine.service.common.AssetPlayer.class);
384             }
385         }
386   } catch (org.apache.axis.AxisFault axisFaultException) {
387     if (axisFaultException.detail != null) {
388         if (axisFaultException.detail instanceof java.rmi.RemoteException) {
389               throw (java.rmi.RemoteException) axisFaultException.detail;
390          }
391         if (axisFaultException.detail instanceof com.tvnavig.server.searchengine.SearchAssetServiceException) {
392               throw (com.tvnavig.server.searchengine.SearchAssetServiceException) axisFaultException.detail;
393          }
394    }
395   throw axisFaultException;
396 }
397     }
398 
399 }