<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:tns="http://petals.ow2.org/petals-se-WsNotificationBroker"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:wsn-bw="http://docs.oasis-open.org/wsn/bw-2"
	xmlns:wsn-b="http://docs.oasis-open.org/wsn/b-2"
	name="WS-BaseNotification" targetNamespace="http://petals.ow2.org/petals-se-WsNotificationBroker">

	<!-- ================================================== -->
	<!-- ================== imports ======================= -->
	<!-- ================================================== -->	
	<wsdl:import location="bw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/bw-2" />
	
	<!-- ========================================================= -->
	<!-- ========= Extended or Custom Types Definitions ========== -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!-- this section describes some custom types used in child -->
	<!-- nodes where allowed element type - see associated -->
	<!-- XML schema - is "anyType". For example "QueryExpressionType" -->
	<!-- defined in the "b-2.xsd" XML schema file - which is a part of -->
	<!-- "WS-BaseNotification" specification - allowed "anyType" child -->
	<!-- node. In this specific case a simple "string" child node	   -->
	<!-- called "xpath" is used. Of course, this choice is not -->
	<!-- restrictive and "any other type" child node can still be used instead-->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!-- ========================================================= -->	
   
   <!--  
   <wsdl:types>
     <xsd:schema>
		<xsd:import namespace="http://www.ebmwebsourcing.com/wsnotification/specificTypes" 
		schemaLocation="specificTypesForNotification.xsd" />
     </xsd:schema>
   </wsdl:types>
	-->
			
	<!-- ================================================== -->
	<!-- ========== Binding part definition =============== -->
	<!-- ================================================== -->
	<!-- SubscriptionManager binding definition -->
	<wsdl:binding name="SubscriptionManagerBinding" type="wsn-bw:SubscriptionManager">
		<soap:binding style="document"
			transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="Renew">
			<soap:operation soapAction="http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/RenewRequest" />
			<wsdl:input name="RenewRequest">
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="RenewResponse">
				<soap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="ResourceUnknownFault">
				<soap:fault use="literal" name="ResourceUnknownFault" />
			</wsdl:fault>
			<wsdl:fault name="UnacceptableTerminationTimeFault">
				<soap:fault use="literal" name="UnacceptableTerminationTimeFault" />
			</wsdl:fault>
		</wsdl:operation>
		<wsdl:operation name="Unsubscribe">
			<soap:operation
				soapAction="http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest" />
			<wsdl:input name="UnsubscribeRequest">
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="UnsubscribeResponse">
				<soap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="ResourceUnknownFault">
				<soap:fault use="literal" name="ResourceUnknownFault" />
			</wsdl:fault>
			<wsdl:fault name="UnableToDestroySubscriptionFault">
				<soap:fault use="literal" name="UnableToDestroySubscriptionFault" />
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>

	<!-- ============================================= -->
	<!-- =========== Service part definition ========= -->
	<!-- ============================================= -->	
	<wsdl:service name="SubscriptionManagerService">
		<wsdl:port name="SubscriptionManagerServiceEndpoint" binding="tns:SubscriptionManagerBinding">
			<soap:address location="http://localhost:8085/petals/services/SubscriptionManagerService" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
