<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="GatewayService" targetNamespace="http://asystems.fss" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://asystems.fss" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsp:Policy wsu:Id="CustomBinding_IGatewayService_policy"><wsp:ExactlyOne><wsp:All><wsaw:UsingAddressing/></wsp:All></wsp:ExactlyOne></wsp:Policy><wsdl:types><xs:schema elementFormDefault="qualified" targetNamespace="http://asystems.fss" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:import namespace="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/><xs:import namespace="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model"/><xs:element name="SendFile"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="data" nillable="true" type="xs:base64Binary"/><xs:element minOccurs="0" name="fileName" nillable="true" type="xs:string"/></xs:sequence></xs:complexType></xs:element><xs:element name="SendFileResponse"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="SendFileResult" nillable="true" type="q1:UploadResult" xmlns:q1="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/></xs:sequence></xs:complexType></xs:element><xs:element name="UploadsGet"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="regNum" nillable="true" type="xs:string"/><xs:element minOccurs="0" name="filter" type="q2:DateFilter" xmlns:q2="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model"/></xs:sequence></xs:complexType></xs:element><xs:element name="UploadsGetResponse"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="UploadsGetResult" nillable="true" type="q3:ArrayOfUPLOADS" xmlns:q3="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model"/></xs:sequence></xs:complexType></xs:element><xs:element name="UploadGetByExtID"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="id" nillable="true" type="xs:string"/></xs:sequence></xs:complexType></xs:element><xs:element name="UploadGetByExtIDResponse"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="UploadGetByExtIDResult" nillable="true" type="q4:UPLOADS" xmlns:q4="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model"/></xs:sequence></xs:complexType></xs:element><xs:element name="GetDocStates"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="id" nillable="true" type="xs:string"/></xs:sequence></xs:complexType></xs:element><xs:element name="GetDocStatesResponse"><xs:complexType><xs:sequence><xs:element minOccurs="0" name="GetDocStatesResult" nillable="true" type="xs:base64Binary"/></xs:sequence></xs:complexType></xs:element></xs:schema><xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/"><xs:element name="anyType" nillable="true" type="xs:anyType"/><xs:element name="anyURI" nillable="true" type="xs:anyURI"/><xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/><xs:element name="boolean" nillable="true" type="xs:boolean"/><xs:element name="byte" nillable="true" type="xs:byte"/><xs:element name="dateTime" nillable="true" type="xs:dateTime"/><xs:element name="decimal" nillable="true" type="xs:decimal"/><xs:element name="double" nillable="true" type="xs:double"/><xs:element name="float" nillable="true" type="xs:float"/><xs:element name="int" nillable="true" type="xs:int"/><xs:element name="long" nillable="true" type="xs:long"/><xs:element name="QName" nillable="true" type="xs:QName"/><xs:element name="short" nillable="true" type="xs:short"/><xs:element name="string" nillable="true" type="xs:string"/><xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/><xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/><xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/><xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/><xs:element name="char" nillable="true" type="tns:char"/><xs:simpleType name="char"><xs:restriction base="xs:int"/></xs:simpleType><xs:element name="duration" nillable="true" type="tns:duration"/><xs:simpleType name="duration"><xs:restriction base="xs:duration"><xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/><xs:minInclusive value="-P10675199DT2H48M5.4775808S"/><xs:maxInclusive value="P10675199DT2H48M5.4775807S"/></xs:restriction></xs:simpleType><xs:element name="guid" nillable="true" type="tns:guid"/><xs:simpleType name="guid"><xs:restriction base="xs:string"><xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/></xs:restriction></xs:simpleType><xs:attribute name="FactoryType" type="xs:QName"/><xs:attribute name="Id" type="xs:ID"/><xs:attribute name="Ref" type="xs:IDREF"/></xs:schema><xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"><xs:complexType name="UploadResult"><xs:sequence><xs:element minOccurs="0" name="ExtID" nillable="true" type="xs:string"/><xs:element minOccurs="0" name="RegNum" nillable="true" type="xs:string"/></xs:sequence></xs:complexType><xs:element name="UploadResult" nillable="true" type="tns:UploadResult"/><xs:complexType name="GeneralFault"><xs:sequence><xs:element minOccurs="0" name="ErrorMessage" nillable="true" type="xs:string"/></xs:sequence></xs:complexType><xs:element name="GeneralFault" nillable="true" type="tns:GeneralFault"/></xs:schema><xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.DataAccess.Model"><xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/"/><xs:simpleType name="DateFilter"><xs:restriction base="xs:string"><xs:enumeration value="Day"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="TwoDays"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="Week"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">7</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="Month"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">31</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="Year"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">365</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="TwoYear"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">730</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration><xs:enumeration value="ThreeYear"><xs:annotation><xs:appinfo><EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1095</EnumerationValue></xs:appinfo></xs:annotation></xs:enumeration></xs:restriction></xs:simpleType><xs:element name="DateFilter" nillable="true" type="tns:DateFilter"/><xs:complexType name="ArrayOfUPLOADS"><xs:sequence><xs:element minOccurs="0" maxOccurs="unbounded" name="UPLOADS" nillable="true" type="tns:UPLOADS"/></xs:sequence></xs:complexType><xs:element name="ArrayOfUPLOADS" nillable="true" type="tns:ArrayOfUPLOADS"/><xs:complexType name="UPLOADS"><xs:sequence><xs:element minOccurs="0" name="CERT_DATA" nillable="true" type="xs:base64Binary"/><xs:element minOccurs="0" name="CNT_LN_PROCEED" nillable="true" type="xs:int"/><xs:element minOccurs="0" name="CNT_LN_VALID" nillable="true" type="xs:int"/><xs:element minOccurs="0" name="CR_DATE" type="xs:dateTime"/><xs:element minOccurs="0" name="EXT_ID" nillable="true" type="xs:string"/><xs:element minOccurs="0" name="FILE_DATA_SIGNED" nillable="true" type="xs:base64Binary"/><xs:element minOccurs="0" name="FILE_FILENAME" nillable="true" type="xs:string"/><xs:element minOccurs="0" name="FILE_TICKET" nillable="true" type="xs:base64Binary"><xs:annotation><xs:appinfo><DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"/></xs:appinfo></xs:annotation></xs:element><xs:element minOccurs="0" name="FILE_TICKET_ENC" nillable="true" type="xs:base64Binary"><xs:annotation><xs:appinfo><DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"/></xs:appinfo></xs:annotation></xs:element><xs:element minOccurs="0" name="FSS_ERROR" nillable="true" type="xs:int"/><xs:element minOccurs="0" name="LAST_EXCEPTION" nillable="true" type="xs:base64Binary"><xs:annotation><xs:appinfo><DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/"/></xs:appinfo></xs:annotation></xs:element><xs:element minOccurs="0" name="MD_DATE" nillable="true" type="xs:dateTime"/><xs:element minOccurs="0" name="STATE" nillable="true" type="xs:string"/><xs:element minOccurs="0" name="STATE_ID" nillable="true" type="xs:int"/></xs:sequence></xs:complexType><xs:element name="UPLOADS" nillable="true" type="tns:UPLOADS"/></xs:schema></wsdl:types><wsdl:message name="IGatewayService_SendFile_InputMessage"><wsdl:part name="parameters" element="tns:SendFile"/></wsdl:message><wsdl:message name="IGatewayService_SendFile_OutputMessage"><wsdl:part name="parameters" element="tns:SendFileResponse"/></wsdl:message><wsdl:message name="IGatewayService_SendFile_GeneralFaultFault_FaultMessage"><wsdl:part name="detail" element="q1:GeneralFault" xmlns:q1="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/></wsdl:message><wsdl:message name="IGatewayService_UploadsGet_InputMessage"><wsdl:part name="parameters" element="tns:UploadsGet"/></wsdl:message><wsdl:message name="IGatewayService_UploadsGet_OutputMessage"><wsdl:part name="parameters" element="tns:UploadsGetResponse"/></wsdl:message><wsdl:message name="IGatewayService_UploadsGet_GeneralFaultFault_FaultMessage"><wsdl:part name="detail" element="q2:GeneralFault" xmlns:q2="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/></wsdl:message><wsdl:message name="IGatewayService_UploadGetByExtID_InputMessage"><wsdl:part name="parameters" element="tns:UploadGetByExtID"/></wsdl:message><wsdl:message name="IGatewayService_UploadGetByExtID_OutputMessage"><wsdl:part name="parameters" element="tns:UploadGetByExtIDResponse"/></wsdl:message><wsdl:message name="IGatewayService_UploadGetByExtID_GeneralFaultFault_FaultMessage"><wsdl:part name="detail" element="q3:GeneralFault" xmlns:q3="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/></wsdl:message><wsdl:message name="IGatewayService_GetDocStates_InputMessage"><wsdl:part name="parameters" element="tns:GetDocStates"/></wsdl:message><wsdl:message name="IGatewayService_GetDocStates_OutputMessage"><wsdl:part name="parameters" element="tns:GetDocStatesResponse"/></wsdl:message><wsdl:message name="IGatewayService_GetDocStates_GeneralFaultFault_FaultMessage"><wsdl:part name="detail" element="q4:GeneralFault" xmlns:q4="http://schemas.datacontract.org/2004/07/AS.FSS.Gateway.ExtService.Model"/></wsdl:message><wsdl:portType name="IGatewayService"><wsdl:operation name="SendFile"><wsdl:input wsaw:Action="http://asystems.fss/IGatewayService/SendFile" message="tns:IGatewayService_SendFile_InputMessage"/><wsdl:output wsaw:Action="http://asystems.fss/IGatewayService/SendFileResponse" message="tns:IGatewayService_SendFile_OutputMessage"/><wsdl:fault wsaw:Action="http://asystems.fss/IGatewayService/SendFileGeneralFaultFault" name="GeneralFaultFault" message="tns:IGatewayService_SendFile_GeneralFaultFault_FaultMessage"/></wsdl:operation><wsdl:operation name="UploadsGet"><wsdl:input wsaw:Action="http://asystems.fss/IGatewayService/UploadsGet" message="tns:IGatewayService_UploadsGet_InputMessage"/><wsdl:output wsaw:Action="http://asystems.fss/IGatewayService/UploadsGetResponse" message="tns:IGatewayService_UploadsGet_OutputMessage"/><wsdl:fault wsaw:Action="http://asystems.fss/IGatewayService/UploadsGetGeneralFaultFault" name="GeneralFaultFault" message="tns:IGatewayService_UploadsGet_GeneralFaultFault_FaultMessage"/></wsdl:operation><wsdl:operation name="UploadGetByExtID"><wsdl:input wsaw:Action="http://asystems.fss/IGatewayService/UploadGetByExtID" message="tns:IGatewayService_UploadGetByExtID_InputMessage"/><wsdl:output wsaw:Action="http://asystems.fss/IGatewayService/UploadGetByExtIDResponse" message="tns:IGatewayService_UploadGetByExtID_OutputMessage"/><wsdl:fault wsaw:Action="http://asystems.fss/IGatewayService/UploadGetByExtIDGeneralFaultFault" name="GeneralFaultFault" message="tns:IGatewayService_UploadGetByExtID_GeneralFaultFault_FaultMessage"/></wsdl:operation><wsdl:operation name="GetDocStates"><wsdl:input wsaw:Action="http://asystems.fss/IGatewayService/GetDocStates" message="tns:IGatewayService_GetDocStates_InputMessage"/><wsdl:output wsaw:Action="http://asystems.fss/IGatewayService/GetDocStatesResponse" message="tns:IGatewayService_GetDocStates_OutputMessage"/><wsdl:fault wsaw:Action="http://asystems.fss/IGatewayService/GetDocStatesGeneralFaultFault" name="GeneralFaultFault" message="tns:IGatewayService_GetDocStates_GeneralFaultFault_FaultMessage"/></wsdl:operation></wsdl:portType><wsdl:binding name="CustomBinding_IGatewayService" type="tns:IGatewayService"><wsp:PolicyReference URI="#CustomBinding_IGatewayService_policy"/><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="SendFile"><soap12:operation soapAction="http://asystems.fss/IGatewayService/SendFile" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap12:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="UploadsGet"><soap12:operation soapAction="http://asystems.fss/IGatewayService/UploadsGet" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap12:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="UploadGetByExtID"><soap12:operation soapAction="http://asystems.fss/IGatewayService/UploadGetByExtID" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap12:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="GetDocStates"><soap12:operation soapAction="http://asystems.fss/IGatewayService/GetDocStates" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap12:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:binding name="BasicHttpBinding_IGatewayService" type="tns:IGatewayService"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="SendFile"><soap:operation soapAction="http://asystems.fss/IGatewayService/SendFile" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="UploadsGet"><soap:operation soapAction="http://asystems.fss/IGatewayService/UploadsGet" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="UploadGetByExtID"><soap:operation soapAction="http://asystems.fss/IGatewayService/UploadGetByExtID" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation><wsdl:operation name="GetDocStates"><soap:operation soapAction="http://asystems.fss/IGatewayService/GetDocStates" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output><wsdl:fault name="GeneralFaultFault"><soap:fault use="literal" name="GeneralFaultFault" namespace=""/></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:service name="GatewayService"><wsdl:port name="CustomBinding_IGatewayService" binding="tns:CustomBinding_IGatewayService"><soap12:address location="http://docs-test.fss.ru/ExtService/GatewayService.svc"/><wsa10:EndpointReference><wsa10:Address>http://docs-test.fss.ru/ExtService/GatewayService.svc</wsa10:Address></wsa10:EndpointReference></wsdl:port><wsdl:port name="BasicHttpBinding_IGatewayService" binding="tns:BasicHttpBinding_IGatewayService"><soap:address location="http://docs-test.fss.ru/ExtService/GatewayService.svc/http"/></wsdl:port></wsdl:service></wsdl:definitions>