LayerFindConnected (ZWS)

Возвращает список объектов сети, связанных с заданным ID

Схема запроса:

  <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="LayerFindConnected" type="typeLayerFindConnected"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	
    <xs:complexType name="typeLayerFindConnected">
        <xs:all>
            <xs:element name="Layer" type="xs:string"/>
            <xs:element name="FlagID" type="typeListOfIntegers"/>
            <xs:element name="IgnoreState" type="typeFlag" minOccurs="0" default="No"/>
        </xs:all>
    </xs:complexType>
   

Схема ответа:

   <xs:element name="zwsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:choice minOccurs="0">
                    <xs:element name="LayerFindConnected" type="typeLayerFindConnectedResponse"/>
                </xs:choice>
                <xs:element name="RetVal" type="xs:integer"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
    <xs:complexType name="typeLayerFindConnectedResponse">
        <xs:all>
            <xs:element name="Keys" type="typeListOfIntegers"/>
        </xs:all>
    </xs:complexType>
        

Пример запроса:

<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
    <Command>
        <LayerFindConnected>
      	<Layer>riga:teplo</Layer>
            <FlagID>19968</FlagID>
            <IgnoreState>No</IgnoreState>            
		</LayerFindConnected>
    </Command>
</zulu-server>
   

Пример ответа:

<?xml version="1.0" encoding="UTF-8" ?>
    <zwsResponse>
        <LayerFindConnected>
            <Keys>7 9 10 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
                  42 43 44 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 66 67 68 69 70 71 72 73 74 75
                  76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105
                  106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 122 123 124 125 126 127 128
                  129 130 131 133 134 135 136 137 138 139 140 141 142 143 145 146 147 149 150 151 152 153
                  154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 
                  176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 196 197 198
                  199 200 201 202 203 204 205 206 208 209 210 211 212 213 214 217 219 220 222 223 225 226 
                  227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
                  249 250 251 252 253 254 255 256 257
            </Keys>
        </LayerFindConnected>
    <RetVal>13613</RetVal>
</zwsResponse>