免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12667 | 回复: 3
打印 上一主题 下一主题

onvif协议的使用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-07 15:52 |只看该作者 |倒序浏览
有人用过onvif吗?能不能商量点问题了。。。。。哦。。。{:2_166:} ,先谢谢了。。
邮箱:yanfu_jia@163.com
qq:710480120

论坛徽章:
1
天蝎座
日期:2013-12-06 18:23:58
2 [报告]
发表于 2011-09-07 20:34 |只看该作者
回复 1# jiayanfu


    有问题就贴出来呗

论坛徽章:
0
3 [报告]
发表于 2011-09-08 08:44 |只看该作者
本帖最后由 jiayanfu 于 2011-09-08 08:45 编辑

问题其实比较多,比较抽象,所以不方便贴。。

问题1:
官方提供的是wsdl文件,在通过gsoap将wsdl转换成.h文件的时候,出现问题。
使用的命令如下:
  1. wsdl2h.exe -s -o remotediscovery.h  remotediscovery.wsdl
复制代码
结果。。。出错了,
  1. **  The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.3
  2. **  Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
  3. **  All Rights Reserved. This product is provided "as is", without any warranty.
  4. **  The wsdl2h tool is released under one of the following two licenses:
  5. **  GPL or the commercial license by Genivia Inc. Use option -l for details.

  6. Saving remotediscovery.h

  7. Cannot open file 'typemap.dat'
  8. Problem reading type map file 'typemap.dat'.
  9. Using internal type definitions for C++ instead.


  10. Reading file 'remotediscovery.wsdl'...

  11. Connecting to 'http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.xsd' to retrieve schem
  12. Connected, receiving...

  13. An error occurred while parsing schema from 'http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-di
  14. Error 3 fault: SOAP-ENV:Client [no subcode]
  15. "Validation constraint violation: tag name or namespace mismatch in element 'html'"
  16. Detail: [no detail]
  17. HTTP/1.1 200 OK
  18. Expires: -1
  19. Cache-Control: no-store
  20. Cache-Control: must-revalidate
  21. Pragma: no-cache
  22. Connection: close
  23. Content-Type: text/html

  24. <html>
  25. <!-- ** HERE ** -->
  26. <script language=javascript>function r(){setTimeout("g()", 2000);}function g(){window.location.hre

  27. If this schema namespace is considered "built-in", then add
  28.   namespaceprefix = <namespaceURI>
  29. to typemap.dat.

  30. E:\Downloads\bosch\gsoap_2.8.3\gsoap-2.8\gsoap\bin>
复制代码
“Error 3 fault: SOAP-ENV:Client [no subcode]”  这个到底是什么错误,为什么Google上大家都是有提问的,没有解答的。。。求高手

论坛徽章:
0
4 [报告]
发表于 2011-09-08 08:48 |只看该作者
问题2:
将wsdl转换成c文件存在点问题,我从网上下载了大家的.h和.c的源码文件,只是各个接口没有说明。。。比较费劲。。。大家是怎么做这个事情的。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP