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
0 answers

WcfRestContrib: Is there any example of using a WCF REST service (with basic authentication) from a desktop client

Is there any example of using a WCF REST service with basic HTTP authentication from a desktop client? I am using WCF REST Contrib. and authentication works fine when a use a javascript client from the browser, but when I try to use a C# Console…
Tawani
  • 11,067
  • 20
  • 82
  • 106
2
votes
1 answer

WCF REST can not parse Request Body

I have a struggling time with WCF REST to parse request body. My problem: POST method https://{Service}/X/Y? Z= 0000000 Body Request: {"id":"id"} My code: [ServiceContract] public interface IService { [OperationContract] …
ShrnPrmshr
  • 353
  • 2
  • 5
  • 17
2
votes
0 answers

Sending file to WCF REST API as ajax from Phonegap application

I have a Phonegap app and want to send audio files from the application to a WCF REST API. I went through stackoverflow and found a lot of questions with the same requirements. best approach to design a rest web service with binary data to be…
Priyan Perera
  • 560
  • 1
  • 7
  • 20
2
votes
1 answer

how send Push Notification to Kindle Fire from WCF rest service

I want to send push notifications to Kindle Fire from WCF rest service. I used PushSharp library, but it is not working properly. Can you please suggest any other way without using PushSharp library? I am using below code to send notification on…
2
votes
1 answer

CORS enabled WCF REST and Kendo

I am working in wcf rest service. I need to allow cors supprt for cross domain access. I read the articles and got 2 method. First method is to add http headers in the application_beginrequest event in global.asax. This is working fine for me. I…
Akhil
  • 1,918
  • 5
  • 30
  • 74
2
votes
1 answer

Unable to display WCF REST Help Page over HTTPS

I am writing a WCF Web Service which support SOAP and REST. I also enabled the WCF REST Help Page which is very useful for the consumers of the Web Service. Since I enabled SSL in IIS and in the web.config (see below), I can't get the WCF REST Help…
Martin
  • 39,309
  • 62
  • 192
  • 278
2
votes
1 answer

WCF Service Error 413 "Entity Too Large" when pass big byte[]

I got this error when trying to pass large byte[] to wcf service my IService Code: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json, UriTemplate =…
Eslam Totti
  • 125
  • 2
  • 13
2
votes
2 answers

converting a datatable in to a List in WCF

I am developing a WCF restful service to expose data in json format. Currently I am using taking data into a datatbale and then iterating each row and putting into a list and then returning. However I want to skip this iteration and want to directly…
user2519971
  • 345
  • 3
  • 12
  • 27
2
votes
1 answer

JSON data returned from WCF service contains escape characters

I have a working WCF - WPF application working, however I'm looking for some optimization. Below is my code where a WCF restful service is exposing a JSON array, and a WPF UI is receiving it without any problem. WCF: public clsStatus[]…
user2519971
  • 345
  • 3
  • 12
  • 27
2
votes
1 answer

WCF Restful service and WCF Data Service

WCF Restful service and WCF Data Service both are same? or else any difference is there?
jestges
  • 3,686
  • 24
  • 59
  • 95
2
votes
2 answers

How to consume RESTful webservices with WCF?

Is that better to use WCF REST Starter Kit for consuming web services (REST) with WCF (by using HTTPClient) or do it directly with WCF ? It seems that WCF REST Starter kit won't be available for .NET 4.0 and is a preview version only. Thanks !
Ariel32
  • 149
  • 1
  • 10
2
votes
4 answers

How are RESTful WCF services secured so that only the calling application can call them?

I have an application that uses Silverlight and ASP.NET as a front-end. It retrieves data from the server by calling some RESTful WCF services that are hosted there. I'd like to prevent the curious user from opening up a new browser window and…
Kevin Babcock
  • 10,187
  • 19
  • 69
  • 89
2
votes
0 answers

How to measure WCF RESTful web service operation performance?

I need to measure performance of WCF RESTful web service call (operation duration, peak and average memory and disc usage). How can I do that with perfmon.exe?
Qué Padre
  • 2,005
  • 3
  • 24
  • 39
2
votes
1 answer

C# WCF JSON WebService to return mime-type image/png

I'm runnning a WCF webservice using JSON formatting as follows. My problem is that the response format is alowas Json or XML but for GetImage I would like to return the image as mime-type image-png. Any idea how to do this in WCF? Thanks in…
Matthias
  • 5,574
  • 8
  • 61
  • 121
2
votes
1 answer

How can I send a DataContract object as parameter for a WCF RESTFUL webservice?

I am developing a WCF resful service which will be basically consumed from some mobile applications. Over the POST I am trying to send a DataContract object [actually I have to send a List of object] and another single id as string. My question is…
marifrahman
  • 681
  • 2
  • 13
  • 31