GetLayerThemes (ZWS)

Возвращает список тематических раскрасок слоя

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

<xs:element name="zulu-server">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Command">
                    <xs:complexType>
                        <xs:choice>
                            <xs:element name="GetLayerThemes" type="typeGetLayerThemes"/>
                        </xs:choice>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
	
    <xs:complexType name="typeGetLayerThemes">
        <xs:all>
            <xs:element name="Layer" type="typeLayer"/>
        </xs:all>
    </xs:complexType>  
   
   

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

   	<xs:element name="zwsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:choice minOccurs="0">
                    <xs:element name="GetLayerThemes" type="typeGetLayerThemesResponse"/>
                </xs:choice>
                <xs:element name="RetVal" type="xs:integer"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
	
<xs:complexType name="typeGetLayerThemesResponse">
        <xs:all>
            <xs:element name="Themes">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="Theme" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                                <xs:all>
                                    <xs:element name="UserName" type="xs:string"/>
                                    <xs:element name="ID" type="xs:integer"/>
                                </xs:all>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:all>
    </xs:complexType>
        

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

<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
    <Command>
        <GetLayerThemes>        
         	<Layer>riga:teplo</Layer>            
		</GetLayerThemes>
    </Command>
</zulu-server>   
   

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

         
<?xml version="1.0" encoding="UTF-8"?>
<zwsResponse>
    <GetLayerThemes>
        <Themes>
            <Theme>
                <ID>1</ID>
                <UserName>Источники</UserName>
            </Theme>
            <Theme>
                <ID>2</ID>
                <UserName>Участки 0.9</UserName>
            </Theme>
        </Themes>
    </GetLayerThemes>
    <RetVal>2</RetVal>
</zwsResponse>