<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:base="http://dom.gosuslugi.ru/schema/integration/base/" xmlns:ns="http://www.w3.org/2000/09/xmldsig#" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://dom.gosuslugi.ru/schema/integration/device-metering-service-async/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:dm="http://dom.gosuslugi.ru/schema/integration/device-metering/" targetNamespace="http://dom.gosuslugi.ru/schema/integration/device-metering-service-async/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xs:schema version="10.0.1.1">
      <xs:import schemaLocation="hcs-device-metering-types.xsd" namespace="http://dom.gosuslugi.ru/schema/integration/device-metering/" />
      <xs:import schemaLocation="../lib/hcs-base.xsd" namespace="http://dom.gosuslugi.ru/schema/integration/base/" />
    </xs:schema>
  </wsdl:types>
  <wsdl:message name="Fault">
    <wsdl:part name="Fault" element="base:Fault" />
  </wsdl:message>
  <wsdl:message name="importMeteringDeviceValuesRequest">
    <wsdl:part name="importMeteringDeviceValuesRequest" element="dm:importMeteringDeviceValuesRequest" />
  </wsdl:message>
  <wsdl:message name="exportMeteringDeviceHistoryRequest">
    <wsdl:part name="exportMeteringDeviceHistoryRequest" element="dm:exportMeteringDeviceHistoryRequest" />
  </wsdl:message>
  <wsdl:message name="RequestHeader">
    <wsdl:part name="Header" element="base:RequestHeader" />
  </wsdl:message>
  <wsdl:message name="ResultHeader">
    <wsdl:part name="Header" element="base:ResultHeader" />
  </wsdl:message>
  <wsdl:message name="exportMeteringDeviceHistoryResult">
    <wsdl:part name="AckRequest" element="base:AckRequest" />
  </wsdl:message>
  <wsdl:message name="getStateRequest">
    <wsdl:part name="getStateRequest" element="base:getStateRequest" />
  </wsdl:message>
  <wsdl:message name="getStateResult">
    <wsdl:part name="getStateResult" element="dm:getStateResult" />
  </wsdl:message>
  <wsdl:message name="importMeteringDeviceValuesResult">
    <wsdl:part name="AckRequest" element="base:AckRequest" />
  </wsdl:message>
  <wsdl:portType name="DeviceMeteringPortTypesAsync">
    <wsdl:operation name="importMeteringDeviceValues">
      <wsdl:documentation>Передать показания ПУ</wsdl:documentation>
      <wsdl:input message="tns:importMeteringDeviceValuesRequest" />
      <wsdl:output message="tns:importMeteringDeviceValuesResult" />
      <wsdl:fault name="InvalidRequest" message="tns:Fault" />
    </wsdl:operation>
    <wsdl:operation name="exportMeteringDeviceHistory">
      <wsdl:documentation>Получить историю показаний ПУ</wsdl:documentation>
      <wsdl:input message="tns:exportMeteringDeviceHistoryRequest" />
      <wsdl:output message="tns:exportMeteringDeviceHistoryResult" />
      <wsdl:fault name="InvalidRequest" message="tns:Fault" />
    </wsdl:operation>
    <wsdl:operation name="getState">
      <wsdl:input message="tns:getStateRequest" />
      <wsdl:output message="tns:getStateResult" />
      <wsdl:fault name="InvalidRequest" message="tns:Fault" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="DeviceMeteringBindingAsync" type="tns:DeviceMeteringPortTypesAsync">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="importMeteringDeviceValues">
      <soap:operation soapAction="urn:importMeteringDeviceValues" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:RequestHeader" part="Header" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
        <soap:header message="tns:ResultHeader" part="Header" use="literal" />
      </wsdl:output>
      <wsdl:fault name="InvalidRequest">
        <soap:fault use="literal" name="InvalidRequest" namespace="" />
      </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="exportMeteringDeviceHistory">
      <soap:operation soapAction="urn:exportMeteringDeviceHistory" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:RequestHeader" part="Header" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
        <soap:header message="tns:ResultHeader" part="Header" use="literal" />
      </wsdl:output>
      <wsdl:fault name="InvalidRequest">
        <soap:fault use="literal" name="InvalidRequest" namespace="" />
      </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getState">
      <soap:operation soapAction="urn:getState" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:RequestHeader" part="Header" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
        <soap:header message="tns:ResultHeader" part="Header" use="literal" />
      </wsdl:output>
      <wsdl:fault name="InvalidRequest">
        <soap:fault use="literal" name="InvalidRequest" namespace="" />
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="DeviceMeteringServiceAsync">
    <wsdl:documentation>Асинхронный сервис управления приборами учета и передачей показаний</wsdl:documentation>
    <wsdl:port name="DeviceMeteringPortAsync" binding="tns:DeviceMeteringBindingAsync">
      <soap:address location="https://api.dom.gosuslugi.ru/ext-bus-device-metering-service/services/DeviceMeteringAsync" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>