<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
  xmlns:types="urn:com:adcubum:syrius:api:finanzwesen:rechtlichesinkasso:v520:types"
  xmlns:service="urn:com:adcubum:syrius:api:finanzwesen:rechtlichesinkasso:v520"
  targetNamespace="urn:com:adcubum:syrius:api:finanzwesen:rechtlichesinkasso:v520">
  <wsdl:documentation>
    @status: CANDIDATE
    @version: v5.2.0

    Communication between Adcubum SYRIUS and the Legal Collection System.
    This WSDL has to be implemented on the Legal Collection System so SYRIUS can call these methods.
    The calls back are defined in different schemas.
  </wsdl:documentation>
  <wsdl:types>
    <xs:schema targetNamespace="urn:com:adcubum:syrius:api:finanzwesen:rechtlichesinkasso:v520">
      <xs:import namespace="urn:com:adcubum:syrius:api:finanzwesen:rechtlichesinkasso:v520:types" schemaLocation="rik-export-schema-v520.xsd" />
      <xs:import namespace="http://www.ech.ch/xmlns/eCH-0007/6" schemaLocation="eCH-0007-6-0.xsd" />
      <xs:import namespace="http://www.ech.ch/xmlns/eCH-0010/6" schemaLocation="eCH-0010-6-0.xsd" />
      <xs:import namespace="http://www.eschkg.ch/schema/2.0" schemaLocation="eSchKG_2.0.013.xsd" />
      <xs:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" schemaLocation="oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
    </xs:schema>
  </wsdl:types>

  <wsdl:message name="legalCollectionRequest_Request">
    <wsdl:part element="types:legalCollectionRequest" name="parameters" />
  </wsdl:message>
  <wsdl:message name="legalCollectionRequest_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processDebtReduction_Request">
    <wsdl:part element="types:processDebtReduction" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processDebtReduction_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processPartnerdata_Request">
    <wsdl:part element="types:processPartnerdata" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processPartnerdata_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processClaimCancellation_Request">
    <wsdl:part element="types:processClaimCancellation" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processClaimCancellation_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processClaimReturn_Request">
    <wsdl:part element="types:processClaimReturn" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processClaimReturn_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processDeletionApproval_Request">
    <wsdl:part element="types:processDeletionApproval" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processDeletionApproval_Response">
    <wsdl:part element="types:deletionApprovalResponse" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processConnectionCheck_Request">
    <wsdl:part element="types:processConnectionCheck" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processConnectionCheck_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

  <wsdl:message name="processPayerdata_Request">
    <wsdl:part element="types:processPayerdata" name="parameters" />
  </wsdl:message>
  <wsdl:message name="processPayerdata_Response">
    <wsdl:part element="types:response" name="parameters" />
  </wsdl:message>

   <wsdl:message name="Header">
        <wsdl:part element="wsse:Security" name="Security"/>
   </wsdl:message>

  <wsdl:portType name="GlobalRIKMeldungExporter_PortType">
    <wsdl:operation name="legalCollectionRequest">
      <wsdl:documentation>
        Requests for adding all the given claims and Amortizations into a Legal Collection.
        @param List of LegalCollectionType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:legalCollectionRequest_Request" />
      <wsdl:output message="service:legalCollectionRequest_Response" />
    </wsdl:operation>

    <wsdl:operation name="processDebtReduction" parameterOrder="parameters">
      <wsdl:documentation>
        Requests for adding one ore more debt reductions to an existing Legal Collection.
        @param List of DebtReductionType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processDebtReduction_Request" />
      <wsdl:output message="service:processDebtReduction_Response" />
    </wsdl:operation>

    <wsdl:operation name="processPartnerdata" parameterOrder="parameters">
      <wsdl:documentation>
        Sends out all data for a person in case some data have changed.
        @param List of PartnerDataChangeType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processPartnerdata_Request" />
      <wsdl:output message="service:processPartnerdata_Response" />
    </wsdl:operation>

    <wsdl:operation name="processClaimCancellation" parameterOrder="parameters">
      <wsdl:documentation>
        Requests for cancel one ore more claims or amortizations from Legal Collection.
        @param List of ClaimCancellationType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processClaimCancellation_Request" />
      <wsdl:output message="service:processClaimCancellation_Response" />
    </wsdl:operation>

    <wsdl:operation name="processClaimReturn" parameterOrder="parameters">
      <wsdl:documentation>
        Requests for removing one ore more claims from an existing Legal Collection.
        @param List of ClaimReturnRequestType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processClaimReturn_Request" />
      <wsdl:output message="service:processClaimReturn_Response" />
    </wsdl:operation>

    <wsdl:operation name="processDeletionApproval" parameterOrder="parameters">
      <wsdl:documentation>
        Approval for deletion of a legal collection or payment plan by a third party system.
        @param List of DeletionApprovalRequestType
        @return An DeletionApprovalResponse
      </wsdl:documentation>
      <wsdl:input message="service:processDeletionApproval_Request" />
      <wsdl:output message="service:processDeletionApproval_Response" />
    </wsdl:operation>

    <wsdl:operation name="processConnectionCheck" parameterOrder="parameters">
      <wsdl:documentation>
        Checks the connection to a third party system.
        @param ConnectionCheckRequestType
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processConnectionCheck_Request" />
      <wsdl:output message="service:processConnectionCheck_Response" />
    </wsdl:operation>

    <wsdl:operation name="processPayerdata" parameterOrder="parameters">
      <wsdl:documentation>
        Sends out data for a payer in case some data have changed.
        @param List of PayerDataChangeType's
        @return An ImportResponse
      </wsdl:documentation>
      <wsdl:input message="service:processPayerdata_Request" />
      <wsdl:output message="service:processPayerdata_Response" />
    </wsdl:operation>

  </wsdl:portType>

  <wsdl:binding name="GlobalRIKMeldungExporter_Binding" type="service:GlobalRIKMeldungExporter_PortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />

    <wsdl:operation name="legalCollectionRequest">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processDebtReduction">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processPartnerdata">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processClaimCancellation">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processClaimReturn">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processDeletionApproval">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processConnectionCheck">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="processPayerdata">
      <soap:operation soapAction="" style="document" />
      <wsdl:input>
        <soap:body parts="parameters" use="literal" />
        <soap:header message="service:Header" part="Security" use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="GlobalRIKMeldungExporter">
    <wsdl:port binding="service:GlobalRIKMeldungExporter_Binding" name="GlobalRIKMeldungExporter_Port">
      <soap:address location="http://localhost:8081/syrius/soap/GlobalRIKMeldungExporter" />
    </wsdl:port>
  </wsdl:service>

</wsdl:definitions>

