使用gsoap工具生成onvif框架过程; Linux 环境下生成 Linux C。
在上gsoap-2.8.31生成 onvif.h
(0) 使用工具:wsdl2h
-c 产生c语言的代码,否则产生C++(默认)
-s 不使用STL代码
-t 指定typemap.dat文件
-o 指定生成的头文件名
(1) 编译 wsdl2h 工具
./configure --prefix=/path/to/install
make -j2 && make install
(2) 联网生成 onvif.h
./wsdl2h -c -s -t typemap.dat -o onvif.h \
http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl \
http://www.onvif.org/ver10/events/wsdl/event.wsdl \
http://www.onvif.org/onvif/ver10/display