<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.wstf.org/docs/scenarios/sc003"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:tns="http://www.wstf.org/docs/scenarios/sc003"
                  xmlns:sc002="http://www.wstf.org/docs/scenarios/sc002"
                  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
                  xmlns:wsp="http://www.w3.org/ns/ws-policy">

  <wsdl:types>
    <xs:schema targetNamespace="http://www.wstf.org/docs/scenarios/sc002">
      <xs:include schemaLocation="http://www.wstf.org/docs/scenarios/sc002/sc002.xsd"/>
      <xs:element name="Notify" type="sc002:NotifyType"/>
      <xs:element name="Echo" type="sc002:EchoType"/>
      <xs:element name="EchoResponse" type="sc002:EchoResponseType"/>
      <xs:element name="SessionData" type="sc002:SessionDataType"/>
      <xs:element name="InvalidInput" type="sc002:InvalidInputType" />
    </xs:schema>
  </wsdl:types>

  
  <wsdl:message name="Notify">
    <wsdl:part name="Notify" element="sc002:Notify"/>
    <wsdl:part name="SessionData" element="sc002:SessionData"/>
  </wsdl:message>
  <wsdl:message name="Echo">
    <wsdl:part name="Echo" element="sc002:Echo"/>
    <wsdl:part name="SessionData" element="sc002:SessionData"/>
  </wsdl:message>
  <wsdl:message name="EchoResponse">
    <wsdl:part name="EchoResponse" element="sc002:EchoResponse"/>
  </wsdl:message>
  <wsdl:message name="InvalidInputMsg">
		<wsdl:part element="sc002:InvalidInput" name="InvalidInput" />
  </wsdl:message>

    <wsdl:portType name="sc003Port">
    
    <wsdl:operation name="Notify">
     <wsdl:input message="tns:Notify"
                 wsam:Action="http://www.wstf.org/docs/scenarios/sc002/Notify"/>
    </wsdl:operation>
    <wsdl:operation name="Echo">
      <wsdl:documentation>
        Note the use of distinct action values for the input and
        output messages of this operation.
      </wsdl:documentation>
      <wsdl:input message="tns:Echo"
                  wsam:Action="http://www.wstf.org/docs/scenarios/sc002/Echo"/>
      <wsdl:output message="tns:EchoResponse"
                   wsam:Action="http://www.wstf.org/docs/scenarios/sc002/EchoResponse"/>
      <wsdl:fault message="tns:InvalidInputMsg" name="InvalidInputFault" />
    </wsdl:operation>
    
  </wsdl:portType>

  <wsdl:binding name="sc003SOAP11Binding" type="tns:sc003Port">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="Notify">
      <soap:operation soapAction=""/>
      <wsdl:input>
        <soap:header use="literal" part="SessionData" message="tns:Notify"/>
        <soap:body use="literal" parts="Notify"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="Echo">
      <soap:operation soapAction=""/>
      <wsdl:input>
        <soap:header use="literal" part="SessionData" message="tns:Echo"/>
        <soap:body use="literal" parts="Echo"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="InvalidInputFault">
		<soap:fault name="InvalidInputFault" use="literal" />
	</wsdl:fault>
    </wsdl:operation>
      </wsdl:binding>

  <wsdl:binding name="sc003SOAP12Binding" type="tns:sc003Port">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="Notify">
      <soap12:operation/>
      <wsdl:input>
        <soap12:header use="literal" part="SessionData" message="tns:Notify"/>
        <soap12:body use="literal" parts="Notify"/>
      </wsdl:input>
    </wsdl:operation>
    <wsdl:operation name="Echo">
      <soap12:operation/>
      <wsdl:input>
        <soap12:header use="literal" part="SessionData" message="tns:Echo"/>
        <soap12:body use="literal" parts="Echo"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="InvalidInputFault">
			<soap12:fault name="InvalidInputFault" use="literal" />
	</wsdl:fault>
    </wsdl:operation>
     </wsdl:binding>

  <wsdl:service name="sc003Service">
    <wsdl:port  name="soap11port" binding="tns:sc003SOAP11Binding">
      <wsdl:documentation>
        This port supports the optional use of WS-Addressing 1.0.
      </wsdl:documentation>
      <soap:address location="http://www.wstf.org/sc003/sc003SOAP11"/>
      <wsp:Policy>
        <wsam:Addressing  wsp:Optional="true">
          <wsp:Policy/>
        </wsam:Addressing>
      </wsp:Policy>
    </wsdl:port>
    <wsdl:port name="soap12port" binding="tns:sc003SOAP12Binding">
      <wsdl:documentation>
        This port supports the optional use of WS-Addressing 1.0.
      </wsdl:documentation>
      <soap12:address location="http://www.wstf.org/sc003/sc003SOAP12"/>
      <wsp:Policy>
        <wsam:Addressing wsp:Optional="true">
          <wsp:Policy/>
        </wsam:Addressing>
      </wsp:Policy>
    </wsdl:port>
  </wsdl:service>

</wsdl:definitions>
