Questions tagged [webhttpbinding]

165 questions
2
votes
1 answer

WCF consuming multiple possible REST responses

I've recently started reading about the WebHttpBinding usage in WCF and being able to consume REST services, however, I've been stumped on this one for a bit now. I'm writing a service that makes a single request to a given api, however, can return…
Alexis Abril
  • 6,389
  • 6
  • 33
  • 53
2
votes
0 answers

WCF queue behavior for MaxConcurrentCalls

I have a WCF service with the following settings: Binding = WebHttpBinding InstanceContextMode = Single ConcurrencyMode = Multiple MaxConcurrentSessions = a high value The documentation states about MaxConcurrentCalls: the MaxConcurrentCalls…
1
vote
1 answer

WCF - RESTful authentication - Always getting 400 or 401 HTTP response

I am using fiddler to generate a RESTful request to a TransportCredentialOnly(Basic) service. if I include the "Authorization: Basic" line, I always get an error 400 bad request. Otherwise, if I leave it out, I get the expected 401. Usually when I…
Malachi
  • 2,260
  • 3
  • 27
  • 40
1
vote
1 answer

WCF SSL Rest based web service with basic authetication

I have a simple WCF REST based service deployed (development ofcourse) using SSL. I am trying to make it work with basic authentication but quite frankly am getting nowhere with it. IIS 6.0 REST based - Using webHttpBinding Here is what my…
Pappy
  • 35
  • 6
1
vote
0 answers

The remote server returned an error: 400 Bad Request (WCF)

I am using WCF and wsDualBinding, WebHttpBinding. I want my server to send a wsdual request to the client, which then processes the request and sends a json back to the server.
1
vote
1 answer

The maximum message size quota for incoming messages has been exceeded

I would like to ask for your help because sometimes I get an error message when I call a service : The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the…
Jojo
  • 11
  • 1
1
vote
1 answer

Having WCF callback only for binding that supports it

I am trying to create a WCF service, that has a webHttpBinding endpoint (for Java clients) and a netTcpBinding endpoint (for .NET clients). With the netTcpBinding endpoint I would like to be able to use callbacks in order to be alerted to events,…
Sam Jenkins
  • 1,284
  • 1
  • 12
  • 30
1
vote
1 answer

Extracting SID using Session PID & JID

I am trying to find a way for extracting SID of a bosh session (ejabberd) using PID and JID so that I can use it in ejabberd_sm:unset_presence, I have searched everywhere but can't find a way to do it. Basically, I have built a chat system using…
TilalHusain
  • 1,006
  • 5
  • 17
  • 36
1
vote
2 answers

WCF unable to find netTcpBinding

I am trying to create a WCF service that is accessible through both webHttpBinding and netTcpBinding. I have been successful in getting the webHttpBinding to be accessible through a Java client and now I'm working on trying to get the netTcpBinding…
Sam Jenkins
  • 1,284
  • 1
  • 12
  • 30
1
vote
2 answers

Accessing the HTTP headers from a WCF Service

I need to access the HTTP response headers that are to be returned to the client from a WCF Service. Accessing the HTTPContext is easy(through HttpContext.Current.Response), but what is the event/extension/behavior that is executed lastly, when the…
jaraics
  • 4,239
  • 3
  • 30
  • 35
1
vote
1 answer

Best way to return JSON to JScript using json.net

I'm returning a JSON using WCF and webHttpBinding so that it can be used JQuery for some grids. Today, I'm querying the database, and getting a DataTable back and, using Linq, I fill a List with one the fields I need, and I serialize it using…
Pascal
  • 2,944
  • 7
  • 49
  • 78
1
vote
1 answer

Asp.net session doesn't seem to work with WCF WebHttpBinding

We're doing a WCF REST json service (WebHttpBinding). Since pure WCF session doesn't work with this kind of binding, we are using asp.net session. So we set:
Roubachof
  • 3,351
  • 3
  • 23
  • 34
1
vote
2 answers

WCF - how to set "enableWebScript" dynamically?

I'm working on my first WCF service, which will support several Ajax calls. I have an endpoint configured this way:
Ben
  • 1,169
  • 3
  • 17
  • 27
1
vote
2 answers

Using WCF to create a RESTful Web Service that requires authentication and uses JSON as input/output format

I want to port an existing ASP.NET Web Service to WCF so the resulting Web Service (1) is RESTful, (2) uses JSON as its request/response format, (3) has a custom authentication mechanism. After a lot of googling, random coding, and wanting to hit my…
isekaijin
  • 19,076
  • 18
  • 85
  • 153
1
vote
1 answer

DataContractJsonSerializer and maxItemsInObjectGraph

How can I set the maxItemsInObjectGraph for the DataContractJsonSerializer? I get an error saying "Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the…
adrianm
  • 14,468
  • 5
  • 55
  • 102