Questions tagged [webhttpbinding]

165 questions
0
votes
1 answer

WCF webHttpBinding post to apache service

I am trying to communicate with an Apache service from a WCF client I have set up the client like this:
adrianm
  • 14,468
  • 5
  • 55
  • 102
0
votes
2 answers

How to set an incremental property during model binding automatically

I have an input request body for my ASP.NET Core MVC application which I am binding to a request model in C#. public class Request { public int Index {get;set;} public string DocType {get;set;} public string DocId {get;set;} } This is…
Code-47
  • 413
  • 5
  • 17
0
votes
1 answer

BizTalk WCF-WebHttp - How to add parameter to Url with same name

A QueryString normally allows name/value-pairs, where the same name can occur several times. When using WCF-WebHttp and BtsHttpUrlMapping, for caling a REST service, it maps from a property schema, which does not allow repeating element and that…
Martin Bring
  • 1,176
  • 1
  • 7
  • 17
0
votes
1 answer

setting cookies within a wcf service

I have a asp mvc application consuming wcf rest services (all on the same box). For authentication calls, I am trying to set cookies inside a wcf rest service. Code on the client side - HttpResponseMessage resp; HttpClient client…
user275157
  • 1,332
  • 4
  • 23
  • 45
0
votes
2 answers

WCF WebHttpBinding with Membership provider authetication

I have a WebHttpBinding service which uses basic HTTP authentication mode, however for some strange reason it validates provided username/password against windows accounts, thought i specified userNamePasswordValidationMode="MembershipProvider". I…
Alex Burtsev
  • 12,418
  • 8
  • 60
  • 87
0
votes
0 answers

How to have QueryStringConverter parse byte enum names

My wcf webservice uses webhttpbinding(msdn) to expose a REST interface. Some methods accept an enum as parameter; e.g.: [ServiceContract] public partial interface IStrangeEnumDemo { [OperationContract] [WebGet(UriTemplate =…
Kasper van den Berg
  • 8,951
  • 4
  • 48
  • 70
0
votes
2 answers

How to call WCF REST service method in a browser

I had created WCF REST service which return JSON format. My question was " I am unable to find my Operation Contract method in a browser?" Below is my Service Contract using System.ServiceModel; using System.ServiceModel.Web; namespace…
Shakeer Hussain
  • 2,230
  • 7
  • 29
  • 52
0
votes
1 answer

Http-bind taking 6000ms

I have a CRM that is programmed with PHP,javascript and jQuery. We also have a XMPP and http-bind for voip. My problem is: When I load the CRM, the first couple of http-binds take normal time (<50ms), after that they always take around 6000ms. The…
jogoe
  • 482
  • 6
  • 18
0
votes
3 answers

Getting Gibberish instead of Hello World from a service with webHttpBinding

Here is a trivial example that is supposed to return "Hello World" string. However, a browser displays something like SGVsbG8gV29ybGQ=. Which is the right way to return plain text from an oldskul-style service? please know that: I can't return a…
BreakPhreak
  • 10,940
  • 26
  • 72
  • 108
0
votes
1 answer

How to perform Load Test of WCF service having WebHttpBinding with JMeter

I am very new for JMeter. I want to test my WCF service which is using WebHttpBinding. I have gone through the documentation but no help in my case. Can you please suggest how to do that?
Deepak Arora
  • 440
  • 2
  • 11
0
votes
1 answer

The HTTP request was forbidden with client authentication scheme 'Basic'

I have this bug when i try to create a new user using a remote wcf service, other services work fine. {"The HTTP request was forbidden with client authentication scheme 'Basic'."}. My user controller [AcceptVerbs("Post")] public ActionResult…
0
votes
1 answer

Do I need to do anything special to make WCF calls work over HTTPS, ..if HTTP works fine?

I have two versions of the same proof-of-concept site: The unsecure version: http://www.tlsadmin.com/tlsadmin/PortalHome.aspx and the secure version: https://www.tlsadmin.com/tlsadmin/PortalHome.aspx The problem I have is that my WCF-Based web…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
1 answer

Adding webHttpBinding endpoint to an existing netTcpBinding

I have a working service which exposing netTcpBinding at the following way:
Dor Cohen
  • 16,769
  • 23
  • 93
  • 161
0
votes
2 answers

Custom JSON IErrorHandler in WCF returning StatusCode 200/504 when should return 400

I have a WCF service that among other bindings also uses WebHttpBinding for JSON inputs/results. I made a custom IErrorHandler implementation in order to be able to set the StatusCode to 400 when something goes wrong and also return a JSON…
tucaz
  • 6,524
  • 6
  • 37
  • 60
0
votes
1 answer

Cannot Get WCF Basic authentication to authenticate user

So at this stage after trying to get this working I am now resorting to asking you lot this question. Yes I went through a bunch of stack overflow questions similar to mine, but to no avail. All I want to do is add basic authentication over SSL.…
wickd
  • 305
  • 3
  • 13