1.1使用工具gsoap (gSOAP 2.8.19)
http://www.cs.fsu.edu/~engelen/soap.html
可以下载到最新的版本,windows的版本带有编译好的exe文件不需要重新编译
1.2添加对Onvif协议的支持
根据http://www.cs.fsu.edu/~engelen/soap.html下FAQ的描述,添加gSOAP中typemap.dat对Onvif协议的支持。在gSOAP 2.8.19版本中typemap.dat已经对onvif的支持了。
# ONVIFrecommended prefixes
tds ="http://www.onvif.org/ver10/device/wsdl"
tev ="http://www.onvif.org/ver10/events/wsdl"
tls ="http://www.onvif.org/ver10/display/wsdl"
tmd ="http://www.onvif.org/ver10/deviceIO/wsdl"
timg ="http://www.onvif.org/ver20/imaging/wsdl"
trt ="http://www.onvif.org/ver10/media/wsdl"
tptz ="http://www.onvif.org/ver20/ptz/wsdl"
trv ="http://www.onvif.org/ver10/receiver/wsdl"
trc ="http://www.onvif.org/ver10/recording/wsdl"
tse ="http://www.onvif.org/ver10/search/wsdl"
trp ="http://www.onvif.o

本文档详细介绍了在Windows环境下使用gSOAP工具开发Onvif协议的步骤,包括添加对Onvif协议的支持,使用wsdl2h生成头文件,修改onvif.h,运行soapcpp2,以及新建工程的准备工作。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



