Questions tagged [webhttp]

28 questions
35
votes
2 answers

Benefits of using NancyFx?

There is yet another framework for making HTTP calls called NancyFx. My question is what are the benefits of using it. I had quick look at the documentation: https://github.com/NancyFx/Nancy/wiki/Documentation and it looks like there is no…
Jaggu
  • 6,298
  • 16
  • 58
  • 96
12
votes
1 answer

IIS error in deploying asp.net mvc2

I am trying to deploy a wcf webhttp service onto IIS. I am Running Windows 7, IIS 7.5, VS2010. The Steps - Created a project WCF Rest Service Application. - Published the project to localhost - Ensured that the applicationpool was .net 4.0…
user529265
  • 820
  • 10
  • 27
8
votes
3 answers

Setting Max Message and buffer size for WCF webhttp

I currently have a WCF service with webHttp bindings, im attempting to increase the max size that can be inputted to the service by overriding the default settings in config, i have tried doing something like …
Daniel
  • 22,363
  • 9
  • 64
  • 71
7
votes
1 answer

How do I change the outer object's name using WCF?

I'm using a WCF .svc class like so: [DataContract] public class FunInfo { ... } [OperationContract, WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)] public FunInfo SetInformation(int a, int b) { ...…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
6
votes
2 answers

Extend forms authentication to use a custom http header for ticket

I have a wcf webhttp service which uses forms authentication to authenticate users. This works fine if the ticket comes in the cookie collection or in the url. But now I want to send the string of the forms auth ticket in a custom http header and…
Amila
  • 2,779
  • 1
  • 27
  • 31
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
1 answer

wcf webhttp authentication

I am working with WCF Webhttp services. I have created a bunch of services and all that remains is to put in user authentication... Questions Keeping with the rest architecture style, should I authenticate each service call against the user db.…
4
votes
1 answer

WCF problem with POSTs using ssl (https)

I currently have a webHttp binding WCF restful service, it works great over http, I can make Post of large sizes due to my webconfig settings, now I am trying to use it over https (ssl), now my gets work fine, but my posts dont, it doesnt work…
Daniel
  • 22,363
  • 9
  • 64
  • 71
2
votes
1 answer

WCF WebHttp, Service, Behaviors, Endpoints, Custom Formatter

I followed this guide for creating my custom formatter so I could use the Newtonsoft Json.NET for object serialization since the built in Microsoft one doesn't support cycles from parent/child…
Altonymous
  • 783
  • 7
  • 25
2
votes
2 answers

Get raw xml from POST method in service implemented using WCF WebHttp API

I am building a webservice using RESTful approach and am using WCF WebHttp API (.NET v4). To satisfy some legacy functionality I need to accept raw XML message via POST and process it..For example one of my methods looks like: [WebInvoke(UriTemplate…
zam6ak
  • 7,229
  • 11
  • 46
  • 84
2
votes
1 answer

WCF WebHttp & Cycles Preventing Serialization

I have created a WCF WebHttp Service using the following article as a guideline.. http://blogs.msdn.com/b/endpoint/archive/2010/01/07/getting-started-with-wcf-webhttp-services-in-net-4.aspx I have everything working great except one part. When I…
Altonymous
  • 783
  • 7
  • 25
2
votes
0 answers

WCF Help Page: add comments?

I have made Help Page as described here: https://msdn.microsoft.com/en-us/library/ee230442(v=vs.110).aspx Now the output looks like this: Url: http://localhost/IDataRESTService/getnode/{NODE_ID}?t={TYPE} HTTP Method: GET Message direction Format …
ZedZip
  • 5,794
  • 15
  • 66
  • 119
1
vote
3 answers

Spring.NET and WCF WebHttp Services

I'm investigating in using Microsoft's WCF WebHttp Services for creating a RESTful API. In the past there has been the WCF REST Starter Kit for .NET 3.5, which now seem to have been replaced by the WCF REST Service Template 40 in .NET 4. Of course I…
Jan
  • 2,747
  • 27
  • 35
1
vote
0 answers

WCF WebHttp Service using POCO from EntityFramework 4.1 - dbContext

I am trying to return a POCO in WCF WebHttp Service. I am using EntityFramework 4.1 and generating the The entity is created entities using the DbContext Generator. All works well with the EF. I can query the database and work with the entities. …
rbanning
  • 121
  • 1
  • 5
1
vote
2 answers

How do I extend WCF WebHttp (REST) to support ETags and Conditional Gets?

I have a read-only WCF REST service (all GET's baby!) I'd like to add ETag/Conditional get support to every single operation in my service. Basically I'm interested in extending the technique in this…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
1
2