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
1
vote
1 answer

Does the RESTful Service exposed need to check for XSS Attacks

I have a RESTful WCF service that exposes a method that takes in an XElement as a parameter. Now i want to know if i need to check the incoming message for XSS attacks first or does the framework handle it by default. If i need to handle do i use…
Rajesh
  • 7,766
  • 5
  • 22
  • 35
1
vote
1 answer

WebServiceHostFactory and WebServiceHost instance lifetime

I am trying to figure out the lifetime of a WebServiceHost. I thought that it would initially be per-call/per-request (i.e. Similar to an ASP.Net page being created for each request). I've created a Custom WebServiceHostFactory and WebServiceHost,…
leon.io
  • 2,779
  • 1
  • 18
  • 26
1
vote
1 answer

Prevent FormsAuthentication from overriding the response status in WCF REST

I am using WCF REST with FormsAuthentication. This authentication mode, overrides the HTTP 401 Unauthorized response status with a HTTP 302 Found that redirects to the "login Url" like in a web application. Of course that doesn't make sense in a WCF…
vtortola
  • 34,709
  • 29
  • 161
  • 263
1
vote
1 answer

OData with WCF REST

I have a WCF REST Service that I have implemented all single result endpoints. Now I need to implement endpoints that return collections. I realize there is the WCF DataServices that will allow me to return ATOM, but that requires a new service…
Brian Shotola
  • 472
  • 3
  • 12
1
vote
0 answers

Invoke soap wcf service in Fiddler like in Wcf test client

I have service which should support SOAP and REST. web.config
netmajor
  • 6,507
  • 14
  • 68
  • 100
1
vote
1 answer

WCF REST 4.0 The maximum string content length quota

I realize this question has been asked "dozens of times" https://stackoverflow.com/search?q=maxStringContentLength However, I still have not found a solution that matches my needs. I have an MVC3 app connecting to a REST app which was build in WCF…
jcreamer898
  • 8,109
  • 5
  • 41
  • 56
1
vote
1 answer

Render an MVC3 action to a string from a WCF REST service method

I have a WCF REST service that takes some parameters and sends an email. The template for the email is an MVC3 action. Essentially I want to render that action to a string. If it were an ASP.NET WebForm, I could simply use Server.Execute(path,…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
1
vote
1 answer

WCF 4.0 REST IIS Hosted Long Running Operation No Response after 1 hr

I have an IIS Hosted WCF REST 4.0 service. When I execute a rest operation that takes over an hour to run it never returns a response to the client. Instead I receive the following exception after 4 hours: "The request channel timed out while…
Grant
  • 11
  • 2
1
vote
3 answers

How to make restful calls from server?

Hi i have a restful project and I make rest calls from client side. But for a case I need to make restful calls from server side. How can i do that?
Sedat Başar
  • 3,740
  • 3
  • 25
  • 28
1
vote
3 answers

How can I parse REST service response?

I have set up my REST service and it works fine. This is the response that I get from the service is shown in the figure: How can I parse this type of request in my WPF application?
Jaggu
  • 6,298
  • 16
  • 58
  • 96
1
vote
2 answers

WCF REST services 'unexpected end of file'

I have an ASP.NET web application where i am using WCF REST services to insert 500 reords but getting the error 'unexpected end of file' i have put