I am using Visual Studio and GSOAP 2.8.15 to create a C++ Onvif client.
I have run these commands to create source code:
> wsdl2h -P -x -o onvif.h http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl
> soapcpp2 -i -C -IC:\gsoap-2.8.15\gsoap;C:\gsoap-2.8.15\gsoap\import onvif.h
Then I put these files in my MSVC solution:
duration.h/.cpp
soapH.h/soapC.cpp
stdsoap2.h/.cpp
I added this file to the directory but not to the solution:
soapStub.h
I added this as a #define
to the compilation:
WITH_NONAMESPACES
I added this include to the main file of my program:
#include "soapDeviceBindingProxy.h"
This gives me a DeviceBindingProxy
object, but I don't know what to do with it. I want to connect to an Onvif camera at a known ip address and request information about the device.
The GSOAP examples aren't specific to Onvif, and the Onvif pseudo-code examples aren't specific to GSOAP. Any help would be appreciated.