DayLaborer
Programmer
I have several different types of objects that need to be returned by a "DataContract" WCF method. In other words, I must return all of the following in a method call:[tt] XMLDocument, List<MyCustomObject>, ADifferentCustomObject[/tt]. I need to do this to minimize round-trip calls to the method.
Two questions:
1) Is there a better way to return them other than lumping them into an "XMLDocument" object? (I think the idea of an Object[] is not so good...)
2) If an "XMLDocument" object is, in fact, the best object type to return, how do I "squish" my custom objects as well as standard types (strings, ints, etc.) into an "XMLDocument"? Am I supposed to manually concatenate the XML nodes?
As you can tell, I'm new to both WCF and XML.
Thanks in advance,
Eliezer
Two questions:
1) Is there a better way to return them other than lumping them into an "XMLDocument" object? (I think the idea of an Object[] is not so good...)
2) If an "XMLDocument" object is, in fact, the best object type to return, how do I "squish" my custom objects as well as standard types (strings, ints, etc.) into an "XMLDocument"? Am I supposed to manually concatenate the XML nodes?
As you can tell, I'm new to both WCF and XML.
Thanks in advance,
Eliezer