TrackingRegisterDevice (ZWS)

Регистрирует новое устройство на сервере трекинга.

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

<xs:element name="zulu-server">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Command">
                <xs:complexType>
                    <xs:choice>
                        <xs:element name="TrackingRegisterDevice" type="typeTrackingRegisterDevice"/>
                    </xs:choice>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>    

<xs:complexType name="typeTrackingRegisterDevice">
    <xs:all>
        <xs:element name="Layer" type="typeLayer">
        </xs:element>
        <xs:element name="DeviceID" type="xs:integer">
        </xs:element>
        <xs:element name="DeviceDescription" type="xs:string">                
        </xs:element>
    </xs:all>
</xs:complexType>
    

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

<xs:element name="zwsResponse">
    <xs:complexType>
        <xs:sequence>
            <xs:choice minOccurs="0">
                <xs:element name="TrackingRegisterDevice"/>
            </xs:choice>
            <xs:element name="RetVal" type="xs:integer"/>
        </xs:sequence>
     </xs:complexType>
</xs:element>  
        

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

<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
    <Command>
        <TrackingRegisterDevice>
        <Layer>People</Layer>
        <DeviceID>123456</DeviceID>
	<Description>Ivanov S.V.</Description>
	</TrackingRegisterDevice>
    </Command>
</zulu-server>
        

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

<?xml version="1.0" encoding="UTF-8" ?>
<zwsResponse>
    <TrackingRegisterDevice />
    <RetVal>0</RetVal>
</zwsResponse>