我正在尝试将ONVIF文件从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.这是在使用2015。
我不使用gSOAP,因为这可能会在商业上使用。
发布于 2022-08-30 16:16:41
答:https://github.com/onvif/specs/discussions/249
当使用URL时,必须使用"http“。
模式验证错误是已知的,并且与Microsoft XML解析器为1.0 ( ONVIF正在使用1.1 )有关。
https://stackoverflow.com/questions/73480597
复制相似问题