Browse by Tags
All Tags »
Web Services (
RSS)
Since this blog started, back in 2008, I wrote a lot of posts. I’d say some are still up to date. I picked a few of them, those I’m more proud of, in no particular order. ASP.NET Web Forms: Using the ASP.NET Health Monitoring Provider to Secure Your Application...
This post was long due, so here it is. Prepare for a long post! Whenever you need to consume a WCF web service from a web page, you have (at least) three options: Have the ASP.NET ScriptManager generate a strongly-typed JavaScript proxy to the service...
You probably know that to have cookie-based sessions in your WCF service, you have to use one of the *ContextBinding bindings, such as BasicHttpContextBinding . But what if you want to share cookies (such as authentication) among different services? Enter...
In order to use the new functionalities (count, projections, server paging, for instance) supplied by version 1.5 of ADO.NET Data Services (see my previous post ), you must explicitly enable them on the service side. public static void InitializeService...
A new version of the ADO.NET Data Services API was released, and you can get it from here , for the Windows 2000, Windows Server 2003, Windows XP, Windows Vista and Windows Server 2008, and from here , for Windows 7 and Windows Server 2008 R2. Overview...
Update: this is based on the old NHContrib LINQ provider; the current one, on the NHibernate core, does not have an NHibernateContext class. Also, ADO.NET Data Services are now called WCF Data Services. For additional information, please read this post...
(UPDATED) As of version 3.5 SP1, .NET comes along with the following serializers: System.Runtime.Serialization.Formatters.Binary.BinaryFormatte r : binary serializer used in .NET Remoting, type information is included, understands System.Runtime.Serialization...
Updated: thanks to Nobody for the remark! Suppose you want to transmit a list of items where possibly some of them refer to other items on the list. For example: [DataContract] public class MenuItem { [DataMember] public String Text { get; set; } [DataMember...
Suppose you want to transmit large binary contents (a file, for example) through WCF. In the usual way, you would use a classe decorated with a [DataContract] attribute, and you would have inside of it a property of type Byte[] , marked with a [DataMember...
I am normally against having an interface inherit from another one, but there's a situation where I am in favor of it: web service interfaces! The reason is that we can write code like this: using ( ChannelFactory < IMyService > factory = new ChannelFactory...
More Posts
Next page »