Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

My Friends

My Links

Permanent Posts

Portuguese Communities

Browse by Tags

All Tags » WCF » .NET (RSS)
Calling WCF Web Services from JavaScript
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...
Reusing Cookies in Different WCF Web Services
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...
Exposing a Class as a COM+ WCF Service
Remember COM+? Well, it is still around, and, in the days of WCF, it still usefull in certain scenarios, mostly because of the services COM+ offers OOTB (transactions, synchronization, object pooling, etc). For those of you that don't know how, I'm gonna...
Posted: Nov 18 2010, 12:19 PM by Ricardo Peres | with no comments
Filed under: , ,
Exam 71-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4
Just took the 70-513 exam. Here are some thoughts: 84 questions 240 minutes total time Lots of questions on transactions Lots of questions on sessions and callbacks Some questions on scripting (jQuery) Some questions on throttling Absolutely no questions...
.NET Serializers
(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...
Circular References in WCF
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...
Using MTOM with WCF
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...
Interface Inheritance
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...
Setting Custom Identity in WCF
WCF was designed to be fully extensible, at all levels. If I want to pass a custom identity (an application-defined username and role and the desired culture) to a WCF web service (not using ASP.NET compatibility mode), this is what I do: I defined a...
Validation of WCF Requests with the Enterprise Library Validation Block
In order to enable validation of the properties of a request message, you only need to add a [ValidationBehavior] attribute to your service interface, just next (or before) the [ServiceContract ], and a [FaultContract(typeof(ValidationFault ))] on the...
More Posts Next page »