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.or