一、获取IPC设备设备基本信息
上一篇文章介绍了如何搜索IPC摄像头,搜索出IPC后,就有了该IPC的Web Services地址:http://192.168.100.123:8099/onvif/device_service,接下来就能获取IPC摄像头的基本信息:
1、创建tcp socket,IP为192.168.100.123,端口:8099;
2、通过ONVIF Device Test Tool工具得到GetDeviceInformation数据
3、向socket发送(send)数据:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:tds="http://www.onvif.org/ver10/device/wsdl"
xmlns:tt="http://www.onvif.org/ver10/schema">
<soap:Body>
<tds:GetDeviceInformation />
</soap:Body>
</soap:Envelope>
4、接受(recv)数据