From c42f6da6a9e8e9431efd0079583bb2934603929c Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Sun, 21 Jan 2007 12:08:48 +0000 Subject: [PATCH] --- samples/airline/client/jaxws/build.xml | 7 +- samples/airline/client/jaxws/readme.txt | 11 + .../airline/client/{jws => jaxws}/Main.java | 2 +- .../airline/client/jws/AirlinePortType.java | 59 ----- .../airline/client/jws/AirlineService.java | 69 ------ .../samples/airline/client/jws/Airport.java | 116 --------- .../airline/client/jws/BookFlightRequest.java | 217 ----------------- .../ws/samples/airline/client/jws/Flight.java | 203 ---------------- .../airline/client/jws/GetFlightsRequest.java | 148 ------------ .../client/jws/GetFlightsResponse.java | 89 ------- .../ws/samples/airline/client/jws/Name.java | 90 ------- .../airline/client/jws/ObjectFactory.java | 137 ----------- .../airline/client/jws/ServiceClass.java | 52 ---- .../ws/samples/airline/client/jws/Ticket.java | 225 ------------------ .../airline/client/jws/package-info.java | 2 - 15 files changed, 17 insertions(+), 1410 deletions(-) create mode 100644 samples/airline/client/jaxws/readme.txt rename samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/{jws => jaxws}/Main.java (98%) delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlinePortType.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlineService.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Airport.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/BookFlightRequest.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Flight.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsRequest.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsResponse.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Name.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ObjectFactory.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ServiceClass.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Ticket.java delete mode 100644 samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/package-info.java diff --git a/samples/airline/client/jaxws/build.xml b/samples/airline/client/jaxws/build.xml index 138a8e62..d31ff448 100644 --- a/samples/airline/client/jaxws/build.xml +++ b/samples/airline/client/jaxws/build.xml @@ -3,6 +3,7 @@ + @@ -45,14 +46,16 @@ + - + @@ -61,7 +64,7 @@ - + diff --git a/samples/airline/client/jaxws/readme.txt b/samples/airline/client/jaxws/readme.txt new file mode 100644 index 00000000..cb483566 --- /dev/null +++ b/samples/airline/client/jaxws/readme.txt @@ -0,0 +1,11 @@ +SPRING WEB SERVICES + +This directory contains a Java clients for the Airline Web Service that uses JAX-WS. +The client can be run from the provided ant file, by calling "ant run". +Note that the airline sample has to be running before invoking this target. + +SAJA Client Sample table of contents +--------------------------------------------------- +* src - The source files for the client +* build.xml - Ant build file with a 'build' and a 'run' target + diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Main.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jaxws/Main.java similarity index 98% rename from samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Main.java rename to samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jaxws/Main.java index 306bcc03..f99deb82 100644 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Main.java +++ b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jaxws/Main.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.ws.samples.airline.client.jws; +package org.springframework.ws.samples.airline.client.jaxws; import java.net.MalformedURLException; import java.net.URL; diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlinePortType.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlinePortType.java deleted file mode 100644 index 1b6ec6b0..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlinePortType.java +++ /dev/null @@ -1,59 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.jws.soap.SOAPBinding; -import javax.jws.soap.SOAPBinding.ParameterStyle; - - -/** - * This class was generated by the JAXWS SI. - * JAX-WS RI 2.0_01-b59-fcs - * Generated source version: 2.0 - * - */ -@WebService(name = "AirlinePortType", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/definitions") -@SOAPBinding(parameterStyle = ParameterStyle.BARE) -public interface AirlinePortType { - - - /** - * - * @param body - * @return - * returns org.springframework.ws.samples.airline.client.jws.GetFlightsResponse - */ - @WebMethod(operationName = "GetFlights", action = "http://www.springframework.org/spring-ws/samples/airline/GetFlights") - @WebResult(name = "GetFlightsResponse", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - public GetFlightsResponse getFlights( - @WebParam(name = "GetFlightsRequest", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - GetFlightsRequest body); - - /** - * - * @param body - * @return - * returns org.springframework.ws.samples.airline.client.jws.Ticket - */ - @WebMethod(operationName = "BookFlight", action = "http://www.springframework.org/spring-ws/samples/airline/BookFlight") - @WebResult(name = "BookFlightResponse", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - public Ticket bookFlight( - @WebParam(name = "BookFlightRequest", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - BookFlightRequest body); - - /** - * - * @param body - * @return - * returns int - */ - @WebMethod(operationName = "GetFrequentFlyerMileage", action = "http://www.springframework.org/spring-ws/samples/airline/GetFrequentFlyerMileage") - @WebResult(name = "GetFrequentFlyerMileageResponse", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - public int getFrequentFlyerMileage( - @WebParam(name = "GetFrequentFlyerMileageRequest", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", partName = "body") - Object body); - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlineService.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlineService.java deleted file mode 100644 index 23cd276e..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/AirlineService.java +++ /dev/null @@ -1,69 +0,0 @@ - -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.ws.samples.airline.client.jws; - -import java.net.MalformedURLException; -import java.net.URL; -import javax.xml.namespace.QName; -import javax.xml.ws.Service; -import javax.xml.ws.WebEndpoint; -import javax.xml.ws.WebServiceClient; - - -/** - * This class was generated by the JAXWS SI. - * JAX-WS RI 2.0_01-b59-fcs - * Generated source version: 2.0 - * - */ -@WebServiceClient(name = "AirlineService", targetNamespace = "http://www.springframework.org/spring-ws/samples/airline/definitions", wsdlLocation = "http://localhost:8080/airline/airline.wsdl") -public class AirlineService - extends Service -{ - - private final static URL AIRLINESERVICE_WSDL_LOCATION; - - static { - URL url = null; - try { - url = new URL("http://localhost:8080/airline/airline.wsdl"); - } catch (MalformedURLException e) { - e.printStackTrace(); - } - AIRLINESERVICE_WSDL_LOCATION = url; - } - - public AirlineService(URL wsdlLocation, QName serviceName) { - super(wsdlLocation, serviceName); - } - - public AirlineService() { - super(AIRLINESERVICE_WSDL_LOCATION, new QName("http://www.springframework.org/spring-ws/samples/airline/definitions", "AirlineService")); - } - - /** - * - * @return - * returns AirlinePortType - */ - @WebEndpoint(name = "AirlinePort") - public AirlinePortType getAirlinePort() { - return (AirlinePortType)super.getPort(new QName("http://www.springframework.org/spring-ws/samples/airline/definitions", "AirlinePort"), AirlinePortType.class); - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Airport.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Airport.java deleted file mode 100644 index d551d620..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Airport.java +++ /dev/null @@ -1,116 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for Airport complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="Airport">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <all>
- *         <element name="code" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}AirportCode"/>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </all>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Airport", propOrder = { - -}) -public class Airport { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String code; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String name; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String city; - - /** - * Gets the value of the code property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCode() { - return code; - } - - /** - * Sets the value of the code property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCode(String value) { - this.code = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the city property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCity() { - return city; - } - - /** - * Sets the value of the city property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCity(String value) { - this.city = value; - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/BookFlightRequest.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/BookFlightRequest.java deleted file mode 100644 index 7e5310a4..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/BookFlightRequest.java +++ /dev/null @@ -1,217 +0,0 @@ - -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.ws.samples.airline.client.jws; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; -import org.springframework.ws.samples.airline.client.jws.BookFlightRequest.Passengers; - - -/** - *

Java class for BookFlightRequest element declaration. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <element name="BookFlightRequest">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <all>
- *           <element name="flightNumber" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}FlightNumber"/>
- *           <element name="departureTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
- *           <element name="passengers">
- *             <complexType>
- *               <complexContent>
- *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                   <choice maxOccurs="9">
- *                     <element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Name"/>
- *                     <element name="username" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}FrequentFlyerUsername"/>
- *                   </choice>
- *                 </restriction>
- *               </complexContent>
- *             </complexType>
- *           </element>
- *         </all>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - -}) -@XmlRootElement(name = "BookFlightRequest") -public class BookFlightRequest { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String flightNumber; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected XMLGregorianCalendar departureTime; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected Passengers passengers; - - /** - * Gets the value of the flightNumber property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFlightNumber() { - return flightNumber; - } - - /** - * Sets the value of the flightNumber property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFlightNumber(String value) { - this.flightNumber = value; - } - - /** - * Gets the value of the departureTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDepartureTime() { - return departureTime; - } - - /** - * Sets the value of the departureTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDepartureTime(XMLGregorianCalendar value) { - this.departureTime = value; - } - - /** - * Gets the value of the passengers property. - * - * @return - * possible object is - * {@link Passengers } - * - */ - public Passengers getPassengers() { - return passengers; - } - - /** - * Sets the value of the passengers property. - * - * @param value - * allowed object is - * {@link Passengers } - * - */ - public void setPassengers(Passengers value) { - this.passengers = value; - } - - - /** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

-     * <complexType>
-     *   <complexContent>
-     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-     *       <choice maxOccurs="9">
-     *         <element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Name"/>
-     *         <element name="username" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}FrequentFlyerUsername"/>
-     *       </choice>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "passengerOrUsername" - }) - public static class Passengers { - - @XmlElements({ - @XmlElement(name = "passenger", namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true, type = Name.class), - @XmlElement(name = "username", namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true, type = String.class) - }) - protected List passengerOrUsername; - - /** - * Gets the value of the passengerOrUsername property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the passengerOrUsername property. - * - *

- * For example, to add a new item, do as follows: - *

-         *    getPassengerOrUsername().add(newItem);
-         * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Name } - * {@link String } - * - * - */ - public List getPassengerOrUsername() { - if (passengerOrUsername == null) { - passengerOrUsername = new ArrayList(); - } - return this.passengerOrUsername; - } - - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Flight.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Flight.java deleted file mode 100644 index 1cea517b..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Flight.java +++ /dev/null @@ -1,203 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for Flight complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="Flight">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="number" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}FlightNumber"/>
- *         <element name="departureTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
- *         <element name="from" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Airport"/>
- *         <element name="arrivalTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
- *         <element name="to" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Airport"/>
- *         <element name="serviceClass" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}ServiceClass"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Flight", propOrder = { - "number", - "departureTime", - "from", - "arrivalTime", - "to", - "serviceClass" -}) -public class Flight { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String number; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected XMLGregorianCalendar departureTime; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected Airport from; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected XMLGregorianCalendar arrivalTime; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected Airport to; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected ServiceClass serviceClass; - - /** - * Gets the value of the number property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNumber() { - return number; - } - - /** - * Sets the value of the number property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNumber(String value) { - this.number = value; - } - - /** - * Gets the value of the departureTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDepartureTime() { - return departureTime; - } - - /** - * Sets the value of the departureTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDepartureTime(XMLGregorianCalendar value) { - this.departureTime = value; - } - - /** - * Gets the value of the from property. - * - * @return - * possible object is - * {@link Airport } - * - */ - public Airport getFrom() { - return from; - } - - /** - * Sets the value of the from property. - * - * @param value - * allowed object is - * {@link Airport } - * - */ - public void setFrom(Airport value) { - this.from = value; - } - - /** - * Gets the value of the arrivalTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getArrivalTime() { - return arrivalTime; - } - - /** - * Sets the value of the arrivalTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setArrivalTime(XMLGregorianCalendar value) { - this.arrivalTime = value; - } - - /** - * Gets the value of the to property. - * - * @return - * possible object is - * {@link Airport } - * - */ - public Airport getTo() { - return to; - } - - /** - * Sets the value of the to property. - * - * @param value - * allowed object is - * {@link Airport } - * - */ - public void setTo(Airport value) { - this.to = value; - } - - /** - * Gets the value of the serviceClass property. - * - * @return - * possible object is - * {@link ServiceClass } - * - */ - public ServiceClass getServiceClass() { - return serviceClass; - } - - /** - * Sets the value of the serviceClass property. - * - * @param value - * allowed object is - * {@link ServiceClass } - * - */ - public void setServiceClass(ServiceClass value) { - this.serviceClass = value; - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsRequest.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsRequest.java deleted file mode 100644 index 6a0eb177..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsRequest.java +++ /dev/null @@ -1,148 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for GetFlightsRequest element declaration. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <element name="GetFlightsRequest">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <all>
- *           <element name="from" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}AirportCode"/>
- *           <element name="to" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}AirportCode"/>
- *           <element name="departureDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
- *           <element name="serviceClass" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}ServiceClass" minOccurs="0"/>
- *         </all>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - -}) -@XmlRootElement(name = "GetFlightsRequest") -public class GetFlightsRequest { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String from; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String to; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected XMLGregorianCalendar departureDate; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas") - protected ServiceClass serviceClass; - - /** - * Gets the value of the from property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFrom() { - return from; - } - - /** - * Sets the value of the from property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFrom(String value) { - this.from = value; - } - - /** - * Gets the value of the to property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTo() { - return to; - } - - /** - * Sets the value of the to property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTo(String value) { - this.to = value; - } - - /** - * Gets the value of the departureDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDepartureDate() { - return departureDate; - } - - /** - * Sets the value of the departureDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDepartureDate(XMLGregorianCalendar value) { - this.departureDate = value; - } - - /** - * Gets the value of the serviceClass property. - * - * @return - * possible object is - * {@link ServiceClass } - * - */ - public ServiceClass getServiceClass() { - return serviceClass; - } - - /** - * Sets the value of the serviceClass property. - * - * @param value - * allowed object is - * {@link ServiceClass } - * - */ - public void setServiceClass(ServiceClass value) { - this.serviceClass = value; - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsResponse.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsResponse.java deleted file mode 100644 index 92c4238d..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/GetFlightsResponse.java +++ /dev/null @@ -1,89 +0,0 @@ - -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.ws.samples.airline.client.jws; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for GetFlightsResponse element declaration. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <element name="GetFlightsResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="flight" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Flight" maxOccurs="unbounded" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "flight" -}) -@XmlRootElement(name = "GetFlightsResponse") -public class GetFlightsResponse { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected List flight; - - /** - * Gets the value of the flight property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the flight property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFlight().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Flight } - * - * - */ - public List getFlight() { - if (flight == null) { - flight = new ArrayList(); - } - return this.flight; - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Name.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Name.java deleted file mode 100644 index a9eb5b61..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Name.java +++ /dev/null @@ -1,90 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for Name complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="Name">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="first" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="last" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Name", propOrder = { - "first", - "last" -}) -public class Name { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String first; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected String last; - - /** - * Gets the value of the first property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirst() { - return first; - } - - /** - * Sets the value of the first property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirst(String value) { - this.first = value; - } - - /** - * Gets the value of the last property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLast() { - return last; - } - - /** - * Sets the value of the last property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLast(String value) { - this.last = value; - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ObjectFactory.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ObjectFactory.java deleted file mode 100644 index 690f5638..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ObjectFactory.java +++ /dev/null @@ -1,137 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the org.springframework.ws.samples.airline.client.jws package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _GetFrequentFlyerMileageResponse_QNAME = new QName("http://www.springframework.org/spring-ws/samples/airline/schemas", "GetFrequentFlyerMileageResponse"); - private final static QName _BookFlightResponse_QNAME = new QName("http://www.springframework.org/spring-ws/samples/airline/schemas", "BookFlightResponse"); - private final static QName _GetFrequentFlyerMileageRequest_QNAME = new QName("http://www.springframework.org/spring-ws/samples/airline/schemas", "GetFrequentFlyerMileageRequest"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.springframework.ws.samples.airline.client.jws - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link org.springframework.ws.samples.airline.client.jws.Ticket.Passengers } - * - */ - public org.springframework.ws.samples.airline.client.jws.Ticket.Passengers createTicketPassengers() { - return new org.springframework.ws.samples.airline.client.jws.Ticket.Passengers(); - } - - /** - * Create an instance of {@link Flight } - * - */ - public Flight createFlight() { - return new Flight(); - } - - /** - * Create an instance of {@link Airport } - * - */ - public Airport createAirport() { - return new Airport(); - } - - /** - * Create an instance of {@link GetFlightsRequest } - * - */ - public GetFlightsRequest createGetFlightsRequest() { - return new GetFlightsRequest(); - } - - /** - * Create an instance of {@link GetFlightsResponse } - * - */ - public GetFlightsResponse createGetFlightsResponse() { - return new GetFlightsResponse(); - } - - /** - * Create an instance of {@link org.springframework.ws.samples.airline.client.jws.BookFlightRequest.Passengers } - * - */ - public org.springframework.ws.samples.airline.client.jws.BookFlightRequest.Passengers createBookFlightRequestPassengers() { - return new org.springframework.ws.samples.airline.client.jws.BookFlightRequest.Passengers(); - } - - /** - * Create an instance of {@link BookFlightRequest } - * - */ - public BookFlightRequest createBookFlightRequest() { - return new BookFlightRequest(); - } - - /** - * Create an instance of {@link Name } - * - */ - public Name createName() { - return new Name(); - } - - /** - * Create an instance of {@link Ticket } - * - */ - public Ticket createTicket() { - return new Ticket(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", name = "GetFrequentFlyerMileageResponse") - public JAXBElement createGetFrequentFlyerMileageResponse(Integer value) { - return new JAXBElement(_GetFrequentFlyerMileageResponse_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Ticket }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", name = "BookFlightResponse") - public JAXBElement createBookFlightResponse(Ticket value) { - return new JAXBElement(_BookFlightResponse_QNAME, Ticket.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", name = "GetFrequentFlyerMileageRequest") - public JAXBElement createGetFrequentFlyerMileageRequest(Object value) { - return new JAXBElement(_GetFrequentFlyerMileageRequest_QNAME, Object.class, null, value); - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ServiceClass.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ServiceClass.java deleted file mode 100644 index f3821497..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/ServiceClass.java +++ /dev/null @@ -1,52 +0,0 @@ - -package org.springframework.ws.samples.airline.client.jws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for ServiceClass. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ServiceClass">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
- *     <enumeration value="economy"/>
- *     <enumeration value="business"/>
- *     <enumeration value="first"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum ServiceClass { - - @XmlEnumValue("business") - BUSINESS("business"), - @XmlEnumValue("economy") - ECONOMY("economy"), - @XmlEnumValue("first") - FIRST("first"); - private final String value; - - ServiceClass(String v) { - value = v; - } - - public String value() { - return value; - } - - public static ServiceClass fromValue(String v) { - for (ServiceClass c: ServiceClass.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Ticket.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Ticket.java deleted file mode 100644 index de9f34b9..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/Ticket.java +++ /dev/null @@ -1,225 +0,0 @@ - -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.ws.samples.airline.client.jws; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; -import org.springframework.ws.samples.airline.client.jws.Ticket.Passengers; - - -/** - *

Java class for Ticket complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="Ticket">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <all>
- *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
- *         <element name="issueDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
- *         <element name="passengers">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Name" maxOccurs="9"/>
- *                 </sequence>
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *         <element name="flight" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Flight"/>
- *       </all>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Ticket", propOrder = { - -}) -public class Ticket { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas") - protected long id; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected XMLGregorianCalendar issueDate; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected Passengers passengers; - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected Flight flight; - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the issueDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getIssueDate() { - return issueDate; - } - - /** - * Sets the value of the issueDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setIssueDate(XMLGregorianCalendar value) { - this.issueDate = value; - } - - /** - * Gets the value of the passengers property. - * - * @return - * possible object is - * {@link Passengers } - * - */ - public Passengers getPassengers() { - return passengers; - } - - /** - * Sets the value of the passengers property. - * - * @param value - * allowed object is - * {@link Passengers } - * - */ - public void setPassengers(Passengers value) { - this.passengers = value; - } - - /** - * Gets the value of the flight property. - * - * @return - * possible object is - * {@link Flight } - * - */ - public Flight getFlight() { - return flight; - } - - /** - * Sets the value of the flight property. - * - * @param value - * allowed object is - * {@link Flight } - * - */ - public void setFlight(Flight value) { - this.flight = value; - } - - - /** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

-     * <complexType>
-     *   <complexContent>
-     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-     *       <sequence>
-     *         <element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas}Name" maxOccurs="9"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "passenger" - }) - public static class Passengers { - - @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas", required = true) - protected List passenger; - - /** - * Gets the value of the passenger property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the passenger property. - * - *

- * For example, to add a new item, do as follows: - *

-         *    getPassenger().add(newItem);
-         * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Name } - * - * - */ - public List getPassenger() { - if (passenger == null) { - passenger = new ArrayList(); - } - return this.passenger; - } - - } - -} diff --git a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/package-info.java b/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/package-info.java deleted file mode 100644 index ff061d80..00000000 --- a/samples/airline/client/jaxws/src/org/springframework/ws/samples/airline/client/jws/package-info.java +++ /dev/null @@ -1,2 +0,0 @@ -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas") -package org.springframework.ws.samples.airline.client.jws;