简体   繁体   English

Visual Studio WSDL.exe 无法转换 ONVIF WSDL 文件

[英]Visual Studio WSDL.exe unable to convert ONVIF WSDL files

I am trying to convert the ONVIF WSDL files from https://www.onvif.org/profiles/specifications/ to C++.我正在尝试将 ONVIF WSDL 文件从https://www.onvif.org/profiles/specifications/转换为 C++。

But I keep getting similar errors about certain data types missing.但是我不断收到关于某些数据类型丢失的类似错误。 For example, doing the following command:例如,执行以下命令:

wsdl /language:CPP /protocol:SOAP12 media.wsdl

I get the following error:我收到以下错误:

Error: Unable to import binding 'MediaBinding' from namespace 'http://www.onvif.org/ver10/media/wsdl'.
  - Unable to import operation 'GetVideoSources'.
  - The datatype 'http://www.onvif.org/ver10/schema:VideoSource' is missing.

And if I try doing with a URL like so:如果我尝试像这样使用 URL :

wsdl /language:CPP /protocol:SOAP12 https://www.onvif.org/ver10/media/wsdl/media.wsdl

I get the following error:我收到以下错误:

Error: There was an error processing 'https://www.onvif.org/ver10/media/wsdl/media.wsdl'.
  - There was an error downloading 'https://www.onvif.org/ver10/media/wsdl/media.wsdl'.
  - The request was aborted: Could not create SSL/TLS secure channel.

This is using Visual Studio 2015.这是使用 Visual Studio 2015。

I am not using gSOAP because this may be used commercially.我没有使用 gSOAP,因为它可以用于商业用途。

Answered here: https://github.com/onvif/specs/discussions/249在这里回答: https://github.com/onvif/specs/discussions/249

When using a URL, "http" must be used.使用 URL 时,必须使用“http”。

The schema validation errors are known and has to do with the Microsoft XML parser being being 1.0 where ONVIF is using 1.1.架构验证错误是已知的,并且与 Microsoft XML 解析器为 1.0 相关,而 ONVIF 使用的是 1.1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM