Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-19 Thread Don Demsak
My design style is to split the business layer into 2 parts, the Application layer (which contains all the publicly creatable classes) and the Domain layer, which contains the actual objects that run across applications (think of them as the pure business objects). The Application layer handles th

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-19 Thread Bill Bassler
Just in thinking about it something akin to the Whidbey ObjectDataSource might be an answer to hand-coding all these conversions between your business objects and web services?? Also, remoting will not work in my particular scenario as the clients can be anything such as Axis/Java. My understandin

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-19 Thread Ivan Towlson
of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Shawn A. Van Ness Sent: 18 November 2004 17:45 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues. I advise people to give up bending their business o

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Ben Kloosterman
nced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Shawn A. Van Ness > Sent: Friday, 19 November 2004 4:45 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] XML public property and constructor > serialization issues. > > I advise people to give up bending their

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Shawn A. Van Ness
I advise people to give up bending their business object models to work with XmlSerializer. The constraints are pretty heavy... http://www.windojitsu.com/blog/zenandtheartofxmlserializer.html In addition to the need for public default ctors and public visibility on all serializable fields, there

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Ivan Towlson
> 3. I assume that pushing the existing object's data into an xml > serialization/web service specific object before is a bad idea. I'd examine that assumption *grin*. It's certainly a pain, but remember that what's travelling over the wire is a message, not an object. A message exposes data; an

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Adam Sills
Bassler Sent: Thursday, November 18, 2004 8:44 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] XML public property and constructor serialization issues. 1. Can I do anything (like an xml attribute to mark the class with?) about the requirement for the serialized classes to expose a defau

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Ivan Towlson
Towlson White Carbon -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Eric Means Sent: 18 November 2004 15:11 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues. I believe th

Re: [ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Eric Means
I believe that you can implement ISerializable and add a protected constructor with a specific signature to get around your problems. For instance, here's an EventArgs class: /// /// The event handler for a general error event. /// public delegate void ErrorEvent

[ADVANCED-DOTNET] XML public property and constructor serialization issues.

2004-11-18 Thread Bill Bassler
I'm attempting to return from a web service an xml serialized version of an existing business object. However, the design of this object is posing a few challenges for the xml serializer. 1.It forces me to expose a public constructor in all serialized classes. Specifically, I have several classes