Closed Dialecticus closed 4 months ago
I have a feeling this is outside of the scope of XmlSchemaClassGenerator. Is it even valid to have two types with the same name?
Perhaps you can try and manually modify the code so that the complex type goes away? Then we can see if it's possible to suppress what's causing it from the output of xscgen.
Yeah, probably a bug in SoapCore
library (or maybe I need to configure it better). If I receive more info I'll come back here with it.
Suppose we have this example.xsd:
If I use xscgen to create code from it, the code appears to be looking good. But, if I create a C# web service in .NET 6 with this
Example
class as a parameter to a web method the resulting WSDL will contain two definitions ofThing
enum. First is the usual one:The second one is weird (and unnecessary):
The second definition should not exist. What am I doing wrong? Code is generate with command line
xscgen example.xsd -a- --csm=Public -cc- -c -n:example.com