Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Windows Communication Foundation
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 30th, 2007, 12:06 PM
Registered User
 
Join Date: Aug 2004
Location: , , .
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

  #2 (permalink)  
Old October 31st, 2007, 01:25 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
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?

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.