KDSoap
KDSoap copied to clipboard
Generate incorrect request if wsdl includes several namespaces
Hello, I'm trying to generate code using wsdl with several namespaces, but the resulting code contains classes with only two prefixes(NS1 and NS2), although there are more namespaces in wsdl (7 or 8) . And request looks like this:
Other tool generated request looks like this:
I don't understand what the reason for this behavior. See attached file for wsdl measurerService.tar.gz
We've just fixed this bug. See https://github.com/KDAB/KDSoap/pull/115 The problem was in parseSchemaTag in case of wsdl imports XSD schema and XSD schema imports other XSD schema. So there were a recursion calls of parseShemaTag and "elementFormDefault" attribute of schema tag processed incorrectly
I'll keep this open, because, although the bug is fixed, we still need to make a unittest out of this WSDL file, to ensure no regressions in the future. Are you interested in writing such a test, similar to all the other ones that exist in kdsoap/unittests ?
OK, it's a very good practice to make unittests! Now we are examining KDSoap to use in our projects. It's a good library in my opinion, so l'm ready to fix bugs or add new features if required for our projects. I like to make unittests, but unfortunately l have no time to make it in KDSoap now