KDSoap icon indicating copy to clipboard operation
KDSoap copied to clipboard

Generate incorrect request if wsdl includes several namespaces

Open ElenaSudakova opened this issue 6 years ago • 3 comments

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: request Other tool generated request looks like this: request1

I don't understand what the reason for this behavior. See attached file for wsdl measurerService.tar.gz

ElenaSudakova avatar Jan 12 '18 10:01 ElenaSudakova

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

SudakovIvan avatar Jan 17 '18 05:01 SudakovIvan

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 ?

dfaure-kdab avatar Jan 17 '18 10:01 dfaure-kdab

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

SudakovIvan avatar Jan 17 '18 10:01 SudakovIvan