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 100241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:32:30+00:00 2026-05-11T00:32:30+00:00

I’m building a traditional ASP.NET Web Service — the style built using asmx. It’s

  • 0

I’m building a traditional ASP.NET Web Service — the style built using asmx. It’s a pretty simple service. I started using the new Ado.NET Entity Framework for my persistence layer, and I’m running into some problems:

1) I don’t like the WSDL that gets automatically generated — the complex types were getting defined as so:

   <s:complexType name='TestObject'>       <s:complexContent mixed='false'>          <s:extension base='tns:EntityObject'> ... 

So, I built my own WSDL and used the wsdl.exe tool to create a service definition, which includes a new type definition, so now the WSDL looks like, which I feel is a more cross-platform design:

<xsd:complexType name='TestObject'>   <xsd:sequence>     <xsd:element minOccurs='0' name='created' type='xsd:dateTime'/> ... 

I now have the ASPX generating a nice WSDL file. But now I’m not sure where I should take this. I have two types of basically the same type for TestObject: 1) that’s used for entity persistence with the ADO.NET Entity Framework 2) and one that’s used for defining data across the wire.

I’d like to figure out how to combine them into one. I’m a little nervous about modifying the .cs file that was automatically generated by the Ado.NEt Entity framework, as it seems like it might get over-written.

Anyone with much experience with the Ado.Net entity experience think it’s worth using? While I like the idea of how quickly I was able to build persistence to my data layer, I need to define in a very custom manner how the entity object is transfered across the wire, so I’d need to modify the attributes associated with it’s properties. Also, in my service implementation, I don’t really want to by converting from EntityFramework.TestObject to WSDLDefenition.TestObject.

Thanks for any input.

  • 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. 2026-05-11T00:32:31+00:00Added an answer on May 11, 2026 at 12:32 am

    You’re facing the kind of wall many of us have faced when trying to use the Entity Framework in an SOA style architecture.

    Version 1.0 of the Entity Framework doesn’t work very well in the scenario you’ve described, as you end up in a world of hurt trying to manage object contexts (and likely having to cache them).

    I’d recommend a thorough read-through of the following (1) article posted by the EF team about the future of the Entity Framework. It also has the effect of capturing and discussing some of the current shortfalls.

    In short, I’m not sure that the Entity Framework is quite the solution you want right now as there is no ‘clean’ solution in handling EF entities across the wire (or outside service boundaries) at this stage.

    Others may beg to differ…

    P.S You’re right about being wary of hand editing the generated code – any updates to the data model will overwrite any modifications (although you can extend it as they are within a partial class). Not helpful if you want to add attributes to properties though.

    (a) http://blogs.msdn.com/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
Seemingly simple, but I cannot find anything relevant on the web. What is the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into

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.