KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jass > examples > travelagency > ws > TravelAgencySoapBindingSkeleton


1 /**
2  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3  -
4  - JASS: Java Advanced tranSaction Support
5  -
6  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7  -
8  - This module was originally developed by
9  -
10  - LSD (Distributed Systems Lab, http://lsd.ls.fi.upm.es/lsd/lsd.htm)
11  - at Universidad Politecnica de Madrid (UPM) as an ObjectWeb Consortium
12  - (http://www.objectweb.org) project.
13  -
14  - This project has been partially funded by the European Commission under
15  - the IST programme of V FP grant IST-2001-37126 and by the Spanish
16  - Ministry of Science & Technology (MCyT) grants TIC2002-10376-E and
17  - TIC2001-1586-C03-02
18  -
19  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20  - The original code and portions created by LSD are
21  - Copyright (c) 2004 LSD (UPM)
22  - All rights reserved.
23  -
24  - Redistribution and use in source and binary forms, with or without
25  - modification, are permitted provided that the following conditions are met:
26  -
27  - -Redistributions of source code must retain the above copyright notice, this
28  - list of conditions and the following disclaimer.
29  -
30  - -Redistributions in binary form must reproduce the above copyright notice,
31  - this list of conditions and the following disclaimer in the documentation
32  - and/or other materials provided with the distribution.
33  -
34  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
35  - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36  - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
37  - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
38  - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
39  - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
40  - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
41  - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
42  - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
43  - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
44  - POSSIBILITY OF SUCH DAMAGE.
45  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
46  -
47  - Author: Francisco Perez Sorrosal (frperezs)
48  -
49  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
50 */

51
52 package org.objectweb.jass.examples.travelagency.ws;
53
54 public class TravelAgencySoapBindingSkeleton implements org.objectweb.jass.examples.travelagency.ws.TravelAgency, org.apache.axis.wsdl.Skeleton {
55     private org.objectweb.jass.examples.travelagency.ws.TravelAgency impl;
56     private static java.util.Map JavaDoc _myOperations = new java.util.Hashtable JavaDoc();
57     private static java.util.Collection JavaDoc _myOperationsList = new java.util.ArrayList JavaDoc();
58
59     /**
60     * Returns List of OperationDesc objects with this name
61     */

62     public static java.util.List JavaDoc getOperationDescByName(java.lang.String JavaDoc methodName) {
63         return (java.util.List JavaDoc)_myOperations.get(methodName);
64     }
65
66     /**
67     * Returns Collection of OperationDescs
68     */

69     public static java.util.Collection JavaDoc getOperationDescs() {
70         return _myOperationsList;
71     }
72
73     static {
74         org.apache.axis.description.OperationDesc _oper;
75         org.apache.axis.description.FaultDesc _fault;
76         org.apache.axis.description.ParameterDesc [] _params;
77         _params = new org.apache.axis.description.ParameterDesc [] {
78             new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false),
79         };
80         _oper = new org.apache.axis.description.OperationDesc("reserveSeats", _params, new javax.xml.namespace.QName JavaDoc("", "reserveSeatsReturn"));
81         _oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
82         _oper.setElementQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "reserveSeats"));
83         _oper.setSoapAction("");
84         _myOperationsList.add(_oper);
85         if (_myOperations.get("reserveSeats") == null) {
86             _myOperations.put("reserveSeats", new java.util.ArrayList JavaDoc());
87         }
88         ((java.util.List JavaDoc)_myOperations.get("reserveSeats")).add(_oper);
89         _fault = new org.apache.axis.description.FaultDesc();
90         _fault.setName("NotEnoughSeatsException");
91         _fault.setQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "fault"));
92         _fault.setClassName("org.objectweb.jass.examples.travelagency.ws.NotEnoughSeatsException");
93         _fault.setXmlType(new javax.xml.namespace.QName JavaDoc("http://exceptions.travelagency.examples.jass.objectweb.org", "NotEnoughSeatsException"));
94         _oper.addFault(_fault);
95         _fault = new org.apache.axis.description.FaultDesc();
96         _fault.setName("DBException");
97         _fault.setQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "fault"));
98         _fault.setClassName("org.objectweb.jass.examples.travelagency.ws.DBException");
99         _fault.setXmlType(new javax.xml.namespace.QName JavaDoc("http://exceptions.travelagency.examples.jass.objectweb.org", "DBException"));
100         _oper.addFault(_fault);
101         _params = new org.apache.axis.description.ParameterDesc [] {
102             new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false),
103         };
104         _oper = new org.apache.axis.description.OperationDesc("reserveRooms", _params, new javax.xml.namespace.QName JavaDoc("", "reserveRoomsReturn"));
105         _oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
106         _oper.setElementQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "reserveRooms"));
107         _oper.setSoapAction("");
108         _myOperationsList.add(_oper);
109         if (_myOperations.get("reserveRooms") == null) {
110             _myOperations.put("reserveRooms", new java.util.ArrayList JavaDoc());
111         }
112         ((java.util.List JavaDoc)_myOperations.get("reserveRooms")).add(_oper);
113         _fault = new org.apache.axis.description.FaultDesc();
114         _fault.setName("DBException");
115         _fault.setQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "fault"));
116         _fault.setClassName("org.objectweb.jass.examples.travelagency.ws.DBException");
117         _fault.setXmlType(new javax.xml.namespace.QName JavaDoc("http://exceptions.travelagency.examples.jass.objectweb.org", "DBException"));
118         _oper.addFault(_fault);
119         _fault = new org.apache.axis.description.FaultDesc();
120         _fault.setName("NotEnoughRoomsException");
121         _fault.setQName(new javax.xml.namespace.QName JavaDoc("http://ws.travelagency.examples.jass.objectweb.org", "fault"));
122         _fault.setClassName("org.objectweb.jass.examples.travelagency.ws.NotEnoughRoomsException");
123         _fault.setXmlType(new javax.xml.namespace.QName JavaDoc("http://exceptions.travelagency.examples.jass.objectweb.org", "NotEnoughRoomsException"));
124         _oper.addFault(_fault);
125     }
126
127     public TravelAgencySoapBindingSkeleton() {
128         this.impl = new org.objectweb.jass.examples.travelagency.ws.TravelAgencySoapBindingImpl();
129     }
130
131     public TravelAgencySoapBindingSkeleton(org.objectweb.jass.examples.travelagency.ws.TravelAgency impl) {
132         this.impl = impl;
133     }
134     public int reserveSeats(int in0) throws java.rmi.RemoteException JavaDoc, org.objectweb.jass.examples.travelagency.ws.NotEnoughSeatsException, org.objectweb.jass.examples.travelagency.ws.DBException
135     {
136         int ret = impl.reserveSeats(in0);
137         return ret;
138     }
139
140     public int reserveRooms(int in0) throws java.rmi.RemoteException JavaDoc, org.objectweb.jass.examples.travelagency.ws.DBException, org.objectweb.jass.examples.travelagency.ws.NotEnoughRoomsException
141     {
142         int ret = impl.reserveRooms(in0);
143         return ret;
144     }
145
146 }
147
Popular Tags