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
3
votes
1 answer

WCF REST : Case insensitive Query String Parameters, suggested naming convention - use underscore or?

It appears the query string parameters you can pass to a rest method in WCF REST is case insesitive - actually this makes sense. What the best naming convention for parameters with 2 words, using an _ (underscore) ?? I never liked this, i prefered…
Martin
  • 23,844
  • 55
  • 201
  • 327
3
votes
1 answer

Using JSON.NET with RESTful WCF service in .NET 4

Has anyone got a RESTful WCF service (in .NET4) successfully using JSON.NET to do serialization/deserialization? What's the best approach?
Christopher Stott
  • 1,408
  • 3
  • 15
  • 23
3
votes
4 answers

Test Client for testing WCF Rest services or just use browser?

I have written my first rest services and currently i am testing them in a browser. Is there a test client or some sort that provides additional features or is this the normal way of testing i.e. in IE, Firefox etc?
mark smith
  • 20,637
  • 47
  • 135
  • 187
3
votes
1 answer

Ajax POST: "Server encountered an error processing the request"

I have a jQuery Mobile app communicating to a WCF REST service. The majority of my calls to the REST service are GETs. However, one function uses a POST with JSON data. The POST works perfect on our development servers, so I'm fairly certain it…
Scott Taylor
  • 401
  • 1
  • 3
  • 9
3
votes
1 answer

How to understand whether a service call is "Restful service call" or "standard wcf call"?

I have a wcf service currently used. I need to add a restful method inside my wcf service. Like below as a sample: [OperationContract] string GetDataWcf(); [OperationContract] [WebGet(UriTemplate = "Employee/{id}")] Employee GetEmployeeById(string…
Omer
  • 8,194
  • 13
  • 74
  • 92
3
votes
1 answer

Facebook access token gives error code 190 and error subcode 463 for user search

I'm trying to make HttpWebRequest for the facebook url using a WCF service. It gives a bad request error in WCF: https://graph.facebook.com/search?type=user&access_token=" +…
3
votes
3 answers

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

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…
jonhobbs
  • 26,684
  • 35
  • 115
  • 170
3
votes
1 answer

Pass a JSON array to a WCF web service

I am trying to pass a JSON array to a WCF service. But it doesn't seem to work. I actually pulled an array [GetStudents] out the service and sent the exact same array back to the service [SaveStudents] and nothing (empty array) was received. The…
Tawani
  • 11,067
  • 20
  • 82
  • 106
3
votes
1 answer

How to create query expression for Odata for get by Id

I have created an OData service and now I am trying to consume this service at client side. I wants to create an expression such as for the below url in the c# query expression- http://odata.org/Product-Service/Product(150) The above url is working…
user1301587
  • 455
  • 4
  • 11
  • 23
3
votes
1 answer

Bad Request Error On REST service Method call with POST (json Data)?

Hi i am new to the RESTful WCF I am trying to do the the simple call to the webservice method using POST here is my code Service Interface code [ServiceContract] public interface IJsonSave { [OperationContract] [WebInvoke(UriTemplate =…
user2721874
3
votes
1 answer

WCF REST - "Get" using complex types

I have a WCF 4 RESTful web service which must work using on GET (its JSONP). I added a method to this service which requires a complex type parameter. [OperationContract] [WebGet(RequestFormat=WebMessageFormat.Json)] void…
EkoostikMartin
  • 6,831
  • 2
  • 33
  • 62
3
votes
1 answer

WCF REST Svc GET Returning HTML

I put together a simple REST service in WCF as such: .... [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "{uid}/{pwd}/{exrcsPrgmId}/{exchEnum}")] string GetLiftDataExchange(string uid, string pwd,…
GPGVM
  • 5,515
  • 10
  • 56
  • 97
3
votes
3 answers

Can't Pass JSON Post Data to WCF REST Service using Fiddler

I'm trying to invoke a WCF rest service as shown below: [WebInvoke(UriTemplate = "Login", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] public string Process(string AuthenticationInfo) { I'm trying to invoke it…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
2
votes
4 answers

Need to develop a RESTful API (both JSON and XML)

I'm looking to make a RESTful API on ASP.NET for a website. My problem is that I need it to be integrated into the website and not as a separate project. I understand that WCF makes this really easy and its the ideal way to do it, but I don't think…
hjavaher
  • 2,589
  • 3
  • 30
  • 52
2
votes
1 answer

WCF REST - Myriad of ways to create - How to choose?

I am learning to create RESTful services using WCF. There are a myriad of options to choose from. I am confused as to what should i use. 1.)REST Starter kit - Seems to be obsolete 2.)WCF WEbhttp service 3.)WCF Web API 4.)ASP.NET web api I dont want…
Hari Subramaniam
  • 1,814
  • 5
  • 26
  • 46