您的位置:首页 > 运维架构

ONVIF can not open某个文件时 解决方法

2017-03-20 18:29 375 查看


root@dtop:/home/openwrt/onvif-mips#wsdl2h -o onvif.h -c -s -t ./typemap.dat ./onvif.xsd
./devicemgmt.wsdl

Saving onvif.h

** The gSOAP WSDL/WADL/XSD processor for C and C++, wsdl2h release 2.8.43

** Copyright (C) 2000-2017 Robert van Engelen, Genivia Inc.

** All Rights Reserved. This product is provided "as is", withoutany warranty.

** The wsdl2h tool and its generated software are released under the GPL.

** ----------------------------------------------------------------------------

**
Acommercial use license is available from Genivia Inc., contact@genivia.com

** ----------------------------------------------------------------------------

Reading type definitions from type map"./typemap.dat"

Reading './onvif.xsd'...

Connecting to 'http://docs.oasis-open.org/wsn/b-2.xsd' to retrieveschema... connected,
receiving...

Connecting to 'http://docs.oasis-open.org/wsrf/bf-2.xsd' to retrieveschema... connected,
receiving...

Done reading 'http://docs.oasis-open.org/wsrf/bf-2.xsd'

Connecting to 'http://docs.oasis-open.org/wsn/t-1.xsd' to retrieveschema... connected,
receiving...

Done reading 'http://docs.oasis-open.org/wsn/t-1.xsd'

Done reading 'http://docs.oasis-open.org/wsn/b-2.xsd'

Done reading './onvif.xsd'

Reading './devicemgmt.wsdl'...

Cannot open'../../../ver10/schema/onvif.xsd' to retrieve schema

解决方法:打开wsdl文件,将网络地址改为当前下载的后地址(即是你已经下载下来的文件,随便你放,但路径要对)

vi devicemgmt.wsdl

<xs:schematargetNamespace="http://www.onvif.org/ver10/device/wsdl"xmlns:tt="http://www.onvif.org/ver10/schema"xmlns:tds="http://www.onvif.org/ver10/device/wsdl"
elementFormDefault="qualified"version="16.06">

<!--
<xs:importnamespace="http://www.onvif.org/ver10/schema"schemaLocation="../../../ver10/schema/onvif.xsd"/>-->

<xs:importnamespace="http://www.onvif.org/ver10/schema"schemaLocation="./onvif.xsd"/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐