WCF REST Consuming error?

Mr. Franek's answer is useful - you WILL be using Fiddler in working with WCF, period. I can add a little bit...what is happening here is that you've specified "Basic" as your authentication scheme as a client. The server is saying "I only allow 'Basic Realm'" as the authentication scheme.

What is 'realm'? Basically a credential namespace: Realm for HTTP basic authentication Here's another helpful link: Authentication in WinHTTP I can't find a property or method overload that carries Realm...I would probably try to construct the Authenticate-WWW header manually That would go something like this: request.Headers. Add("WWW-Authenticate", string.

Format("basic realm=\"{0}\", realm)) realm" would be the value of whatever the server is expecting, e.g. , "www.targetsite.com.

Mr. Franek's answer is useful - you WILL be using Fiddler in working with WCF, period. I can add a little bit...what is happening here is that you've specified "Basic" as your authentication scheme as a client. The server is saying "I only allow 'Basic Realm'" as the authentication scheme.

What is 'realm'? Basically a credential namespace: Realm for HTTP basic authentication Here's another helpful link: Authentication in WinHTTP I can't find a property or method overload that carries Realm...I would probably try to construct the Authenticate-WWW header manually. That would go something like this: request.Headers.

Add("WWW-Authenticate", string. Format("basic realm=\"{0}\", realm)); "realm" would be the value of whatever the server is expecting, e.g. , "www.targetsite.com".

As long as you expose RESTful service you may attempt to use Fiddler - fiddler2.com/fiddler2/ and/or normal HttpRequest/HttpResponse. Did you try anything like that?

I can use httpwebrequest and HttpResponse fine. I need to consume it with the ChannelFactory so I ge classes rather than XML. – Tom Squires Aug 24 at 8:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions