gsoap 开源的版本是不支持https的请求,最近我发再onvif官网的wdsl资源全部都使用了https,所以我得让它离线或者自己搭建服务
下面我们开始做自己的服务,因为我感觉做成服务会比离线好点
首先我们把需要的wsdl下载回来
http://www.onvif.org/onvif/ver10/network/wsdl/remotediscovery.wsdl
http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl
http://www.onvif.org/onvif/ver10/events/wsdl/event.wsdl
http://www.onvif.org/onvif/ver10/display.wsdl
http://www.onvif.org/onvif/ver10/deviceio.wsdl
http://www.onvif.org/onvif/ver20/imaging/wsdl/imaging.wsdl
http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl
http://www.onvif.org/onvif/ver20/media/wsdl/media.wsdl
http://www.onvif.org/onvif/ver20/ptz/wsdl/ptz.wsdl
http://www.onvif.org/onvif/ver10/receiver.wsdl
http://www.onvif.org/onvif/ver10/recording.wsdl
http://www.onvif.org/onvif/ver10/search.wsdl
http://www.onvif.org/onvif/ver10/replay.wsdl
http://www.onvif.org/onvif/ver20/analytics/wsdl/analytics.wsdl
http://www.onvif.org/onvif/ver10/analyticsdevice.wsdl
http://www.onvif.org/onvif/ver10/schema/onvif.xsd
http://www.onvif.org/ver10/actionengine.wsdl
http://www.onvif.org/ver10/pacs/accesscontrol.wsdl
http://www.onvif.org/ver10/pacs/doorcontrol.wsdl
http://www.onvif.org/ver10/advancedsecurity/wsdl/advancedsecurity.wsdl
http://www.onvif.org/ver10/accessrules/wsdl/accessrules.wsdl
http://www.onvif.org/ver10/credential/wsdl/credential.wsdl
http://www.onvif.org/ver10/schedule/wsdl/schedule.wsdl
http://www.onvif.org/ver10/pacs/types.xsd
然后使用nginx把它们发布出来
为了方便大家,我已经把一些放到csdn上
https://download.csdn.net/download/qq_35978045/12054851
使用
只需要把域名改为本地的就可以了
.\wsdl2h.exe -o .\onvif_head\onvif.h -t .\typemap.dat http://127.0.0.1:8083/ver10/network/wsdl/remotediscovery.wsdl http://127.0.0.1:8083/ver10/device/wsdl/devicemgmt.wsdl http://127.0.0.1:8083/ver10/events/wsdl/event.wsdl http://127.0.0.1:8083/ver10/display.wsdl http://127.0.0.1:8083/ver10/deviceio.wsdl http://127.0.0.1:8083/ver20/imaging/wsdl/imaging.wsdl http://127.0.0.1:8083/ver10/media/wsdl/media.wsdl http://127.0.0.1:8083/ver20/media/wsdl/media.wsdl http://127.0.0.1:8083/ver20/ptz/wsdl/ptz.wsdl http://127.0.0.1:8083/ver10/receiver.wsdl http://127.0.0.1:8083/ver10/recording.wsdl http://127.0.0.1:8083/ver10/search.wsdl http://127.0.0.1:8083/ver10/replay.wsdl http://127.0.0.1:8083/ver20/analytics/wsdl/analytics.wsdl http://127.0.0.1:8083/ver10/analyticsdevice.wsdl http://127.0.0.1:8083/ver10/schema/onvif.xsd http://127.0.0.1:8083/ver10/actionengine.wsdl http://127.0.0.1:8083/ver10/pacs/accesscontrol.wsdl http://127.0.0.1:8083/ver10/pacs/doorcontrol.wsdl http://127.0.0.1:8083/ver10/advancedsecurity/wsdl/advancedsecurity.wsdl http://127.0.0.1:8083/ver10/accessrules/wsdl/accessrules.wsdl http://127.0.0.1:8083/ver10/credential/wsdl/credential.wsdl http://127.0.0.1:8083/ver10/schedule/wsdl/schedule.wsdl http://127.0.0.1:8083/ver10/pacs/types.xsd