Global Element has already been declared


I have an interface class I'm working on and for some strange reason, the wsdl exporter fails stating that the global element has already been declared. I have several other interfaces that are similar in nature that don't have this problem. The problem is resolved by removing the [DataContract] attributes, but I really don't want to do that. The failing interface is attached. Error:
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerializerOperationBehavior
contract: urn:mycompany:services:interfaces:DataAccessService:DataAccessService ----> System.Xml.Schema.XmlSchemaException: The global element 'urn:mil:army:soacoe:openesm:services:interfaces:DataAccessService:GetMessageLogsResponse' has already been declared.

file attachments


spyhunter99 wrote Dec 22, 2009 at 12:21 PM

please disregard. the problem ended up being having one of the datacontracts end in "Response", a known issue with wcf services. please delete

wrote Feb 21, 2013 at 10:53 PM