<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://api.mainlink.ru/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://api.mainlink.ru/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://api.mainlink.ru/">
      <s:element name="mlapi_GetAvgPrices">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="v_min" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="v_max" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="pr_min" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="pr_max" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="domainlevel_min" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="domainlevel_max" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="mlapi_GetAvgPricesResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="mlapi_GetAvgPricesResult" type="tns:ArrayOfStat" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfStat">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Stat" type="tns:Stat" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Stat">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="cyfrom" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="cyto" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="domainlevel" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="zone" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="v" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="pr" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="price" type="s:double" />
        </s:sequence>
      </s:complexType>
      <s:element name="mlapi_AvgPrices">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="cy_min" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="cy_max" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="v_min" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="v_max" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="mlapi_AvgPricesResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="mlapi_AvgPricesResult" type="tns:ArrayOfStatData" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfStatData">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="StatData" type="tns:StatData" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="StatData">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="cyfrom" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="cyto" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="v" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="pr" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="price" type="s:double" />
        </s:sequence>
      </s:complexType>
      <s:element name="mlapi_AvgPricesPressRelease">
        <s:complexType />
      </s:element>
      <s:element name="mlapi_AvgPricesPressReleaseResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="mlapi_AvgPricesPressReleaseResult" type="tns:ArrayOfStatPressRelease" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfStatPressRelease">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="StatPressRelease" type="tns:StatPressRelease" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="StatPressRelease">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="cyfrom" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="cyto" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="price" type="s:double" />
        </s:sequence>
      </s:complexType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="mlapi_GetAvgPricesSoapIn">
    <wsdl:part name="parameters" element="tns:mlapi_GetAvgPrices" />
  </wsdl:message>
  <wsdl:message name="mlapi_GetAvgPricesSoapOut">
    <wsdl:part name="parameters" element="tns:mlapi_GetAvgPricesResponse" />
  </wsdl:message>
  <wsdl:message name="mlapi_AvgPricesSoapIn">
    <wsdl:part name="parameters" element="tns:mlapi_AvgPrices" />
  </wsdl:message>
  <wsdl:message name="mlapi_AvgPricesSoapOut">
    <wsdl:part name="parameters" element="tns:mlapi_AvgPricesResponse" />
  </wsdl:message>
  <wsdl:message name="mlapi_AvgPricesPressReleaseSoapIn">
    <wsdl:part name="parameters" element="tns:mlapi_AvgPricesPressRelease" />
  </wsdl:message>
  <wsdl:message name="mlapi_AvgPricesPressReleaseSoapOut">
    <wsdl:part name="parameters" element="tns:mlapi_AvgPricesPressReleaseResponse" />
  </wsdl:message>
  <wsdl:portType name="statSoap">
    <wsdl:operation name="mlapi_GetAvgPrices">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">MLAPI: получить статистику по MainLink'у&lt;br&gt;вход: [v_min] влож.минимум, [v_max] влож.максимум, [pr_max] PageRank минимум, [pr_max] PageRank максимум, [domainlevel_min] доменная зона минимум, [domainlevel_max] доменная зона максимум ((домен второго уровня - 2, домен третьего уровня - 3))&lt;br&gt;выход: [массив] средняя стата</wsdl:documentation>
      <wsdl:input message="tns:mlapi_GetAvgPricesSoapIn" />
      <wsdl:output message="tns:mlapi_GetAvgPricesSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPrices">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;span style='color:red'&gt;new!&lt;/span&gt; MLAPI: получить статистику по MainLink'у&lt;br&gt;вход: [cy_min] тИЦ минимум, [cy_max] тИЦ максимум, [v_min] влож.минимум, [v_max] влож.максимум&lt;br&gt;выход: [массив] стата</wsdl:documentation>
      <wsdl:input message="tns:mlapi_AvgPricesSoapIn" />
      <wsdl:output message="tns:mlapi_AvgPricesSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPricesPressRelease">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">&lt;span style='color:red'&gt;new!&lt;/span&gt; MLAPI: получить статистику средних цен на Пресс-релизы&lt;br&gt;выход: [массив] стата</wsdl:documentation>
      <wsdl:input message="tns:mlapi_AvgPricesPressReleaseSoapIn" />
      <wsdl:output message="tns:mlapi_AvgPricesPressReleaseSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="statSoap" type="tns:statSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="mlapi_GetAvgPrices">
      <soap:operation soapAction="http://api.mainlink.ru/mlapi_GetAvgPrices" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPrices">
      <soap:operation soapAction="http://api.mainlink.ru/mlapi_AvgPrices" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPricesPressRelease">
      <soap:operation soapAction="http://api.mainlink.ru/mlapi_AvgPricesPressRelease" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="statSoap12" type="tns:statSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="mlapi_GetAvgPrices">
      <soap12:operation soapAction="http://api.mainlink.ru/mlapi_GetAvgPrices" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPrices">
      <soap12:operation soapAction="http://api.mainlink.ru/mlapi_AvgPrices" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="mlapi_AvgPricesPressRelease">
      <soap12:operation soapAction="http://api.mainlink.ru/mlapi_AvgPricesPressRelease" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="stat">
    <wsdl:port name="statSoap" binding="tns:statSoap">
      <soap:address location="http://api.mainlink.ru/stat.asmx" />
    </wsdl:port>
    <wsdl:port name="statSoap12" binding="tns:statSoap12">
      <soap12:address location="http://api.mainlink.ru/stat.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>