Questions tagged [webhttpbinding]
165 questions
5
votes
2 answers
how to make WCF webHttp behaviour accept HEAD verbs?
I have a WCF service hosted in a Windows service.
I've added to it a webHttpBinding with a webHttp behaviour and whenever I send it a GET request I get http 200 which is what I want, problem is I get an http 405 whenever I send it a HEAD request.
Is…

Meidan Alon
- 3,074
- 7
- 45
- 63
4
votes
4 answers
How do you configure a WCF service with two endpoints to use a different ListenUri for each endpoint?
I have a WCF Service which exposes an endpoint using the webHttpBinding and is consumed by both WPF and ASP.NET applications. Everything works great.
I am now attempting to consume the service from Windows Phone (WP7). However, as the .NET…

Steve Elmer
- 939
- 2
- 10
- 19
4
votes
1 answer
WebHttpBinding not reaching the client
I created a web service for which I am trying to provide 3 endpoints with different bindings.
1. basicHttpBinding,
2. wsHttpBinding,
3. webHttpBinding
When I make the service reference, I get only the endpoints with the basicHttpBinding and…

SaravananArumugam
- 3,680
- 6
- 33
- 45
4
votes
1 answer
Sharing the same port for WCF REST and ASP.NET Web API
I've an existing JSON based service implemented using WCF webhttpbinding. This service is hosted in Windows service. We've implemented SSL as well. Now I'm planning to create new JSON based services using ASP.NET Web API which should be hosted in…

VJAI
- 32,167
- 23
- 102
- 164
4
votes
1 answer
WCF Error on execute: Manual addressing is enabled on this factory, so all messages sent must be pre-addressed
I have a WCF service hosted with WebHttpBinding. The service is very simple, an operation contract which accept multiple parameters. My WCF client, auto generated after using the "Add Service Reference", is not able to directly consume the WCF…

Amintabar
- 2,198
- 1
- 29
- 29
4
votes
0 answers
RestSharp Execute works very slow
Is it normal situation that calling Execute on 9000 custom object from database take circa 10 sec ?
var client = new RestClient("http://localhost:8732/carservice");
var request = new RestRequest(Method.GET);
request.Resource = "GetCarList";
var…

Saint
- 5,397
- 22
- 63
- 107
4
votes
3 answers
Is it possible to use ASP.NET MembershipProvider/RoleProvider in self-hosted WCF services?
I am trying to use custom ASP.NET MembershipProvider and RoleProvider to handle security for my service. The service is self-hosted in a console app, not in IIS.
I use webHttpBinding with Basic Authentication. I configured serviceCredentials and…

Pasho
- 488
- 3
- 15
4
votes
1 answer
How to make WebHttpBehavior for ClientAccessPolicy.xml stop stealing/hijacking IIS's root?
I am using a Silverlight application that has net.tcp WCF communications. I would like to self host the ClientAccessPolicy.xml within the ServiceHost and the policy file must be on the root, port 80, as per Silverlight net.tcp requirements (TCP port…

jeoffman
- 1,303
- 10
- 23
3
votes
3 answers
How to enable webHttp connection in WCF?
I am developing a solution for transfering data from android phone to the server (written in C#/.NET).
I created a WCF service and testing with emulator everything worked fine. Then when I tried to login from mobile phone (connected to home wifi…

Niko Gamulin
- 66,025
- 95
- 221
- 286
3
votes
1 answer
Return large JSON file from AJAX Service - WCF
I have an AJAX-based WebGet method that returns JSON. It won't work with JSON results of a few thousand rows (if I take only 100 or so rows it works). I notice that the browser just stalls and nothing happens, without any information showing the…

Sean Thoman
- 7,429
- 6
- 56
- 103
3
votes
1 answer
WCF ProtocolException : Bad Request 400 (related to http message size)
I am trying to pass a base64 encoded string over WCF using WebHttpBinding.
I get the cryptic error 'Bad Request 400' that the server is not responding. I know its related to the size of the string because if I test a very short string (around 4KB or…

Sean Thoman
- 7,429
- 6
- 56
- 103
3
votes
1 answer
WebHttpBinding in .NET 4.0?
I'm unable to instantiate the WebHttpBinding class when referencing the System.ServiceModel and System.ServiceModel.Web libraries for .NET 4.0. I can instantiate the class when referencing the 3.5 libraries. The documentation says WebHttpBinding…

Craig G.
- 147
- 1
- 9
3
votes
1 answer
Does WCFStorm support calling WCF services that have JSON enabled?
We have WCF services with JSON enabled and are having issues using WCFStorm calling those services. If we turn JSON off, then we do not receive the errors. The error that we receive is below. We have found something to do with…

dwhittenburg
- 616
- 7
- 13
3
votes
2 answers
How to receive arrays through WebHttpBinding?
Will anything like
[OperationContract]
[WebGet]
string IWannaRead(int[] ids);
work? And how to form a link\url (www.example.com/service.svc?ids=1,2,3,4,5,6,7,8) for the request?

Rella
- 65,003
- 109
- 363
- 636
3
votes
2 answers
Is it possible to create sessions (like php sessions) with C# WCF WebHttpBinding?
Is it possible to create sessions with C# WCF WebHttpBinding? (Something like like php sessions with cookies and so on)

Rella
- 65,003
- 109
- 363
- 636