Is there any way to customize or control which type of collection class types are created in the WCF client Side interface Types when using the default "Add Service Reference" menu option in Visual Studio?
Our WCF service is such that when the automated "Add Service Reference" runs, it creates DataSets for all the server side types that contain collections of objects.... And this is causing a
"no corresponding start element is open"
error message.
I want to tell our busienss partners how to create a WCF client that works, and in order to do that I think I need to tell them how to create a client with types where the relevant collection types are Lists, or arrays of objects, rather than datasets.
EDIT:
I have in my types a custom type called DoubleSchedule, which implements IXmlSerializable, and gets serialized like one of the following:
<DataELementName firstIntervalId="87656" schedule="77.3|77.3|76.9|77" />
or
<OtherDataELementName firstIntervalId="87656" lastIntervalId="87670" value="76.1" />
Even when I specify the Collection type in the Advanced tab of the Add Service Reference dialog, all of my Xml Elements that use this type are getting a generated type based on DataSet.
Ideas?