Questions tagged [wcf-rest]

A REST service built with WCF

REST Service built for WCF that contains HTTP specifications for GET, PUT, POST and DELETE as well as other standard REST elements.

MSDN documentation

619 questions
2
votes
2 answers

Bad Request: WCF REST Service with Starter Kit

I am trying to build a REST & json based WCF service that takes a complex type as input. On the client I am trying to consume this service using HttpClient that comes as a part of WCF REST Starter Kit. Below is my service code: [WebInvoke(Method =…
Vinod
  • 929
  • 1
  • 16
  • 42
2
votes
0 answers

WCF Windows authentication issue with REST service

I'm having some difficulty setting up a WCF service to run under Windows authentication. The service is only consumed via jQuery using ajax. IIS (version 6 on server 2003) is set to only allow Windows Authentication. web.config has the…
Chris Conway
  • 16,269
  • 23
  • 96
  • 113
2
votes
1 answer

RESTful service issue

I am new in RESTful and WCF services and I'm making a RESTful with a JSON message format. When I run this service it gives no response. This is my code: [ServiceContract] public interface IPersonas { [OperationContract] …
BlaShadow
  • 11,075
  • 7
  • 39
  • 60
2
votes
1 answer

Ignore content type for specific WCF OperationContracts

I have a WCF REST Service that primarily sends and receives JSON. In general, I'm okay with using the DataContractJsonSerializer, but for some objects that are passed in as parameters to the OperationContact methods, I need to use JSON.NET for the…
kpozin
  • 25,691
  • 19
  • 57
  • 76
2
votes
1 answer

Svcutil generates wrong Name property value in DataContractAttribute

When I use svcutil.exe to generate a Customer class from the definition contained in the xsd file:
2
votes
0 answers

A very strange behavior of service stack

I am currently working on azure platform to get performance data in my application. My client needs to attach my console application which fetches data in there webrole startup task and it works for them in my application I had used WCF in my…
amit patel
  • 2,287
  • 8
  • 31
  • 45
2
votes
1 answer

WCF-Rest security using Windows Identity Foundation (STS)

I have successfully installed a “Security Service Token”. I have a Wcf-Rest service that is running under the STS created as security. I am calling the Wcf-Rest service from a Web page using ajax. I would like get the Claims that I have received in…
user429715
  • 41
  • 1
  • 3
2
votes
1 answer

How does the client pass parameter to a RESTful WCF Service

I am building a RESTful service as below with 2 methods (NOTE: I have the ASPNETCompatilibilityMode set to true): [WebInvoke] string TestMethodA() { string test = HttpContext.Current.Request.Form["xml"]; } [WebInvoke] string…
Rajesh
  • 7,766
  • 5
  • 22
  • 35
2
votes
1 answer

Something like an operation filter in WCF REST?

I am looking for something like the AuthorizeAttribute in MVC, something I can use like this: [WebGet(UriTemplate = "data/{spageNumber}")] [WebCache(CacheProfileName = "SampleProfile")] [WcfAuthorize] public IEnumerable
vtortola
  • 34,709
  • 29
  • 161
  • 263
2
votes
1 answer

Override Output Caching duration for Client caching

I have a REST based WCF service which returns JSON data as response. To improve performance Output Caching is enabled with location as ANY and duration 1 hr. I want to allow clients to cache the response for a period of 1 month while keeping the…
DotNetJourneyMen
  • 129
  • 1
  • 2
  • 8
2
votes
3 answers

How WCF decides when return SOAP or JSON depending on the request?

I just created my first WCF REST service. I wanted it to return JSON, so i especified the response format. At first, I was frustrated because it was returning SOAP all the time and I didn't know why, but I saw that a blogger was using Fiddler, so I…
vtortola
  • 34,709
  • 29
  • 161
  • 263
2
votes
2 answers

Cannot upload more than 64kb to WCF REST Service from client

I have created a WCF REST Service and have successfully created a function to upload a file from the client to the service. The problem is, this only works when the file being sent is 64kb or less. How can I fix this problem. web.config…
2
votes
1 answer

WCf REST service client side config file empty

I have a REST service and I have added it's reference in my WPF application. But as soon as I create a client of my proxy, it throws error and it throws error because my client side app.config is empty:
Jaggu
  • 6,298
  • 16
  • 58
  • 96
2
votes
1 answer

WCF Restful Service - Send File with Multiple fields in one requert

I am in the process of developing a WCF Restful Service. One of the requirements of the WCF is to allow a client to upload an image file and several input parameters that may contain multiple values. I thought of several ways of sending a file with…
Victor
  • 75
  • 5
2
votes
1 answer

How does WCF WebApi map a request URI to the appropriate service type / operation?

How does WCF REST (and WCF WebApi) map a Uri to the correct service endpoint? Within the context of WCF WebApi Preview 4: Inside a custom delegating channel, I would like to find the associated route prefix or service Type based on the incoming…
Daniel
  • 1,843
  • 2
  • 18
  • 27