Questions tagged [dataservice]

117 questions
39
votes
2 answers

Flex/LCDS Server-to-data-source Paging

I’m trying to set up a server to data-source paged service. I’ve got everything set up so that I’m getting my assembler called and am returning values, but I’m not getting “paged” calls. Specifically: public Collection fill(List fillArgs, int…
Travis Jensen
  • 5,362
  • 3
  • 36
  • 40
7
votes
1 answer

WCF DataService, how do I avoid [DataServiceKey] in POCOs

I use a WCF DataService and want to use POCOs. I have to specify a DataServiceKey in order for it to work (obviously). When I do that I have to reference System.Data.Services.Client (for System.Data.Services.Common) - which doesn't feel very…
Christina Mayers
  • 516
  • 5
  • 11
6
votes
5 answers

Where to get Flex - Java DS (Blaze) training material?

I was wondering if any of you out there knows where I can get really good training material (videos, examples, etc) on Flex - Java Data Services (BlazeDS would be ideal) besides the ones offered directly by Adobe. I'm thinking on something like…
Chepech
  • 5,258
  • 4
  • 47
  • 70
5
votes
1 answer

WCF dataservice security in a WPF application

I'm working on a solution where I have a WPF project that is using a WCF DataService which is located in another ASP .NET project to access the data. I need to provide a level of security which ensures that only authenticated users can access the…
OneMoreVladimir
  • 1,653
  • 3
  • 21
  • 32
5
votes
1 answer

OData WCF Data Service with NHibernate and corporate business logic

Let me first apologise for the length of the entire topic. It will be fairly long, but I wish to be sure that the message comes over clearly without errors. Here at the company, we have an existing ASP.NET WebApplication. Written in C# ASP.NET on…
codingbunny
  • 3,989
  • 6
  • 29
  • 54
5
votes
1 answer

How to pass a collection of Entities to .NET RIA Data Service?

Is it possible to pass a collection of objects to a RIA Data Service query? I have no issues sending an Entity, an Int or an array of primitive types, but as soon as i declare a method like this public void GetLessonsConflicts(Lesson[]…
Vitalik
  • 2,724
  • 4
  • 32
  • 43
4
votes
4 answers

Can WCF Code First DataServices return a NotMapped property?

I'm using WCF Data Services for a RESTful API that returns a JSON response. consider this object: [Table("person")] public class Person { [Column("dob", TypeName = "datetime")] public DateTime DateOfBirth { get; set; } [NotMapped] …
codemonkey
  • 1,213
  • 2
  • 14
  • 31
4
votes
1 answer

WCF DataService (OData) and CORS

I am trying to get a WCF DataService working with cross domain requests. I found this on how to get a WCF service to work with CORS: http://blogs.microsoft.co.il/blogs/idof/archive/2011/07/02/cross-origin-resource-sharing-cors-and-wcf.aspx I…
Malyngo
  • 863
  • 7
  • 18
3
votes
1 answer

Moving Model Validation to Service Class - ASP.NET MVC

I want to be able to perform validation from within my Service classes. I have a Controller action that looks something like this: public ActionResult Edit(Post post) { if(!ModelState.IsValid) return View(); …
enamrik
  • 2,292
  • 2
  • 27
  • 42
3
votes
0 answers

error in create data source for sqlserver in wso2 ei

after installing wso2 ei, i download sql server jdbc driver and copy it in wso2home/lib, i want to create service via sql query so i define below data service :
behzad
  • 194
  • 6
  • 21
3
votes
2 answers

OData Authentication

I have been trying to implement an OData service based upon an entity framework model where the authentication is provided by Sql Azure. I provide row/column access within the database. I want to be able to call this from LinqPad, Excel, etc. as a…
jsh_ec
  • 31
  • 1
  • 3
3
votes
1 answer

How to handle exceptions in Odata V4 client?

Asp.Net Web API Odata Controller Action: public async Task Post(Product product) { if (!ModelState.IsValid) { return BadRequest(ModelState); } db.Products.Add(product); await db.SaveChangesAsync(); …
Rahul
  • 2,431
  • 3
  • 35
  • 77
3
votes
1 answer

OData - Data Service Simple Authentication

I would like to add simple authentication to Data Services, for now only to restrict access for particular applications by simple token. I don't need Domain Authentication or Forms authentication. I read a lot about authentication…
3
votes
1 answer

How do I set the value for an Invoice custom field using the QuickBooks V3 DataService?

I am attempting to create new invoices in QuickBooks using the V3 API. I have the invoice creation working perfectly, except I cannot set the values for the 3 custom fields. I need a VB or C# resolution that utilizes the AnyIntuitObject property in…
scraig
  • 61
  • 6
3
votes
1 answer

Sharing the same DataServiceContext across multiple method calls - good or bad?

I am wondering what is the standard practice for how DataServiceContext instances should be used. If I have a class that has multiple methods in it that need to perform operations on the context should I create a new instance of the context inside…
mclaassen
  • 5,018
  • 4
  • 30
  • 52
1
2 3 4 5 6 7 8