Questions tagged [wcf-rest-contrib]
8 questions
10
votes
3 answers
Self-hosted WCF REST service and Basic authentication
I've created a self-hosted WCF REST service (with some extra's from WCF REST Starter Kit Preview 2). This is all working fine.
I'm now trying to add Basic authentication to the service. But I'm hitting some rather large roadblocks in the WCF stack…

nbevans
- 7,739
- 3
- 27
- 32
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
1
vote
1 answer
Enabling 401 Challenge responses when using WebAuthenticationConfiguration
I have a very simple WCF4 Restful web service which uses WcfRestContrib to allow custom Basic Authentication. It works great when the client preemptively supplies a username and password but if they don't it returns a 400 Bad Request response rather…

M.Babcock
- 18,753
- 6
- 54
- 84
1
vote
1 answer
Error while reading body of request message through JSON
I need to read content of message from the request body in WCF REST service like -
SERVICE SIDE CODE
string request = Encoding.UTF8.GetString(OperationContext.Current.RequestContext.RequestMessage.GetBody());
But I am getting an error on…

Shivani
- 224
- 5
- 19
0
votes
1 answer
Android application consuming WCF/RESTful service
I have a WCF RESTful application I wrote based off of WcfRestContrib and hosting in iis7.5, which passes a pdf as a byte[]. I'm trying to figure out how, and what the best way would be, to consume this service in an Android application. I believe I…

Precious Roy
- 1,086
- 1
- 9
- 19
0
votes
0 answers
how to consume wcf rest service with windows authentication
I am using webHttpbinding configuration for WCF Rest service.

Anna
- 1
- 1
0
votes
1 answer
Create a WCF REST Client Proxy Programatically (in C#)
I am trying to create a REST Client proxy programatically in C# using the code below but I keep getting a CommunicationException error. Am I missing something?
public static class WebProxyFactory
{
public static T Create(string url) where T :…

Tawani
- 11,067
- 20
- 82
- 106
0
votes
1 answer
Why is my WCF Rest Service on IIS7 Authenticating TWICE?
Ok, if someone could shed some light on this for me, I would greatly appreciate it. So here we go. I had a rest service running fine the other day but after I accidentally overwrote the web.config all hell broke loose. I've spent the past day and a…

TheAggie
- 57
- 1
- 10