hisi3559A平台接入IPC视频流(二) - 使用gSOAP生成ONVIF框架

本文详细介绍了如何在hisi3559A平台上利用gSOAP工具从wsdl文件生成ONVIF协议的C代码,并解决编译过程中的问题,包括添加认证信息、处理命名空间等,最终生成libonvif.a库供后续程序使用。
摘要由CSDN通过智能技术生成

本文为:
ONVIF协议网络摄像机(IPC)客户端程序开发
系列文章,作者(许振坪)
的学习记录
https://blog.csdn.net/benkaoya/article/details/72424335
可直接点击以上链接跳转。

1. wsdl2h 获取wsdl文件

各个选项的含义,可通过wsdl2h --help查看帮助。其中-c为产生纯c代码,不然为c++代码;-s为不使用STL库,-t为typemap.dat的标识

zl@zl-VirtualBox:~/gsoap/gsoap-2.8/gsoap$ ./wsdl2h -P -x -c -s -t ./typemap.dat -o ./samples/onvif/onvif.h  https://www.onvif.org/ver10/network/wsdl/remotediscovery.wsdl https://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl https://www.onvif.org/ver10/media/wsdl/media.wsdl
Saving ./samples/onvif/onvif.h


**  The gSOAP WSDL/WADL/XSD processor for C and C++, wsdl2h release 2.8.83
**  Copyright (C) 2000-2019 Robert van Engelen, Genivia Inc.
**  All Rights Reserved. This product is provided "as is", without any warranty.
**  The wsdl2h tool and its generated software are released under the GPL.
**  ----------------------------------------------------------------------------
**  A commercial use license is available from Genivia Inc., contact@genivia.com
**  ----------------------------------------------------------------------------

Reading type definitions from type map "./typemap.dat"
Connecting to 'https://www.onvif.org/ver10/network/wsdl/remotediscovery.wsdl' to retrieve WSDL/WADL or XSD... connected, receiving...
Done reading 'https://www.onvif.org/ver10/network/wsdl/remotediscovery.wsdl'
Connecting to 'https://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl' to retrieve WSDL/WADL or XSD... connected, receiving...
  Connecting to 'https://www.onvif.org/ver10/schema/onvif.xsd' to retrieve schema... connected, receiving...
    Connecting to 'http://docs.oasis-open.org/wsn/b-2.xsd' to retrieve schema... connected, receiving..</
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值