5

My question is about the ONVIF specification. http://www.onvif.org/imwp/download.asp?ContentID=18006 In section 5.10, it says :

A service is a collection of related ports. This specification does not mandate any service naming principles.

Lets say that I have the IP address of an NVT (Network Video Transmitter like an IP camera for example), how do I form the address of the device management web service? This service is the entry point of the whole system.

Thank you.

4

5 に答える 5

5

公式文書(セクション 5.1.1) によると、次の場所でサービスにアクセスできます。http://<IP address>/onvif/device_service

于 2011-01-04T11:12:45.687 に答える
2

onvif xsdl ファイルにサービスを追加する必要があります ( http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdlとしましょう)

    <wsdl:definitions ......>
      ..............
         </wsdl:binding>
         <!--===============================-->
         <wsdl:service name="DeviceService">
             <wsdl:port name="DevicePort" binding="tds:DeviceBinding">
               <soap:address location="http://ip/onvif/device_service"/>
             </wsdl:port>
           </wsdl:service>
    </wsdl:definitions>

ws クライアント ソース コードを生成します (Java では wsimport を使用できます)。

前述のように、Web サービスのエントリ ポイントはhttp://ip/onvif/device_service です。

于 2011-01-13T16:00:11.410 に答える
0

Şafak が指摘する規則は、ONVIF 標準で説明されています。しかし、実際には、一部のデバイスはそれに従っていません。この場合、ユニキャスト ws-discovery Probe 要求を送信しようとします (またはマルチキャストしてから、IP アドレスで ProbeMatch 応答をフィルタリングします)。ProbeMatch 応答の XAddrs フィールドには、デバイス サービスに必要なアドレスが含まれます。

于 2011-03-01T13:39:32.483 に答える