Hello,
I am working on creating a WCF service that will be returning IEntity types. To make this possible, for each OperationContract in the ServiceContract, one must use the ServiceKnownType attribute to identify all possible return types. For example:
[OperationContract]
[NetDataContract]
[ServiceKnownType(typeof(AnnouncementEntity))]
IEntity CreateNew(string type);
Please note that the NetDataContract atrribute is used to allow for an interface to be the return type of a method in WCF.
Now, this compiles and works fine but when I attempt to generate the metadata for the service using svcutil myDllFile.dll it causes an error when trying to validate the .xsd file. That error being:
Error: There was an error verifying some XML Schemas generated during
The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared.
I have found someone with a solution to this sort of problem, but I'm wondering if there is something that I am doing incorrectly in LLBLGen Pro. Please
Thanks.