You didn't say, but I'm guessing you are probably trying to use gsoap on multiple namespaces
I don't know how Qt handles things, but maybe this will help you find the solution.
On the command line, using gsoap direclty, this will give you the same error:
wdsl2h -o header1.h http://service1.com/service1
wdsl2h -o header2.h http://service2.com/service2
This won't work. GSOAP recommends that you call wsdl2h on all services at once:
wdsl2h -o header.h http://service1.com/service1 http://service2.com/service2
GSOAP will assign namespaces to the separate services, or you can specify how to name things in typemap.dat or on the command line.