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

progress bar showing data being copied

I am using knockout, Jquery and WCF services. I load data using ajax. Assuming this is my ajax call code function DataLoad() { $.ajax({ url: "../Service/EmpData", type: "PUT", contentType:…
James
  • 1,827
  • 5
  • 39
  • 69
0
votes
1 answer

WCF REST Service (self-hosted) accessible only in local network (and must be accessed remotely)

I have a self-hosted REST service (in C#) which works perfectly in my local network, but is unreachable remotely. Here is my hosting code: static Uri baseAddress = new Uri("http://m.y.i.p:8080"); WebServiceHost serviceHost = new…
jRicardo
  • 804
  • 10
  • 20
0
votes
2 answers

WCF: Is there a way to return different datetime serialization based on the http Accept-Language header?

I would like my REST service to return a DateTime as: 01-dec-2009 for Accept-Language: en-US 01-dez-2009 for Accept-Language: pt-BR Thanks! André Carlucci
andrecarlucci
  • 5,927
  • 7
  • 52
  • 58
0
votes
1 answer

SingleOrDefault linq method throwing exception

I am using wcf rest service. I am querying sql server database to return me rows from the table name which i pass from GUI. What happens is that sometimes table doesnt exist in database and i am using singleorDefault method of Linq. So if there is…
James
  • 1,827
  • 5
  • 39
  • 69
0
votes
1 answer

Array filter is returning data very slowly

I am using knockout arrayfilter to filter items. But if there are more than 1000 records then it returns data very slowly. What should i do for it? Here is my method viewModel.filteredData = ko.computed(function () { var str = ""; if…
James
  • 1,827
  • 5
  • 39
  • 69
0
votes
1 answer

.getJSON call a service: exception in service

I create a WCF service and call it in client side.