Generate working Onvif code with wsdl2cpp
问题 I generated the DeviceMgmt stub from cmd with WSDL2CPP.bat -uri http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl -u -d adb -o OutputDirectory The first time, I got an error like "No service was found" and I solved it by adding this: <wsdl:service name="OnvifService"> <wsdl:port name="OnvifEndpoint" binding="DeviceBinding"> <soap:address location="http://www.onvif.org/ver10/device/wsdl"/> </wsdl:port> </wsdl:service> in devicemgmt.wsdl I opened the generated project in VS2012 and