Visual Studio WSDL.exe unable to convert ONVIF WSDL files #249
-
I am trying to convert the ONVIF WSDL files from https://www.onvif.org/profiles/specifications/ to 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 Error: Unable to import binding 'MediaBinding' from namespace 'http://www.onvif.org/ver10/media/wsdl'.
And if I try doing with a URL like so: 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'.
This is using Visual Studio 2015. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you want to do it offline you need to download all the dependencies and have the right file structure. Also using HTTP works for me like this: |
Beta Was this translation helpful? Give feedback.
If you want to do it offline you need to download all the dependencies and have the right file structure.
Also using HTTP works for me like this:
wsdl /language:CPP /protocol:SOAP12 http://www.onvif.org/ver10/media/wsdl/media.wsdl