wcf-data-services

WCF Data Services implementation strategies.

Microsoft has done a savvy job of not outlining the actual place for data services in the wonderful world of SOA/Web dev. So my question is are WCF Data Services designed to be used via external clients? Has anyone ever heard of someone using them on the server side (i.e. data base access for web service)? Simple scenario a general ...

ADO.NET (WCF) Data Services Query Interceptor Hangs IIS

I have an ADO.NET Data Service that's supposed to provide read-only access to a somewhat complex database. Logically I have table-per-type (TPT) inheritance in my data model but the EDM doesn't implement inheritance. (Limitation of Data Services and navigation properties on derived types. STILL not fixed in .NET 4!) I can query my EDM ...

Limit Access Using WCF Data Services

I've been checking out WCF Data Services today and it looks great - but so far I haven't been able to find much about security -- specifically, limiting access to the services based on the connecting account. In SQL you have some accounts that have read only access (and those are sometimes limited to a few tables) but so far in WCF Data...

How to disable authentication schemes for WCF Data Services

When I deployed my WCF Data Services to production hosting I started to get the following error (or similar depending on which auth schemes are active): IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Di...

Extending WCF Data Service to synthesize missing data on request

I have got a WCF Data Service based on a LINQ to SQL data provider. I am making a query "get me all the records between two dates". The problem is that I want to synthesize two extra records such that I always get records that fall on the start and end dates, plus all the ones in between which come from the database. Is there a way to...

Project setup for an ADO.NET/WCF DataService

I'd like to implement a ADO.NET/WCF DataService and I am wondering what's the best way to setup a project in VS2008 SP1 for this purpose. Currently I have an ASP.NET web application project (not of "WebSite" project type). The data access layer is an Entity model (EF version 1) with SQL Server database. I have the Entity Model in a sepa...

How to introduce custom primitive key types to WCF Data Services (Astoria)

Hello. We use custom type to represent Identifiers in our project. It has TypeConvertor attached and it always helped with serialization. I've tried to use WCF Data Services to expose some data from our system, but faced a problem. Astoria framework do not recognize class as an entity even though I've decorated it with [DataServiceKey("...

WCF Data Services Security Options

What options are there for securing WCF Data Services? The open, RESTful nature of the services are extremely beneficial but I need to lock these services down so that only my Silverlight and WPF apps can perform requests against these services. The app will be distributed publicly, but our data and data model are not free for public c...

Why is System.Data.Services.MimeTypeAttribute now only a class level attribute?

I'm getting started with Astoria/ADO.NET Data Services/WCF Data Services. Looking through a lot of the code samples out there, it appears that the MimeType attribute used to be a method level attribute. After installing the latest update, it is now a class level attribute. If I have more than one Service Operation that I want to return ...

EF4 0..1 relationship leads to Error 2016: Condition cannot be specified

This is very similar to a previous question (and may be the exact same question) but I really didn't understand the answers enough to be able to tell for sure. I am using Entity Framework 4 in Visual Studio RC1 to create an azure service app (so it is .Net 3.5). I have a database with a lot of patterns like the following: Thing ...

WCF Data Services - neither .Expand or .LoadProperty seems to do what I need

I am building a school management app where they track student tardiness and absences. I've got three entities to help me in this. A Students entity (first name, last name, ID, etc.); a SystemAbsenceTypes entity with SystemAbsenceTypeID values for Late, Absent-with-Reason, Absent-without-Reason; and a cross-reference table called Stude...

Using non primitive types in ServiceOperation for WCF Data Service (3.5SP1)

Is there any way at all to create a "mock" entity type for use in a WCF Service Operation? We have some queries we do that we need to optimize by exposing as a ServiceOperation. The problem is in order to do so we would result in a very long list of primitative types... Ex SomeoneHelpMe(int time, string name, string address, string...

When should i choose to use WCF versus WCF Data Services

Assume a situation where a data will never be queried directly. AKA, there will always be some filtering logic and/or business logic that must occur. When is a good reason to use data services outside of ajax/js? Please don't site this page http://msdn.microsoft.com/en-us/data/bb931106.aspx ...

What's the best way to validate EntityFramwork 4.0 classes?

Hi! I've done a fair amount of searching but I've yet to find an easy way to validate EntityFramework 4.0 entities passed accross the wire via WCF Data Services. Basically, I want to do something on the client like: Proxy.MyEntities entities = new Proxy.MyEntities( new Uri("http://localhost:2679/Service.svc")); ...

wcf data service security configuration

I'm in the process of setting up a WCF Data Services web service and I'm trying to sort out the security configuration. Although there's quite a lot of documentation out there for configuring WCF security, a lot of it seems to be outmoded or does not apply to my scenario. Ultimately, I am planning on managing authorization of operations...

What is a 'better' approach to query/save from server: DTO or Wcf Data Services?

From my perspective, the Data Services and their query approach is useful when querying simple object graphs from your server-side domain model. But when you want to query complex dependencies I couldn't create anything good out of it. The classic DTO approach is fine-grained and can handle everything, but the downside is that you have ...

Mapping WCF Data Services ATOM 'updated' property to entity's own property

Hi Is it possible to configure WCF Data Services to map an Entity's own 'Updated' property to ATOM's property? At the moment it looks as though this is auto-generated to be the current time. Regards Lee ...

Strategies for "Always-Connected" Windows Client Data Architecture

Hi. Let me start by saying: this is my 1st post here, this is a bit lenghty, and I havent done Windows Forms development in years....with that in mind please excuse me if this isn't directly a programming question and please bear with me as I really need the help!! I have been asked to develop a Windows Forms app for our company that ta...

ADO.NET Data Services for MySQL

Hey! I've searched high and low for this, and no luck. Is there a way that CRUD methods for a MySQL install (Linux box) be exposed via ADO.NET WCF Data Services? I would really love to leverage this in my WPF app :) Thank u! EDIT: :D I am aware that it's called Windows Communication Foundation, but just thought I'd put it out the...

How to create a RESTful web service in asp.net?

Hi Guys, I simply want to create a fairly basic REST service, so that I can expose some of the data in my asp.net/SQL server application to the outside works, like this..... http://domain.com/api/offices - would return an xml set of office locations. http://domain.com/api/offices/15 - would return all the details of office 15. It's al...