<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Remoting Using WCF and NHibernate</title>
	<atom:link href="http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/</link>
	<description>A Blog About .NET Software Development</description>
	<lastBuildDate>Mon, 19 Oct 2009 11:25:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dani</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-173</link>
		<dc:creator>Dani</dc:creator>
		<pubDate>Thu, 15 Oct 2009 14:16:35 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-173</guid>
		<description>How do I apply the Attribute [UseNetDataContractSerializer]

When using a proxy generated by svcutils ?

I&#039;ve tried to use a code to replace the behaviour in the client - but it doesn&#039;t work (the deserializer looking from staff in the wrong places... - looking for on of my server entities in mscorlib) :
foreach (OperationDescription desc in this.Endpoint.Contract.Operations)
                {
                    DataContractSerializerOperationBehavior dcsOperationBehavior = desc.Behaviors.Find();
                    if (dcsOperationBehavior != null)
                    {
                        int idx = desc.Behaviors.IndexOf(dcsOperationBehavior);
                        desc.Behaviors.Remove(dcsOperationBehavior);
                        desc.Behaviors.Insert(idx, new NetDataContractOperationBehavior(desc));

                    }
                }</description>
		<content:encoded><![CDATA[<p>How do I apply the Attribute [UseNetDataContractSerializer]</p>
<p>When using a proxy generated by svcutils ?</p>
<p>I&#8217;ve tried to use a code to replace the behaviour in the client &#8211; but it doesn&#8217;t work (the deserializer looking from staff in the wrong places&#8230; &#8211; looking for on of my server entities in mscorlib) :<br />
foreach (OperationDescription desc in this.Endpoint.Contract.Operations)<br />
                {<br />
                    DataContractSerializerOperationBehavior dcsOperationBehavior = desc.Behaviors.Find();<br />
                    if (dcsOperationBehavior != null)<br />
                    {<br />
                        int idx = desc.Behaviors.IndexOf(dcsOperationBehavior);<br />
                        desc.Behaviors.Remove(dcsOperationBehavior);<br />
                        desc.Behaviors.Insert(idx, new NetDataContractOperationBehavior(desc));</p>
<p>                    }<br />
                }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-163</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Tue, 30 Jun 2009 10:13:52 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-163</guid>
		<description>Hi,

I am trying to access the WCF service having following interface and implementation:

[ServiceContract(Namespace=&quot;http://SMS.com/OPS&quot;)]
public interface IOrderProcessingService
{
&#160;&#160;&#160;[UseNetDataContractSerializer]
&#160;&#160;&#160;[OperationContract]
&#160;&#160;&#160;Customer GetAnyCustomer();

&#160;&#160;&#160;[UseNetDataContractSerializer]
&#160;&#160;&#160;[OperationContract]
&#160;&#160;&#160;Customer GetCustomerByName(string customerName);
}

public class OrderProcessingService : IOrderProcessingService
{
&#160;&#160;&#160;public Customer GetAnyCustomer()
&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;ICustomerRepository repository = new CustomerRepository();
&#160;&#160;&#160;&#160;&#160;&#160;return repository.GetByName(&quot;Tom&quot;);
&#160;&#160;&#160;}

&#160;&#160;&#160;public Customer GetCustomerByName(string customerName)
&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;ICustomerRepository repository = new CustomerRepository();
&#160;&#160;&#160;&#160;&#160;&#160;return repository.GetByName(customerName);
&#160;&#160;&#160;}    	
}

CustomerRepository class is accessing the database using NHibernate.

Now the problem is that the method GetAnyCustomer() is working fine. But when the service client is accessing the method GetCustomerByName, the following exception is thrown, indicating that there is some problem in deserializing the given string parameter customerName. The exception details are as follows:
WorkingWithGraph.Tests.OrderProcessingServiceTest.GetCustomerByNameTest : System.ServiceModel.FaultException : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://SMS.com/OPS:customerName. The InnerException message was &#039;Error in line 1 position 281. XML &#039;Element&#039; &#039;http://SMS.com/OPS:customerName&#039; does not contain expected attribute &#039;http://schemas.microsoft.com/2003/10/Serialization/:Type&#039;. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.&#039;.  Please see InnerException for more details.

And what does it meant by : XML &#039;Element&#039; &#039;http://SMS.com/OPS:customerName&#039; does not contain expected attribute &#039;http://schemas.microsoft.com/2003/10/Serialization/:Type&#039;

I have also tried encapsulating the customerName both in a DataContract and in a MessageContract and used these contracts as parameter types, but not to avail anything.

Please help me.

Thanks in advance.
Gaurav</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to access the WCF service having following interface and implementation:</p>
<p>[ServiceContract(Namespace="http://SMS.com/OPS")]<br />
public interface IOrderProcessingService<br />
{<br />
&nbsp;&nbsp;&nbsp;[UseNetDataContractSerializer]<br />
&nbsp;&nbsp;&nbsp;[OperationContract]<br />
&nbsp;&nbsp;&nbsp;Customer GetAnyCustomer();</p>
<p>&nbsp;&nbsp;&nbsp;[UseNetDataContractSerializer]<br />
&nbsp;&nbsp;&nbsp;[OperationContract]<br />
&nbsp;&nbsp;&nbsp;Customer GetCustomerByName(string customerName);<br />
}</p>
<p>public class OrderProcessingService : IOrderProcessingService<br />
{<br />
&nbsp;&nbsp;&nbsp;public Customer GetAnyCustomer()<br />
&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ICustomerRepository repository = new CustomerRepository();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return repository.GetByName(&#8220;Tom&#8221;);<br />
&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;public Customer GetCustomerByName(string customerName)<br />
&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ICustomerRepository repository = new CustomerRepository();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return repository.GetByName(customerName);<br />
&nbsp;&nbsp;&nbsp;}<br />
}</p>
<p>CustomerRepository class is accessing the database using NHibernate.</p>
<p>Now the problem is that the method GetAnyCustomer() is working fine. But when the service client is accessing the method GetCustomerByName, the following exception is thrown, indicating that there is some problem in deserializing the given string parameter customerName. The exception details are as follows:<br />
WorkingWithGraph.Tests.OrderProcessingServiceTest.GetCustomerByNameTest : System.ServiceModel.FaultException : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter <a href="http://SMS.com/OPS:customerName" rel="nofollow">http://SMS.com/OPS:customerName</a>. The InnerException message was &#8216;Error in line 1 position 281. XML &#8216;Element&#8217; &#8216;http://SMS.com/OPS:customerName&#8217; does not contain expected attribute &#8216;http://schemas.microsoft.com/2003/10/Serialization/:Type&#8217;. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.&#8217;.  Please see InnerException for more details.</p>
<p>And what does it meant by : XML &#8216;Element&#8217; &#8216;http://SMS.com/OPS:customerName&#8217; does not contain expected attribute &#8216;http://schemas.microsoft.com/2003/10/Serialization/:Type&#8217;</p>
<p>I have also tried encapsulating the customerName both in a DataContract and in a MessageContract and used these contracts as parameter types, but not to avail anything.</p>
<p>Please help me.</p>
<p>Thanks in advance.<br />
Gaurav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-131</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Tue, 07 Apr 2009 13:40:44 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-131</guid>
		<description>Hello,

Thanks for the post, I&#039;ve run into the same issue.

What did you do on the client side to specify that you are using the NetDataContractSerializer ?

If I don&#039;t do anything the client throws the following exception :

The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized

More detailed :
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:pPostId. The InnerException message was &#039;Error in line 1 position 123. XML &#039;Element&#039; &#039;http://tempuri.org/:pPostId&#039; does not contain expected attribute &#039;http://schemas.microsoft.com/2003/10/Serialization/:Type&#039;. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.&#039;.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the post, I&#8217;ve run into the same issue.</p>
<p>What did you do on the client side to specify that you are using the NetDataContractSerializer ?</p>
<p>If I don&#8217;t do anything the client throws the following exception :</p>
<p>The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized</p>
<p>More detailed :<br />
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter <a href="http://tempuri.org/:pPostId" rel="nofollow">http://tempuri.org/:pPostId</a>. The InnerException message was &#8216;Error in line 1 position 123. XML &#8216;Element&#8217; &#8216;http://tempuri.org/:pPostId&#8217; does not contain expected attribute &#8216;http://schemas.microsoft.com/2003/10/Serialization/:Type&#8217;. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-80</link>
		<dc:creator>Frederik</dc:creator>
		<pubDate>Tue, 29 Jul 2008 20:22:28 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-80</guid>
		<description>Hi, this is an interesting article which I&#039;m sure will be usefull to me in the (near) future, since I&#039;m playing with NHibernate &amp; WCF as well to see what is possible when combining these 2 powers. :¨)

However, right now, I&#039;m facing another problem for which I&#039;ve found no solution yet.  As I see that a lot of people who have posted comments here which are using NHibernate in a remote scenario plz allow me to do so :).

What I want to try to accomplish is -just as Tim Scott &amp; Greg Banister did-, share my business objects on the client and on my remote service layer.  
This means that my &#039;Customer entity&#039; for example is known by the client, and is known by the Service Layer.
The problem that I am facing, is state tracking ...  Let me explain:
Suppose I&#039;ve a method in my remote service which allows me to get a Customer object.
In my client app, I would call it like this:

[code]
Customer c = RemoteProxy.GetCustomer (1);
[/code]

Then, as soon as I&#039;ve retrieved the Customer, the user could make some changes to this Customer object.  Or, he could also choose not to change properties on the object.
Anyway, when the user click&#039;s OK, I need to be able to determine if the user has changed, so that I do not unnecessarily invoke the remote call to save the changes.
Then, in my remote interface, I also need to determine whether the object has really changed, so that no unnecessary UPDATE&#039;s are invoked in the DB. (This is also necessary since, when using an Interceptor which sets some audit-information (last updated date, last updated by ...), we should have no wrong information in the DB).

I&#039;ve written a post about it on my weblog.  Any idea&#039;s of how to solve this problem, is very much appreciated.
http://fgheysels.blogspot.com/2008/07/nhibernate-in-remoting-wcf-scenario.html

How did you guys cope with this problem ?</description>
		<content:encoded><![CDATA[<p>Hi, this is an interesting article which I&#8217;m sure will be usefull to me in the (near) future, since I&#8217;m playing with NHibernate &amp; WCF as well to see what is possible when combining these 2 powers. :¨)</p>
<p>However, right now, I&#8217;m facing another problem for which I&#8217;ve found no solution yet.  As I see that a lot of people who have posted comments here which are using NHibernate in a remote scenario plz allow me to do so <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>What I want to try to accomplish is -just as Tim Scott &amp; Greg Banister did-, share my business objects on the client and on my remote service layer.<br />
This means that my &#8216;Customer entity&#8217; for example is known by the client, and is known by the Service Layer.<br />
The problem that I am facing, is state tracking &#8230;  Let me explain:<br />
Suppose I&#8217;ve a method in my remote service which allows me to get a Customer object.<br />
In my client app, I would call it like this:</p>
<pre class="brush: plain;">
Customer c = RemoteProxy.GetCustomer (1);
</pre>
<p>Then, as soon as I&#8217;ve retrieved the Customer, the user could make some changes to this Customer object.  Or, he could also choose not to change properties on the object.<br />
Anyway, when the user click&#8217;s OK, I need to be able to determine if the user has changed, so that I do not unnecessarily invoke the remote call to save the changes.<br />
Then, in my remote interface, I also need to determine whether the object has really changed, so that no unnecessary UPDATE&#8217;s are invoked in the DB. (This is also necessary since, when using an Interceptor which sets some audit-information (last updated date, last updated by &#8230;), we should have no wrong information in the DB).</p>
<p>I&#8217;ve written a post about it on my weblog.  Any idea&#8217;s of how to solve this problem, is very much appreciated.<br />
<a href="http://fgheysels.blogspot.com/2008/07/nhibernate-in-remoting-wcf-scenario.html" rel="nofollow">http://fgheysels.blogspot.com/2008/07/nhibernate-in-remoting-wcf-scenario.html</a></p>
<p>How did you guys cope with this problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-73</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Tue, 08 Jul 2008 09:20:01 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-73</guid>
		<description>I&#039;m trying to get this to work with a tree structure. But alas alack no luck...
The serializer test is working and it serializes the children with no problem but over the wire I lose them for reasons unknown. I can see in to the collection but it is empty...All other collections in the object are coming through no problem at all just the children not... Any one with any bright ideas why or how. I dont think I need to implement that functionality anyway so its more of an academic question really just would like to know....!?


Heres my code,
[Serializable]
    [DataContract]
    [KnownType(typeof(NHibernate.Collection.Generic.PersistentGenericSet))]
    [KnownType(typeof(Iesi.Collections.Generic.HashedSet))]
    
    [KnownType(typeof(ItemHierarchyLevel))]
    [KnownType(typeof(Item))]
    public class ItemHierarchy:IItemHierarchy
    {
        [DataMember]
        public virtual Guid Id { get; set; }
        [DataMember]
        public virtual string Name { get; set; }
       
        public virtual ItemHierarchy Parent { get; set; }
        [DataMember]
        public virtual ISet Children { get; set; }
        [DataMember]
        public virtual ItemHierarchyLevel HLevel { get; set; }
        [DataMember]
        public virtual Item ItemNumber { get; set; }
        [DataMember]
        public virtual ISet ItemBaseProps { get; set; }
        public ItemHierarchy()
        {
            Children = new HashedSet();
            ItemBaseProps = new HashedSet();
            //ItemNumber = new Item();
        }

        public virtual void AddChildItemHierarchy(ItemHierarchy child)
        {
            Children.Add(child);
            child.Parent = this;
        }

        public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
        {
        }
    }
And this test is ok, with the count of children being correct...

 [Test]
        public void NetDataContractSerialization_will_Not_change_the_type_of_a_Collection()
        {
            ItemHierarchy ith = _repository.GetAggregateByName(&quot;Top&quot;);
            Assert.AreEqual(typeof(NHibernate.Collection.Generic.PersistentGenericSet), ith.ItemBaseProps.GetType());

            NetDataContractSerializer serializer = new NetDataContractSerializer();

            //serialize company to a memmory stream
            Stream stream = new MemoryStream();
            serializer.Serialize(stream, ith);

            //deserialize the memory stream back to a company
            stream.Position = 0;
            ith = (ItemHierarchy)serializer.Deserialize(stream);

            Assert.AreEqual(typeof(NHibernate.Collection.Generic.PersistentGenericSet), ith.ItemBaseProps.GetType());
            Assert.AreNotEqual(typeof(object[]), ith.ItemBaseProps.GetType());
        }

Any ideas welcomed,</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get this to work with a tree structure. But alas alack no luck&#8230;<br />
The serializer test is working and it serializes the children with no problem but over the wire I lose them for reasons unknown. I can see in to the collection but it is empty&#8230;All other collections in the object are coming through no problem at all just the children not&#8230; Any one with any bright ideas why or how. I dont think I need to implement that functionality anyway so its more of an academic question really just would like to know&#8230;.!?</p>
<p>Heres my code,<br />
[Serializable]<br />
    [DataContract]<br />
    [KnownType(typeof(NHibernate.Collection.Generic.PersistentGenericSet))]<br />
    [KnownType(typeof(Iesi.Collections.Generic.HashedSet))]</p>
<p>    [KnownType(typeof(ItemHierarchyLevel))]<br />
    [KnownType(typeof(Item))]<br />
    public class ItemHierarchy:IItemHierarchy<br />
    {<br />
        [DataMember]<br />
        public virtual Guid Id { get; set; }<br />
        [DataMember]<br />
        public virtual string Name { get; set; }</p>
<p>        public virtual ItemHierarchy Parent { get; set; }<br />
        [DataMember]<br />
        public virtual ISet Children { get; set; }<br />
        [DataMember]<br />
        public virtual ItemHierarchyLevel HLevel { get; set; }<br />
        [DataMember]<br />
        public virtual Item ItemNumber { get; set; }<br />
        [DataMember]<br />
        public virtual ISet ItemBaseProps { get; set; }<br />
        public ItemHierarchy()<br />
        {<br />
            Children = new HashedSet();<br />
            ItemBaseProps = new HashedSet();<br />
            //ItemNumber = new Item();<br />
        }</p>
<p>        public virtual void AddChildItemHierarchy(ItemHierarchy child)<br />
        {<br />
            Children.Add(child);<br />
            child.Parent = this;<br />
        }</p>
<p>        public virtual void GetObjectData(SerializationInfo info, StreamingContext context)<br />
        {<br />
        }<br />
    }<br />
And this test is ok, with the count of children being correct&#8230;</p>
<p> [Test]<br />
        public void NetDataContractSerialization_will_Not_change_the_type_of_a_Collection()<br />
        {<br />
            ItemHierarchy ith = _repository.GetAggregateByName(&#8220;Top&#8221;);<br />
            Assert.AreEqual(typeof(NHibernate.Collection.Generic.PersistentGenericSet), ith.ItemBaseProps.GetType());</p>
<p>            NetDataContractSerializer serializer = new NetDataContractSerializer();</p>
<p>            //serialize company to a memmory stream<br />
            Stream stream = new MemoryStream();<br />
            serializer.Serialize(stream, ith);</p>
<p>            //deserialize the memory stream back to a company<br />
            stream.Position = 0;<br />
            ith = (ItemHierarchy)serializer.Deserialize(stream);</p>
<p>            Assert.AreEqual(typeof(NHibernate.Collection.Generic.PersistentGenericSet), ith.ItemBaseProps.GetType());<br />
            Assert.AreNotEqual(typeof(object[]), ith.ItemBaseProps.GetType());<br />
        }</p>
<p>Any ideas welcomed,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Gavrilyuk</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-69</link>
		<dc:creator>Ivan Gavrilyuk</dc:creator>
		<pubDate>Wed, 09 Apr 2008 12:57:30 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-69</guid>
		<description>I&#039;m sending Hibernate (NHibernate objects) over the wire using stardard DataContractSerializer, and they are really exposed over NetTcpBinding and BasicHttpBinding (web service actually). I had to implement a lot of code of course to extend service side and implement some helper classed, but any hibernate objects are always serialized and transferred.

Maybe I will write an article about this a bit later.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sending Hibernate (NHibernate objects) over the wire using stardard DataContractSerializer, and they are really exposed over NetTcpBinding and BasicHttpBinding (web service actually). I had to implement a lot of code of course to extend service side and implement some helper classed, but any hibernate objects are always serialized and transferred.</p>
<p>Maybe I will write an article about this a bit later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oran</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-62</link>
		<dc:creator>Oran</dc:creator>
		<pubDate>Fri, 14 Mar 2008 02:08:26 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-62</guid>
		<description>I haven&#039;t investigated this yet, but check out NHibernate.Remote here:
http://slagd.com/?p=4</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t investigated this yet, but check out NHibernate.Remote here:<br />
<a href="http://slagd.com/?p=4" rel="nofollow">http://slagd.com/?p=4</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: music</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-58</link>
		<dc:creator>music</dc:creator>
		<pubDate>Mon, 07 Jan 2008 23:25:59 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-58</guid>
		<description>very interesting. 
i&#039;m adding in RSS Reader</description>
		<content:encoded><![CDATA[<p>very interesting.<br />
i&#8217;m adding in RSS Reader</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-55</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Thu, 03 Jan 2008 14:17:56 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-55</guid>
		<description>I put up an example that uses this approach on my blog. Includes the full solution so you can download it and experiment with it. You can get it here: 
http://ralinx.wordpress.com/2008/01/03/sending-nhibernate-entities-over-the-wcf-wire/</description>
		<content:encoded><![CDATA[<p>I put up an example that uses this approach on my blog. Includes the full solution so you can download it and experiment with it. You can get it here:<br />
<a href="http://ralinx.wordpress.com/2008/01/03/sending-nhibernate-entities-over-the-wcf-wire/" rel="nofollow">http://ralinx.wordpress.com/2008/01/03/sending-nhibernate-entities-over-the-wcf-wire/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Hartsock</title>
		<link>http://lunaverse.wordpress.com/2007/05/09/remoting-using-wcf-and-nhibernate/#comment-54</link>
		<dc:creator>Brian Hartsock</dc:creator>
		<pubDate>Mon, 31 Dec 2007 21:07:01 +0000</pubDate>
		<guid isPermaLink="false">http:/1970/01/01/remoting-using-wcf-and-nhibernate/#comment-54</guid>
		<description>IDataContractSurrogate can solve the NHibernate serialization problems while at the same time providing interoperability.  The IDataContractSurrogate can be used to basically unproxy and unpersist any NHibernate entity.  It isn&#039;t really that much code either.

I am serializing by hand so I don&#039;t know how it would work with WCF, but I am sure there has to be a way to set a surrogate when serializing.

I am going to post on it soon, but if you want to check it out just email me.</description>
		<content:encoded><![CDATA[<p>IDataContractSurrogate can solve the NHibernate serialization problems while at the same time providing interoperability.  The IDataContractSurrogate can be used to basically unproxy and unpersist any NHibernate entity.  It isn&#8217;t really that much code either.</p>
<p>I am serializing by hand so I don&#8217;t know how it would work with WCF, but I am sure there has to be a way to set a surrogate when serializing.</p>
<p>I am going to post on it soon, but if you want to check it out just email me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
