I'm trying to create a web service in C++ using gSOAP. I generated a couple of headers from ONVIF wsdl:
wsdl2h -x -o dm.h http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl -tC:\gsoap-2.8\gsoap\typemap.dat
wsdl2h -x -o an.h http://www.onvif.org/onvif/ver20/analytics/wsdl/analytics.wsdl -tC:\gsoap-2.8\gsoap\typemap.dat
After that I compiled the headers generating C++ service proxies and objects:
soapcpp2.exe -j -S dm.h -IC:\gsoap-2.8\gsoap\import;C:\gsoap-2.8\gsoap -x -qDm
soapcpp2.exe -j -S an.h -IC:\gsoap-2.8\gsoap\import;C:\gsoap-2.8\gsoap -x -qAn
in order to obtain an application similar to the one described by gSOAP documentation: http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc7.2.8
Compiling in Visual Studio, i get the following errors:
error C3861: 'soap_in_PointerToSOAP_ENV__Fault': identifier not found
error C3861: 'soap_in_PointerToSOAP_ENV__Header': identifier not found
error C3861: 'soap_out_PointerToSOAP_ENV__Fault': identifier not found
error C3861: 'soap_out_PointerToSOAP_ENV__Header': identifier not found
I tried to follow what the documentation says (http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc19.35) about the serializers not being compiled at all because of the definition WITH_NOGLOBAL and compiled an empty env.h file, but that didn't solve the problem.
I searched the web but I can't find any solution. The problem seems related not to the Header and Fault themselves but the the pointers. Right? What should I do?