Questions tagged [service-operations]
15 questions
6
votes
1 answer
Unable to return custom class from WCF Data Service
I am trying to return a custom class from my WCF data service. My custom class is:
[DataServiceKey("ID")]
public class Applist {
public int ID { get; set; }
public string Name { get; set; }
}
My data service looks like:
public static void…

Ashish
- 2,544
- 6
- 37
- 53
5
votes
1 answer
Calling an OData Service Operation from Linqpad
Does anyone know if its possible and if so, what the syntax is for calling a service operation via linqpad?
Also, can I used named parameters when I call it using linqpad- how? That would be great b/c I have a lot of parameters in the service…

skeej
- 840
- 1
- 8
- 23
4
votes
1 answer
How to consume WCF Data Service Operations in client .NET Application?
Alright folks, I am a newcomer to Data Services and LINQ in desperate need of some guidance. In just a few days I have encountered numerous unexpected obstacles and I'm stuck on one now. I'm hoping these are just typical frustrations of learning a…

Tim Coolman
- 595
- 1
- 9
- 19
4
votes
1 answer
Consuming Service Operations of an ADO.NET Data Service from a .NET Client
I am trying to build an ADO.NET Data Service with lots of entities and a few service operations. On one side I created a ASP.NET Web Application, in which an ADO.NET Entity Data Model and an ADO.NET Data Service are located. On the other side I…

pancake
- 1,923
- 2
- 21
- 42
3
votes
2 answers
How to generate async method with svcutil?
Is it possible generate async ServiceOperation only for one method by svcutil?
I know I can add /async parameter but then it generates all methods in async pattern.

Saint
- 5,397
- 22
- 63
- 107
2
votes
1 answer
How to only allow access from WCF Data Service ServiceOperation
I use WCF with my ASP.NET MVC app, my data service get data from my (EF 4.1) .mdf file. But there is some feild that I want to show with authentication, for example:
public static void InitializeService(DataServiceConfiguration config)
{
…

nvcnvn
- 4,991
- 8
- 49
- 77
2
votes
2 answers
How do I use ."Include" on a Service Operation for ADO.Net Data Services
I am using ADO.Net Data Services and have a Service Operation that ends up returning the results of some linq to entities statements. As a part of those Linq statements there is a .Include("NavProp") to include a sub-object. When running this…

ChrisHDog
- 4,473
- 8
- 51
- 77
2
votes
2 answers
WCF DataServices Service Operation Parameter - Character Replacement
I've a very strange problem (using SL5, WCF DataServices 5.0.1):
I've a ServiceOperation with 2 String parameters (Username, Password) which checks if the users exists
public IQueryable Login(string username, string password)
{...}
When I try…

Stefan
- 63
- 7
1
vote
0 answers
Is it possible to set MergeOptions on CurrentDataSource?
I expose some database views in my entity model because there are complex queries which can not be realized by using the standard OData query syntax. I use WCF Data Services for exposing these entities to the 3rd party applications. Basically, there…

Tomas Walek
- 2,516
- 2
- 23
- 37
1
vote
3 answers
ODATA Consume Service Operation from C# ASP.NET 4.0
I am connecting to an ODATA Service via a C# ASP.NET application, which has service operations such as:
GetItems(int? itemID, double? price)
I can consume this without issues in my browser,…

Zac
- 1,722
- 1
- 19
- 22
0
votes
1 answer
Is it possible to manipulate SOME entities in a ServiceOperation returning an IQueryable
I have a ServiceOperation to query items available to a certain user at a certain time.
In short this methode does:
var fullResult = from i in Items where ... select i; //get ALL possible items where...,
Lets say this returns items {A, B, C,…

Andreas
- 681
- 1
- 8
- 16
0
votes
1 answer
WCF Service Operation does not expose data as queryable
I have a service operation of the form:
[WebGet]
public IQueryable BusinessObjectsByType(string name)
with access rule
config.SetServiceOperationAccessRule("BusinessObjectsByType", ServiceOperationRights.All);
When I access this…

Nitesh Baranwal
- 73
- 1
- 9
0
votes
1 answer
Integration Broker Setup
I am new to using peoplesoft/peoplecode and have a question if anybody could help. We have a web service that will let you insert values that will be stored into Table A on Database A. I am trying to use integration broker so that when that Table…

Shawn
- 2,355
- 14
- 48
- 98
0
votes
0 answers
WCF Data Service Operation returns collection of the same object
I am using WCF Data Service 5.0 (v3) with EF 4. Below my configuration with one operation "GetProducts":
public static void InitializeService(DataServiceConfiguration config)
{
config.DataServiceBehavior.MaxProtocolVersion =…

Simon
- 1
0
votes
1 answer
Untyped Custom Data Service Provider entity based service operation without using entity framework
I am using C# to generate a Untyped Custom Data Service Provider using OData.
Implemented all the required providers and interfaces.
All the entities will be dynamically specified only during meta data creation.
EDMX or Reflection providers cannot…

user3309777
- 1
- 1