Questions tagged [webhttpbinding]

165 questions
2
votes
0 answers

WebHttpBinding authentication ignored

I'm trying to use basic HTTP authentication with a REST service, but debugging proxy shows that no authentication headers are sent at all, they are ignored! Here is my code: WebChannelFactory factory = new…
Ivan G.
  • 5,027
  • 2
  • 37
  • 65
2
votes
1 answer

WCF reliability issues

Trying to test the reliability of my wcf services. I am calling a wcf service within a loop from the client side. The wcf rest service (webhttpbinding) does some data processing and inserts records into a database. The entire operation is done…
user275157
  • 1,332
  • 4
  • 23
  • 45
2
votes
1 answer

Can't get file size when loading from WCF service host by web browser

I have some test WCF service with streamed webHttpBinding, which allows to download files by web browser. The problem is browser doesn't show file size and download progress. This is the service contract: [ServiceContract] public interface…
ds1709
  • 189
  • 3
  • 11
2
votes
0 answers

WCF Client Certificate

WCF service is configured for client certificate with X509CertificateValidationMode.Custom and a custom X509CertificateValidator. Binding is WebHttpBinding with WebHttpSecurityMode.Transport and HttpClientCredentialType.Certificate. This setup…
Sency
  • 2,818
  • 8
  • 42
  • 59
2
votes
2 answers

The remote server returned an error: (401) Unauthorized. wcf httpbinding basic

I create a simple wcf service [ServiceContract] public interface IService1 { [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "/Data/{data}")] string GetData(string data); } With this custom auth…
Ehsan Akbar
  • 6,977
  • 19
  • 96
  • 180
2
votes
2 answers

How can I return HTTP-400 from a BizTalk Rest service?

I am using BizTalk 2013 R2 and I have a RESTFUL service. How can I return a HTTP-400 response to a client?
Kenank
  • 321
  • 1
  • 10
2
votes
1 answer

Long time running WCF 504 GATEWAY_TIMEOUT error

I am developing a WCF web service on webHttpBinding, client application calls this WCF webservice on demand (HTTP POST) or via scheduler windows service ( currently using Quartz.net). Each call will run a list of tasks that can take 10-30 minutes. …
Bo Hu
  • 327
  • 1
  • 3
  • 13
2
votes
2 answers

"Baseaddress not found"-error when deploying WCF service on GoDaddy

I'm trying to deploy a WCF-service, but I'm having dificulties getting the final bits to work. I'm not a deployment guru in any way, so please bear with me. I'm using a WebHttpBinding to make Ajax calls to the service using JSON, but I receive the…
Jeppebm
  • 389
  • 1
  • 3
  • 16
2
votes
1 answer

Exposing selected operation contracts as ReST causing error Operation 'method name' of contract 'IContract' specifies multiple request body

Here is the scenario. There is an existing service contract with some methods which are getting consumed by a desktop app. Now need to expose some operation contracts via ReST. But it demands to expose all the methods as ReST. Else there is…
Joy George Kunjikkuru
  • 1,495
  • 13
  • 27
2
votes
2 answers

WCF Service on remote server returns 400, works fine locally

I made a small console application that hosts a WCF Service, this application is also the client and implements the Service. It works fine on my local machine and returns the data in JSON to the webbrowser. Im using the Chrome browser with Advanced…
Vern
  • 147
  • 2
  • 14
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
2
votes
1 answer

webHttpBinding WCF service responds over HTTP but not HTTPS

I am developing a WCF restfull service on my machine and when I hit the HTTP service endpoint the service responded as expected. However, when I hit the HTTPS endpoint I get a 404 Not Found back. The Https call does not fire the…
Phil Murray
  • 6,396
  • 9
  • 45
  • 95
2
votes
2 answers

WCF Call Passing a Null Parameter

I have a WebHttpBinding WCF service that I am calling. My first POST method send the object correctly, but subsequent calls to POST methods are passing null for the object. Here is my service: public void Update(ObjectDTO objectDTO) { string…
Brandon
  • 10,744
  • 18
  • 64
  • 97
2
votes
1 answer

WebHttpBinding Security Question

I have created a RESTful Service and implemented the Authentication. It accepts username and password and then grants access to the service requested. It Works fine. Now I want to use SSL on top of my Service. For this I Created Certificate, Then In…
Tara Singh
  • 1,821
  • 6
  • 28
  • 36
2
votes
0 answers

Implementing a claims-based security model to secure a WCF service

Currently, all of our web applications (and the WCF services they interact with) are run internally. Nothing is exposed to the web. We want to open up our web applications to the Internet and will need to secure access to the services. We have…
Thelonias
  • 2,918
  • 3
  • 29
  • 63