Questions tagged [webhttpbinding]
165 questions
313
votes
3 answers
BasicHttpBinding vs WsHttpBinding vs WebHttpBinding
In WCF there are several different types of HTTP based bindings:
BasicHttpBinding
WsHttpBinding
WebHttpBinding
What are the differences among these 3?
In particular what are the differences in terms of features / performance and compatability?

Mubashar
- 12,300
- 11
- 66
- 95
43
votes
1 answer
HttpClient with BaseAddress
I have a problem calling a webHttpBinding WCF end point using HttpClient and the BaseAddress property.
HttpClient
I created a HttpClient instance specifying the BaseAddress property as a local host endpoint.
GetAsync Call
I then call the GetAsync…

Phil Murray
- 6,396
- 9
- 45
- 95
18
votes
4 answers
WCF Web Api vs WebHttpBinding
I'm new to WCF RESTFull services developpment and I'm looking for some usefull information and your experience feedback about using webHttpBinding compared to the new WCF Web API http://wcf.codeplex.com/.
What I'm looking for is to know about the…

Tomasz Jaskuλa
- 15,723
- 5
- 46
- 73
17
votes
3 answers
WCF REST Service not visible in WCFTestClient
I have successfully configured 3 endpoints for my prototype service. The endpoints are basicHttpBinding, wsHttpBinding, and webHttpBinding. The only glitch I have at the moment is in the WCFTestClient. When I point it to my service it lists the…

codedog
- 2,488
- 9
- 38
- 67
14
votes
4 answers
WebHttpBinding with Http and Https
I am trying to use https & http for the website. The website has .svc files which act as REST service and called from JavaScript.
My Config:
…

Billa
- 5,226
- 23
- 61
- 105
10
votes
1 answer
In WCF, for a webHttpBinding, how do I specify credentials in the client side web.config when the server is using basic authentication?
I have two WCF RESTful services - the "general" service is public and has no security; the "admin" service I intend to use basic authentication over SSL. This is my server side web.config:
…

Steve Elmer
- 939
- 2
- 10
- 19
8
votes
3 answers
How do you pass user credentials from WebClient to a WCF REST service?
I am trying to expose a WCT REST service and only users with valid username and password would be able to access it. The username and password are stored in a SQL database.
Here is the service contract:
public interface IDataService
{
…
Alex
8
votes
2 answers
Limiting access to a WCF REST (webHttpBinding) Service using the ASP.NET Membership Provider?
I have found a lot of material on the web about using the ASP.NET Membership Provider with the wsHttpBindings, but I haven't seen any reference to using it with webHttpBindings.
I am looking for a system that will work in two scenarios:
The user is…

vfilby
- 9,938
- 9
- 49
- 62
8
votes
4 answers
Unable to set maxReceivedMessageSize through web.config
I have now investigated the 400 - BadRequest code for the last two hours.
A lot of sugestions goes towards ensuring the bindingConfiguration attribute is set correctly, and in my case, it is.
Now, I need YOUR help before destroying the building i am…

gimlichael
- 1,365
- 1
- 15
- 28
8
votes
2 answers
How to set the default RequestFormat for a WCF ServiceContract?
I'm writing a web service that has a lot of methods. They are all set up similar to the following:
[OperationContract]
[WebInvoke(
BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Json,
…

Ryan J. Thompson
- 650
- 1
- 6
- 18
7
votes
2 answers
WCF service returns incorrect Content-Length when using gzip encoding
I have a web page containing a filtering text box and a list box. Modifications to the text box trigger an AJAX request, which returns an array of values with which to populate the list box.
I had problems with these calls failing sometimes,…

Andrew Shepherd
- 44,254
- 30
- 139
- 205
6
votes
2 answers
Webhttpbinding with HTTPS and authentication with UserNamepPasswordValidator when hosted in IIS
I'm trying to set up a WCF service hosted in IIS that exposes an endpoint that acts as a REST service producing JSON data, and I want to use HTTPS. I want to take care of the user authentication myself with the help of UserNamePasswordValidator,…

Joel
- 8,502
- 11
- 66
- 115
6
votes
1 answer
WCF service stops handling calls for 15 seconds
I faced a strange behavior in one of my WCF services. This service worked fine for around 1,5 years but since a few weeks it shows some kind of "outages" (unfortunately I cannot post images cause I'm new here).
The calls/second drop to 0, although…

azuric
- 61
- 6
6
votes
1 answer
The authentication schemes configured on the host ('Anonymous') do not allow those configured on the binding 'WebHttpBinding' ('Basic')
I was following the tutorial here: http://allen-conway-dotnet.blogspot.co.uk/2012/07/using-basic-authentication-in-rest.html?_sm_au_=iFVksVM0H8QrkntP, to implement User Authentication in WCF service but I get the following error:
The…

Dawid O
- 6,091
- 7
- 28
- 36
5
votes
4 answers
SOAP header Action was not understood
I am trying to consume a webservice in C#. Whenever i try to call the function from the web service class I am getting a "SOAP header Action was not understood".I've added web reference[not service reference] pointing the web service in my…

logeeks
- 4,849
- 15
- 62
- 93