Wrox Programmer Forums
|
Windows Communication Foundation Discussion of the beta version of Windows Communication Foundation formerly know as codename "Indigo"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Communication Foundation section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 30th, 2007, 12:06 PM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default WCF serializes only 1 level

Hi All,

I have some object in my data layer. This object has navigation properties to other objects. When I connect to a method in the data layer using WCF the result is only the object without it's navigation properties. So only the first level is being serialized.

How can I have WCF serialize everything in the object and send it to the client?

Regards,

Ed

 
Old October 31st, 2007, 01:25 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Additional info:

The data layer has an netTcpBinding endpoint. Also the object model ( part of wich I want to send acros the wire ) has XmlDoNotSerialize and SoapDoNotSerialize attributes on the navigation properties.
But if I understand correctly the netTcpBinding endpoint should use binary serialization and thereefor those DoNotSerialze attributes should make no difference.

any ideas please?






Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF yangqingyue1985 C# 0 July 28th, 2008 02:17 AM
WCF code Example fcatarino BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 July 21st, 2008 04:38 PM
WCF endpoint error when wrapping WCF service with jdawg1979 Visual Studio 2008 0 July 8th, 2008 11:56 AM
WCF/SOA - anyone using this pattern jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 28th, 2008 03:01 AM
WPF,WCF,WWF angelboy .NET Framework 3.5 1 January 31st, 2008 09:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.