<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns="urn:asip:ror:2015" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:csd="urn:ihe:iti:csd:2013" name="ROR_WebService"
    targetNamespace="urn:asip:ror:2015">
   <wsdl:documentation>Version: 2.4</wsdl:documentation> 
    <wsdl:types>
        <!-- JLY Le 09/01/2017 passage en type dans le XSD -->
        <xs:schema xmlns="urn:asip:ror:2015" targetNamespace="urn:asip:ror:2015"
            xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:import namespace="urn:ihe:iti:csd:2013"
                schemaLocation="https://esante.gouv.fr/sites/default/files/media_entity/documents/IHE_ProfilCSD-ExtensionROR_fr-v2.4.xsd"/>     
            <!--JLY le 24/03/2017 Requete et réponse hors transaction ITI -->
            <xs:element name="TR-Notif-ListeEtablissementsMajApresDate_Demande" type="csd:TR-Notif-ListeEtablissementsMajApresDate_Demande"/>            <!--csd:TR-Notif-ListeEtablissementsMajApresDate_Demande-->
            <xs:element name="TR-Notif-ListeEtablissementMajApresDate_Reponse" type="csd:TR-Notif-ListeEtablissementMajApresDate_Reponse"/>
            <xs:element name="erreur" type="csd:error"></xs:element>
        </xs:schema>
    </wsdl:types>
    
    <!--JLY Le 11/01/2017 et 26/01 Ajout message -->
    <wsdl:message name="TR-Notif-ListeEtablissementsMajApresDate_Demande">
        <wsdl:part name="parameters" element="TR-Notif-ListeEtablissementsMajApresDate_Demande"/>
    </wsdl:message>
    <wsdl:message name="careServicesRequest_Message">
        <wsdl:part name="parameters" element="csd:careServicesRequest"/>
    </wsdl:message>
    <!-- JLY le 08/02/2017 ajout réponse correcte-->
    <wsdl:message name="TR-Notif-ListeEtablissementMajApresDate_Reponse">
        <wsdl:part name="parameters" element="TR-Notif-ListeEtablissementMajApresDate_Reponse"/>
    </wsdl:message>
    <wsdl:message name="careServicesRequest_Message_Response">
        <wsdl:part name="parameters" element="csd:careServicesResponse"/>
    </wsdl:message>    
    <wsdl:message name="careServicesRequest_Message_Error">
        <wsdl:part name="parameters" element="erreur"/>
    </wsdl:message>
    <!-- FDE: added: -->
    <wsdl:message name="TR-Notif-ListeEtablissementMajApresDate_Reponse_Error">
        <wsdl:part name="parameters" element="erreur"/>
    </wsdl:message>
    
    <wsdl:portType name="CareServicesRequest_PortType">
        <!-- JLY Le 26/01/2017 operation 1 -->
        <wsdl:operation name="TR-Notif-ListeEtablissementsMajApresDate_Demande">
            <wsdl:input message="TR-Notif-ListeEtablissementsMajApresDate_Demande"/>
            <wsdl:output message="TR-Notif-ListeEtablissementMajApresDate_Reponse"/>
            <wsdl:fault message="TR-Notif-ListeEtablissementMajApresDate_Reponse_Error" name="CodeErreur"/> 
        </wsdl:operation>
        <!-- JLY Le 26/01/2017 operation 2 ITI -->
        <wsdl:operation name="careServicesRequest_Request">
            <wsdl:input message="careServicesRequest_Message"/>
            <wsdl:output message="careServicesRequest_Message_Response"/>
            <wsdl:fault message="careServicesRequest_Message_Error" name="erreur"/>  
        </wsdl:operation>
    </wsdl:portType>
    
    <wsdl:binding name="CareServicesRequest_Binding" type="CareServicesRequest_PortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="careServicesRequest_Request">
            <soap:operation soapAction="urn:asip:ror:2015:stored-function:ror-search"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <!-- JLY 09/01/2017 Ajout de retour code erreur -->
            <wsdl:fault name="erreur">
                <soap:fault name="erreur" use="encoded"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="TR-Notif-ListeEtablissementsMajApresDate_Demande">
            <soap:operation soapAction="urn:asip:ror:2015:stored-function:ror-update"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <!-- JLY 09/01/2017 Ajout de retour code erreur -->
             <wsdl:fault name="CodeErreur">
                <soap:fault name="erreur" use="encoded"/>
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>
    <!-- JLY Le 16/01/2017 Versionning dans l'URL -->
    <wsdl:service name="CareServicesRequest_Service">
        <wsdl:port name="CareServicesRequest_Port" binding="CareServicesRequest_Binding">
            <soap:address
                location="https://ror-prod.asipsante.fr/ROR/0.1/CSD_ROR_Binding"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
