Hi, I'm using .Net 2.0.
I have checked that section of the manual but don't like the idea of creating the schemaimporter project - it seems very long-winded. We write a lot of web applications and don't want to have to go through that for each one. Unfortunately remoting isn't an option either due to our infrastructure.
Don't worry though. I've since read the "XML Support" section of the manual and discovered the ReadXml/WriteXml methods, so we can serialize objects prior to sending to/from a webmethod, then deserialize at the other end. It just means our webmethod parameters and return values will be strings rather than entities & entitycollections, so the webmethod signature isn't intuitive when you look at it.
Can you confirm that the ReadXml/WriteXml methods will serialize/deserialize an entire hierarchy of objects? E.g. if I have a customer entity, with an order entitycollection, each of these with an order item entitycollection, etc, etc. If I serialize then deserialize the customer, will it reinstantiate the entire object graph?
I'm still interested to know about DTOs and how these can be used to pass entities/entity collections to/from webservices, with any examples.
Thanks again
Andy