I'm developing a Qt C++ program which must send data to a web-service. I have used gsoap (v2.8.111) to generate the data binding source code this way:
wsdl2h -v -c++ -t ./typemap.dat -o binding/DonaldDuck.h ./DonaldDuck.wsdl
wsdl2h -v -c++ -t ./typemap.dat -o binding/MickeyMouse.h ./MickeyMouse.wsdl
wsdl2h -v -c++ -t ./typemap.dat -o binding/DaisyDuck.h ./DaisyDuck.wsdl
wsdl2h -v -c++ -t ./typemap.dat -o binding/ScroogeMcDuck.h ./ScroogeMcDuck.wsdl
soapcpp2 -C -c++ -j -qDonaldDuck -dbinding binding/DonaldDuck.h
soapcpp2 -C -c++ -j -qMikeyMouse -dbinding binding/MickeyMouse.h
soapcpp2 -C -c++ -j -qDaisyDuck -dbinding binding/DaisyDuck.h
soapcpp2 -C -c++ -j -qScroogeMcDuck -dbinding binding/ScroogeMcDuck.h
wsdl2h -c++ -g -t ./typemap.dat -o ./binding/Common.h *.wsdl
soapcpp2 -C -c++ -r -n -i -L -j -dbinding ./binding/Common.h
If I use the typemap.dat configured for use of STL types I can successfully build and run the program. But because I'm developing with Qt I would like to use Qt types (specially QString and QDateTime), so I changed the typemap.dat file as explained here https://www.genivia.com/doc/databinding/html/index.html. With the new typemap.dat The generation using the same commands listed above was successful but during build a lot of multiple definitions are unexpectedly signaled.
I can't understand why this problem occurs, can anyone help me?
I am available to provide other information if needed.