Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 994061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:31:23+00:00 2026-05-16T06:31:23+00:00

Is there any way to customize or control which type of collection class types

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:31:23+00:00Added an answer on May 16, 2026 at 6:31 am

    Your problem does not seem to be about collection types, but about the DataContractSerializer. If you forget to apply the XmlSchemaProvider attribute to your class, the DataContractSerialzer assumes you are trying to serialize a legacy DataSet object.

    I am assuming your are not trying to do that, and therefore the DataSet returned is null. That is very likely where your start element error comes from.

    See http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlschemaproviderattribute.aspx

    EDIT:

    also http://msdn.microsoft.com/en-us/library/aa347876.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way to customize Dotnetnuke captcha control? I want to change background
Is there any way to customize will_paginate control button to add more button like
Is there any way to customize Google Chrome? Which technology/language would be used? Is
Is there any way to trigger a function that's called when the user types
Is there any way to listen for system-side open and save panel events and
Are there any way to predict some number of the Random class without going
Is there any way to customize Java application's title bar? I don't mean app
Is there any way to customize the map annotation bubbles in Appcelerator Titanium? Specifically,
Is there any way to customize firefox in my own language I downloaded source
Is there any way to customize the datepicker used in iphone? I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.