<?xml version="1.0" encoding="UTF-8"?>
<definitions name="WafacashController" targetNamespace="urn:WafacashControllerwsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:WafacashControllerwsdl"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdl:types>
        <xsd:schema targetNamespace="urn:WafacashControllerwsdl">
            <xsd:complexType name="InfoResponse">
                <xsd:all>
                    <xsd:element name="code" type="xsd:string"/>
                    <xsd:element name="firstName" type="xsd:string"/>
                    <xsd:element name="lastName" type="xsd:string"/>
                    <xsd:element name="dealName" type="xsd:string"/>
                    <xsd:element name="dealPrice" type="xsd:float"/>
                    <xsd:element name="stampDutyCharges" type="xsd:float"/>
                    <xsd:element name="status" type="xsd:string"/>
                    <xsd:element name="errorMsg" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="ValidRequest">
                <xsd:all>
                    <xsd:element name="login" type="xsd:string"/>
                    <xsd:element name="password" type="xsd:string"/>
                    <xsd:element name="code" type="xsd:string"/>
                    <xsd:element name="firstName" type="xsd:string"/>
                    <xsd:element name="lastName" type="xsd:string"/>
                    <xsd:element name="dealName" type="xsd:string"/>
                    <xsd:element name="dealPrice" type="xsd:float"/>
                    <xsd:element name="stampDutyCharges" type="xsd:float"/>
                    <xsd:element name="totalPrice" type="xsd:float"/>
                    <xsd:element name="Date" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="ValidResponse">
                <xsd:all>
                    <xsd:element name="code" type="xsd:string"/>
                    <xsd:element name="status" type="xsd:string"/>
                    <xsd:element name="errorMsg" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="CancelRequest">
                <xsd:all>
                    <xsd:element name="login" type="xsd:string"/>
                    <xsd:element name="password" type="xsd:string"/>
                    <xsd:element name="code" type="xsd:string"/>
                    <xsd:element name="firstName" type="xsd:string"/>
                    <xsd:element name="lastName" type="xsd:string"/>
                    <xsd:element name="dealName" type="xsd:string"/>
                    <xsd:element name="dealPrice" type="xsd:float"/>
                    <xsd:element name="stampDutyCharges" type="xsd:float"/>
                    <xsd:element name="totalPrice" type="xsd:float"/>
                    <xsd:element name="Date" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="CancelResponse">
                <xsd:all>
                    <xsd:element name="code" type="xsd:string"/>
                    <xsd:element name="status" type="xsd:string"/>
                    <xsd:element name="errorMsg" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>

    <wsdl:message name="GetPaymentInfoIn">
        <wsdl:part name="login" type="xsd:string"/>
        <wsdl:part name="password" type="xsd:string"/>
        <wsdl:part name="code" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="GetPaymentInfoOut">
        <wsdl:part name="return" type="tns:InfoResponse"/>
    </wsdl:message>

    <wsdl:message name="ValidatePaymentIn">
        <wsdl:part name="ValidRequest" type="tns:ValidRequest"/>
    </wsdl:message>
    <wsdl:message name="ValidatePaymentOut">
        <wsdl:part name="return" type="tns:ValidResponse"/>
    </wsdl:message>

    <wsdl:message name="CancelPaymentIn">
        <wsdl:part name="CancelRequest" type="tns:CancelRequest"/>
    </wsdl:message>
    <wsdl:message name="CancelPaymentOut">
        <wsdl:part name="return" type="tns:CancelResponse"/>
    </wsdl:message>

    <wsdl:portType name="WafacashControllerPortType">
        <wsdl:operation name="GetPaymentInfo">
            <wsdl:documentation>all informations about commande</wsdl:documentation>
            <wsdl:input message="tns:GetPaymentInfoIn"/>
            <wsdl:output message="tns:GetPaymentInfoOut"/>
        </wsdl:operation>
        <wsdl:operation name="ValidatePayment">
            <wsdl:documentation></wsdl:documentation>
            <wsdl:input message="tns:ValidatePaymentIn"/>
            <wsdl:output message="tns:ValidatePaymentOut"/>
        </wsdl:operation>
        <wsdl:operation name="CancelPayment">
            <wsdl:documentation></wsdl:documentation>
            <wsdl:input message="tns:CancelPaymentIn"/>
            <wsdl:output message="tns:CancelPaymentOut"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="WafacashControllerBinding" type="tns:WafacashControllerPortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="GetPaymentInfo">
            <soap:operation soapAction="urn:WafacashControllerwsdl#GetPaymentInfo" style="rpc"/>
            <wsdl:input>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ValidatePayment">
            <soap:operation soapAction="urn:WafacashControllerwsdl#ValidatePayment" style="rpc"/>
            <wsdl:input>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="CancelPayment">
            <soap:operation soapAction="urn:WafacashControllerwsdl#CancelPayment" style="rpc"/>
            <wsdl:input>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WafacashControllerwsdl"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="WafacashControllerService">
        <wsdl:port name="WafacashControllerPort" binding="tns:WafacashControllerBinding">
            <soap:address location="https://wafacash.annonces.lematin.ma/wafacash/quote?ws=1"/>
        </wsdl:port>
    </wsdl:service>
</definitions>