LayerFindWay (ZWS)

Поиск кратчайшего пути по сети слоя

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

  <xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="LayerFindWay" type="typeLayerFindWay"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
			
    <xs:complexType name="typeLayerFindWay">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
            <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="LayerFindWay" type="typeLayerFindWayResponse"/>
                </xs:choice>
                <xs:element name="RetVal" type="xs:integer"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>


    <xs:complexType name="typeLayerFindWayResponse">
        <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>
        <LayerFindWay>
             <Layer>riga:teplo</Layer>
            <FlagID>19919,20004</FlagID>
            <IgnoreState>No</IgnoreState>            
        </LayerFindWay>
    </Command>
</zulu-server>
   

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

         
<?xml version="1.0" encoding="UTF-8" ?>
<zwsResponse>
    <LayerFindWay>
        <Keys>19919 19922 23785 23784 19921 19924 19923 19926 19925 19936 19935 19938 19937 19940
            23781 23780 19939 19946 19945 20005 20004</Keys>
    </LayerFindWay>
    <RetVal>21</RetVal>
</zwsResponse>