<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROOT_TRANS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="ROOT_TRANS" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Params">
          <xs:complexType>
            <xs:attribute name="DayFrom" type="xs:date" />
            <xs:attribute name="DayTo" type="xs:date" />
            <xs:attribute name="TimeFrom" type="xs:time" use="optional"/>
            <xs:attribute name="TimeTo" type="xs:time" use="optional"/>
            <xs:attribute name="UserID" type="xs:integer" use="optional"/>
            <xs:attribute name="ClientCode" type="xs:string" use="optional"/>
            <xs:attribute name="Orders" type="xs:integer" use="optional"/>
            <xs:attribute name="Success" type="xs:integer" use="optional"/>
            <xs:attribute name="ClassCodes" type="xs:string" use="optional"/>
            <xs:attribute name="SecCode" type="xs:string" use="optional"/>
            <xs:attribute name="MinPrice" type="xs:float" use="optional"/>
            <xs:attribute name="MaxPrice" type="xs:float" use="optional"/>
            <xs:attribute name="TransID" type="xs:integer" use="optional"/>
	    <xs:attribute name="OrderNum" type="xs:float" use="optional"/>
	  </xs:complexType>
        </xs:element>
        <xs:element name="Data">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UserInfo" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
              	   <xs:element name="Trans" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                     <xs:sequence>
                       <xs:element name="TextData" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
                       <xs:element name="TextDataEncoded" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
                       <xs:element name="PureData" type="xs:string" minOccurs="0" msdata:Ordinal="2" />
                       <xs:element name="Reply" type="xs:string" minOccurs="0" msdata:Ordinal="3" />
                       <xs:element name="Sign" type="xs:string" minOccurs="0" msdata:Ordinal="4" />
                       <xs:element name="OnBehalfOfUserID" type="xs:integer" minOccurs="0" msdata:Ordinal="5" />
                       <xs:element name="OnBehalfOfName1" type="xs:string" minOccurs="0" msdata:Ordinal="6" />
                       <xs:element name="OnBehalfOfName2" type="xs:string" minOccurs="0" msdata:Ordinal="7" />
                       <xs:element name="OnBehalfOfName3" type="xs:string" minOccurs="0" msdata:Ordinal="8" />
                       <xs:element name="TransData" minOccurs="0" maxOccurs="unbounded">
                       <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Field" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute name="Number" type="xs:integer" />
                              <xs:attribute name="Name" type="xs:string" />
                              <xs:attribute name="Description" type="xs:string" />
                              <xs:attribute name="Size" type="xs:integer" />
                              <xs:attribute name="Type" type="xs:integer" />
                              <xs:attribute name="Flags" type="xs:integer" />
                              <xs:attribute name="DefValue" type="xs:string" />
                              <xs:attribute name="EnumCount" type="xs:integer" />
                              <xs:attribute name="EnumValues" type="xs:string" />
                              <xs:attribute name="Value" type="xs:string" />
                              <xs:attribute name="ValueEncoded" type="xs:string" />
                              <xs:attribute name="PreparedValue" type="xs:string" />
			      <xs:attribute name="Scale" type="xs:integer" use="optional"/>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="ClassID" type="xs:integer" />
                        <xs:attribute name="ClassCode" type="xs:string" />
			<xs:attribute name="ClassName" type="xs:string" />
                        <xs:attribute name="Description" type="xs:string" />
                        <xs:attribute name="FieldsNum" type="xs:integer" />
                        <xs:attribute name="Flags" type="xs:integer" />
			<xs:attribute name="InfoType" type="xs:integer" />
			<xs:attribute name="InfoExType" type="xs:integer" />
                      </xs:complexType>
                    </xs:element>
		    <xs:element name="UsedKey" type="xs:string" minOccurs="0" msdata:Ordinal="6" />
		    <xs:element name="UsedPIN" type="xs:string" minOccurs="0" msdata:Ordinal="7" />
		    <xs:element name="RespondTrans" minOccurs="0" maxOccurs="unbounded">
                        <xs:complexType>
                          <xs:sequence>
                            <xs:element name="Respond" minOccurs="0" maxOccurs="unbounded">
                              <xs:complexType>
                                <xs:sequence>
                                  <xs:element name="TextData" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
                                  <xs:element name="TextDataEncoded" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
                                  <xs:element name="PureData" type="xs:string" minOccurs="0" msdata:Ordinal="2" />
                                  <xs:element name="Reply" type="xs:string" minOccurs="0" msdata:Ordinal="3" />
                                  <xs:element name="Sign" type="xs:string" minOccurs="0" msdata:Ordinal="4" />
                                </xs:sequence>
                                <xs:attribute name="TransNum" type="xs:integer" />
                                <xs:attribute name="Action" type="xs:integer" />
                                <xs:attribute name="PreparedAction" type="xs:string" />
                                <xs:attribute name="Status" type="xs:string" />
                                <xs:attribute name="QuikTime" type="xs:dateTime" />
                                <xs:attribute name="ReplyTime" type="xs:dateTime" />
                                <xs:attribute name="OrderNum" type="xs:float" />
                                <xs:attribute name="ExtOrderNum" type="xs:string" />
                                <xs:attribute name="SignExists" type="xs:integer" />
                                <xs:attribute name="SignatorySubject" type="xs:string" />
                                <xs:attribute name="SignatoryIssuer" type="xs:string" />
                                <xs:attribute name="SignatorySerial" type="xs:string" />
                              </xs:complexType>
                            </xs:element>
                          </xs:sequence>
                        </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="TransNum" type="xs:integer" />
                  <xs:attribute name="UID" type="xs:integer" />
                  <xs:attribute name="TransID" type="xs:integer" />
                  <xs:attribute name="SessionID" type="xs:integer" />
                  <xs:attribute name="TradeDate" type="xs:dateTime" />
                  <xs:attribute name="Status" type="xs:string" />
                  <xs:attribute name="QuikTime" type="xs:dateTime" />
                  <xs:attribute name="ReplyTime" type="xs:dateTime" />
                  <xs:attribute name="OrderNum" type="xs:float" />
                  <xs:attribute name="ClientCode" type="xs:string" />
                  <xs:attribute name="ExtOrderNum" type="xs:string" />
                  <xs:attribute name="SignExists" type="xs:integer" />
                  <xs:attribute name="SignatorySubject" type="xs:string" />
                  <xs:attribute name="SignatoryIssuer" type="xs:string" />
                  <xs:attribute name="SignatorySerial" type="xs:string" />
                   <xs:attribute name="RespondTransExist" type="xs:integer" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
                  <xs:attribute name="UID" type="xs:integer" />
                  <xs:attribute name="Name1" type="xs:string" />
                  <xs:attribute name="Name2" type="xs:string" />
                  <xs:attribute name="Name3" type="xs:string" />
                  <xs:attribute name="OrgCode" type="xs:integer" />
                  <xs:attribute name="OrgName" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>