<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="AddressingService"
                  targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing"
                  xmlns:wsp="http://www.w3.org/ns/ws-policy"
                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema">
            <import
                namespace="http://www.jboss.org/jbossws/ws-extensions/wsaddressing"
                schemaLocation="AddressingService_schema1.xsd"/>
        </schema>
    </wsdl:types>
    <wsdl:message name="sayHelloResponse">
        <wsdl:part name="parameters" element="tns:sayHelloResponse">
        </wsdl:part>
    </wsdl:message>
    <wsdl:message name="sayHello">
        <wsdl:part name="parameters" element="tns:sayHello">
        </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="ServiceIface">
        <wsdl:operation name="sayHello">
            <wsdl:input name="sayHello" message="tns:sayHello">
            </wsdl:input>
            <wsdl:output name="sayHelloResponse" message="tns:sayHelloResponse">
            </wsdl:output>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="AddressingServiceSoapBinding" type="tns:ServiceIface">
        <soap:binding style="document"
                      transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsaw:UsingAddressing wsdl:required="true"/>
        <wsp:PolicyReference
            URI="#AddressingServiceSoapBinding_WSAM_Addressing_Policy"/>
        <wsdl:operation name="sayHello">
            <soap:operation soapAction="" style="document"/>
            <wsdl:input name="sayHello">
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="sayHelloResponse">
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="AddressingService">
        <wsdl:port name="AddressingServicePort"
                   binding="tns:AddressingServiceSoapBinding">
            <!-- service address will be rewritten to actual one when WSDL is requested from running server -->
            <soap:address location="http://SERVER:PORT/AddressingServicePort"/>
        </wsdl:port>
    </wsdl:service>
    <wsp:Policy wsu:Id="AddressingServiceSoapBinding_WSAM_Addressing_Policy"
                xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsam:Addressing
            xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
            <wsp:Policy/>
        </wsam:Addressing>
    </wsp:Policy>
</wsdl:definitions>
