proxy-classes

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

旧巷老猫 提交于 2021-01-27 01:15:46
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

纵饮孤独 提交于 2021-01-27 01:13:55
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

☆樱花仙子☆ 提交于 2021-01-27 01:12:05
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

夙愿已清 提交于 2021-01-27 01:11:40
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

Why do navigation properties have to be public for a proxy to be created?

扶醉桌前 提交于 2020-03-22 08:04:26
问题 At http://msdn.microsoft.com/en-us/library/dd468057.aspx I read that all navigation properties for which I would like to have a change tracking proxy need to be public and virtual . From what I understand, the CLR creates subclasses of my POCOs dynamically, and it re-implements the properties to provide the requested behaviour. For this I undertand that the property needs to be virtual , and that it should have protected or higher accesability. However, if I want to use these for convenience