簡體   English   中英

Visual Studio WSDL.exe 無法轉換 ONVIF WSDL 文件

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

我正在嘗試將 ONVIF WSDL 文件從https://www.onvif.org/profiles/specifications/轉換為 C++。

但是我不斷收到關於某些數據類型丟失的類似錯誤。 例如,執行以下命令:

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

我收到以下錯誤:

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.

如果我嘗試像這樣使用 URL :

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

我收到以下錯誤:

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.

這是使用 Visual Studio 2015。

我沒有使用 gSOAP,因為它可以用於商業用途。

在這里回答: https://github.com/onvif/specs/discussions/249

使用 URL 時,必須使用“http”。

架構驗證錯誤是已知的,並且與 Microsoft XML 解析器為 1.0 相關,而 ONVIF 使用的是 1.1。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM