<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="WidgetFactory"
	targetNamespace="http://tempuri.org/WidgetFactory/"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:tns="http://tempuri.org/WidgetFactory/"
	xmlns="http://schemas.xmlsoap.org/wsdl/">

	<wsdl:types>
		<xsd:schema xmlns="" targetNamespace="http://tempuri.org/WidgetFactory/"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">

			<xsd:complexType name="WidgetType">
				<xsd:sequence>
					<xsd:element name="Name" type="xsd:string" />
					<xsd:element name="Description" type="xsd:string"
						minOccurs="0" />
					<xsd:element name="JediWidget" type="xsd:boolean">
						<xsd:annotation>
							<xsd:documentation>
								The force is strong with this Widget.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
				<xsd:attribute name="ID" type="xsd:long" use="required" />
				<xsd:attribute name="version" use="required">
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:enumeration value="1.0" />
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:attribute>
			</xsd:complexType>


			<xsd:complexType name="createWidgetRequestType">
				<xsd:sequence>
					<xsd:element name="Name" type="xsd:string" />
					<xsd:element name="Description" type="xsd:string"
						minOccurs="0" />
					<xsd:element name="JediWidget" type="xsd:boolean" />
				</xsd:sequence>
				<xsd:attribute name="version" use="required">
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:enumeration value="1.0" />
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:attribute>
			</xsd:complexType>

		</xsd:schema>
	</wsdl:types>

	<wsdl:message name="createWidgetRequest">
		<wsdl:part name="createWidgetRequest"
			type="tns:createWidgetRequestType" />
	</wsdl:message>
	<wsdl:message name="createWidgetResponse">
		<wsdl:part name="WidgetID" type="xsd:long" />
	</wsdl:message>
	<wsdl:message name="getWidgetByIDRequest">
		<wsdl:part name="WidgetID" type="xsd:long" />
	</wsdl:message>
	<wsdl:message name="getWidgetByIDResponse">
		<wsdl:part name="Widget" type="tns:WidgetType" />
	</wsdl:message>

	<wsdl:portType name="WidgetFactoryPortType">
		<wsdl:operation name="createWidget">
			<wsdl:input message="tns:createWidgetRequest" />
			<wsdl:output message="tns:createWidgetResponse" />
		</wsdl:operation>
		<wsdl:operation name="getWidgetByID">
			<wsdl:input message="tns:getWidgetByIDRequest" />
			<wsdl:output message="tns:getWidgetByIDResponse" />
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="WidgetFactoryRPC"
		type="tns:WidgetFactoryPortType">
		<soap:binding style="rpc"
			transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="createWidget">
			<soap:operation
				soapAction="http://tempuri.org/soapAction/WidgetFactory/" />
			<wsdl:input>
				<soap:body namespace="http://tempuri.org/WidgetFactory/"
					use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body namespace="http://tempuri.org/WidgetFactory/"
					use="literal" />
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getWidgetByID">
			<soap:operation
				soapAction="http://tempuri.org/soapAction/WidgetFactory/" />
			<wsdl:input>
				<soap:body namespace="http://tempuri.org/WidgetFactory/"
					use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body namespace="http://tempuri.org/WidgetFactory/"
					use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="WidgetFactoryRPC">
		<wsdl:port binding="tns:WidgetFactoryRPC"
			name="localWidgetFactoryPort">
			<soap:address
				location="http://localhost:8080/lps-4.0.11/WidgetFactoryRPC" />
		</wsdl:port>
	</wsdl:service>

</wsdl:definitions>

