You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This interface gets referenced in the Invoice class:
publicpartialclassInvoice:ISignature
This is all fine, however this error occurs: 'Invoice' does not implement interface member 'ISignature.Any'. 'Invoice.Any' cannot implement 'ISignature.Any' because it does not have the matching return type of 'XmlElement'.
Signature is a group in the XSD and its referenced in the Invoice element.
I have generated the code without interface generation and it works fine. However, I just wanted to ask if I'm doing something wrong, or if this is one of the exceptions where interface generation doesn't work.
The text was updated successfully, but these errors were encountered:
This occurred if an element had maxOccurs=1 in the group definition, and maxOccurs>1 in the referencing element's definition. I've added code in 2.0.646 to promote the interface property to a collection in these cases (along with the corresponding properties in all other implementing classes).
Hi, while generating classes from this XSD: http://www.isdoc.cz/6.0/xsd/isdoc-invoice-6.0.1.xsd with interface option enabled, an interface called ISignature gets created:
This interface gets referenced in the Invoice class:
This is all fine, however this error occurs:
'Invoice' does not implement interface member 'ISignature.Any'. 'Invoice.Any' cannot implement 'ISignature.Any' because it does not have the matching return type of 'XmlElement'.
And the "Any" element of Invoice class:
Signature is a group in the XSD and its referenced in the Invoice element.
I have generated the code without interface generation and it works fine. However, I just wanted to ask if I'm doing something wrong, or if this is one of the exceptions where interface generation doesn't work.
The text was updated successfully, but these errors were encountered: