Calling WCF secured service from Java

Tuesday, March 9, 2010

Calling WCF secured service from Java   recently I was working on exposing secured WCF service to Java consumers. I was responsible for the .NET side and a java expert named Tsvika responsible for the Java side.   enabling secured conversation between Java and .NET using WCF is not a trivial task, and it does needed some additional steps. you should have certificate install, and having the binding and behaviors configured in a way that the Java proxy can manage.   Certificates ...
tags: ,
2 comments

MEF at the SDP

Monday, December 28, 2009

MEF at the SDP today i was lecturing at the SELA SDP about building composite WPF shell application using MEF. first I want to thanks all attendant that was there despite of the latency in the schedule. second I want to thanks Yaniv Rodenski for his part in the lecture. Yaniv was demonstrating real world solution that combine the WCF power with the MEF charm :)   as I promised you can find the presentation and the code sample that I was showing (and Yaniv was kind enough...
no comments

MEFing WCF Extensibility

Saturday, August 15, 2009

You can download the code here Wouldn’t it be nice to extend WCF just by inheriting the relevant interface (IServiceBehavior, IDispatchMessageInspector, ext…) and having it hooked without wasting your time on finding the right way of hooking it? Well this post is all about this topic. How does it work? I wrote 2 helper project MEFContracts and WcfPrimitivePlugins which responsible for that magic, and you will also need reference to MEF. For any of your WCF services or client proxy, you have to add reference to the MEFContracts project and ComponentModel project (which is...
tags: ,
no comments

Serialize generics list part 2

Monday, June 8, 2009

This post is the 3rd of series on serialization in WCF. The post is taking the previous post concept one step ahead by wrapping the List<T> as serializable type Downloads available here Jump into the code see the theory in the previous postpublic class GenListCustom<T>:List<T>,IXmlSerializable { private static readonly string ITEM_ELEMENT_NAME= typeof (T).Name; XmlSchema IXmlSerializable.GetSchema() { throw new NotImplementedException(); } void IXmlSerializable.ReadXml(XmlReader reader){ var ser=new DataContractSerializer(typeof(T)); ...
tags:
2 comments

Serialize generics list part 1

This post is the second of series on serialization in WCF (previous post). The topic of this post is dealing with writing data contract that inherit from type that does not decorated with the DataContract attribute (in our case List<T>). Downloads available here Why shouldn’t it work? consider the following type declaration: public class ListCustom: List<CompositeType> {…} The above code will not pass the data contract serialization because List<T> does not decorated with DataContract attribute What can we do about it? We can certainly refactor the class to composite pattern which will look...
tags:
no comments

Flexible Serializer Provider

This post is the first of a series. Each post of this series will take the concept one step ahead. Code sample download available here What in this post? this post will discuss the technique of writing reusable type that can be serialize both by Data Contract serialization and Xml serialization and be later deserialize by the other. Why should we care about it? This technique is the base line for following posts in this series which talk about serializing inherits generics list. Some...
tags:
no comments