This commit is contained in:
Arjen Poutsma
2007-10-29 01:56:58 +00:00
parent 5ef9c4b9a2
commit 6774f195fb
3 changed files with 132 additions and 6 deletions

View File

@@ -31,8 +31,8 @@ import org.xml.sax.helpers.XMLReaderFactory;
/**
* The default {@link Wsdl11Definition} implementation.
* <p/>
* <p>Allows a WSDL to be set by the {@link #setWsdl wsdl} property, or directly in the {@link
* #SimpleWsdl11Definition(org.springframework.core.io.Resource) constructor}.
* Allows a WSDL to be set by the {@link #setWsdl wsdl} property, or directly in the {@link
* #SimpleWsdl11Definition(Resource) constructor}.
*
* @author Arjen Poutsma
* @since 1.0.0
@@ -42,14 +42,15 @@ public class SimpleWsdl11Definition implements Wsdl11Definition, InitializingBea
private Resource wsdlResource;
/**
* Create a new instance of the <code>SimpleWsdl11Definition</code> class. <p>A subsequent call to the {@link
* #setWsdl(org.springframework.core.io.Resource)} method is required.
* Create a new instance of the {@link SimpleWsdl11Definition} class.
* <p/>
* A subsequent call to the {@link #setWsdl(Resource)} method is required.
*/
public SimpleWsdl11Definition() {
}
/**
* Create a new instance of the <code>SimpleWsdl11Definition</code> class.
* Create a new instance of the {@link SimpleWsdl11Definition} class with the specified resource.
*
* @param wsdlResource the WSDL resource; must not be <code>null</code>
* @throws IllegalArgumentException if the supplied <code>wsdlResource</code> is <code>null</code>

View File

@@ -21,7 +21,7 @@ import org.springframework.ws.wsdl.WsdlDefinition;
/**
* Models a WSDL 1.1-specific {@link WsdlDefinition}.
* <p/>
* <p>Just a marker interface at the moment.
* Just a marker interface at the moment.
*
* @author Arjen Poutsma
* @see Wsdl11DefinitionBuilder

View File

@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.springframework.org/spring-ws/samples/airline/schemas"
xmlns:tns="http://www.springframework.org/spring-ws/samples/airline/schemas" elementFormDefault="qualified">
<element name="GetFlightsRequest">
<complexType>
<all>
<element name="from" type="tns:AirportCode"/>
<element name="to" type="tns:AirportCode"/>
<element name="departureDate" type="date"/>
<element name="serviceClass" type="tns:ServiceClass" minOccurs="0"/>
</all>
</complexType>
</element>
<element name="GetFlightsResponse">
<complexType>
<sequence>
<element name="flight" type="tns:Flight" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="GetFlightsFault">
<complexType>
<sequence>
<element name="errorCode" type="string"/>
</sequence>
</complexType>
</element>
<element name="BookFlightRequest">
<complexType>
<all>
<element name="flightNumber" type="tns:FlightNumber"/>
<element name="departureTime" type="dateTime"/>
<element name="passengers">
<complexType>
<choice maxOccurs="9">
<element name="passenger" type="tns:Name"/>
<element name="username" type="tns:FrequentFlyerUsername"/>
</choice>
</complexType>
</element>
</all>
</complexType>
</element>
<element name="BookFlightResponse" type="tns:Ticket"/>
<element name="GetFrequentFlyerMileageRequest"/>
<element name="GetFrequentFlyerMileageResponse" type="int"/>
<complexType name="Flight">
<sequence>
<element name="number" type="tns:FlightNumber"/>
<element name="departureTime" type="dateTime"/>
<element name="from" type="tns:Airport"/>
<element name="arrivalTime" type="dateTime"/>
<element name="to" type="tns:Airport"/>
<element name="serviceClass" type="tns:ServiceClass"/>
</sequence>
</complexType>
<simpleType name="FlightNumber">
<restriction base="string">
<pattern value="[A-Z][A-Z][0-9][0-9][0-9][0-9]"/>
</restriction>
</simpleType>
<complexType name="Name">
<sequence>
<element name="first" type="string"/>
<element name="last" type="string"/>
</sequence>
</complexType>
<simpleType name="FrequentFlyerUsername">
<restriction base="string"/>
</simpleType>
<complexType name="Airport">
<all>
<element name="code" type="tns:AirportCode"/>
<element name="name" type="string"/>
<element name="city" type="string"/>
</all>
</complexType>
<simpleType name="AirportCode">
<restriction base="string">
<pattern value="[A-Z][A-Z][A-Z]"/>
</restriction>
</simpleType>
<complexType name="Ticket">
<all>
<element name="id" type="long"/>
<element name="issueDate" type="date"/>
<element name="passengers">
<complexType>
<sequence>
<element name="passenger" type="tns:Name" maxOccurs="9"/>
</sequence>
</complexType>
</element>
<element name="flight" type="tns:Flight"/>
</all>
</complexType>
<simpleType name="ServiceClass">
<restriction base="NCName">
<enumeration value="economy"/>
<enumeration value="business"/>
<enumeration value="first"/>
</restriction>
</simpleType>
</schema>