im just curious about the data contracts that need to be sent through the wiring in the WCF connection. I know for the sake of interoperability, it is not recommended (maybe not even allowed?) to send native .NET types as part of the data contract.
I want to have a service that accepts, like type input ServiceOperation, .NET XmlDocument. If I were to create a wrapper class (which would be marked with an attribute DataContract) that contains the type XmlDocument(which will be marked with the attribute DataMember) and use it as a parameter for ServiceOperation- Would that be legal / possible?
How can I ensure interoperability while maintaining type convenience XmlDocument? Could it be a better design choice to take stringas a parameter for ServiceOperation, and then create an instance XmlDocumentusing a method XmlDocument.LoadXml(string)on the service side?
welcomes any help / submissions / comments, I'm just starting to deal with wcf, so I just want to clarify any confusion in my head before I get into the head first in creating a service.
THANK!
Nick
source
share