, . , , WCF, DataContract.
Thus, TCP-based XML deserialization is more centralized on the gateway, and your internal applications don't need to worry about it, they just need to expose any WCF services and they can deal with actual objects.
If you force internal applications to deserialize, you can get more maintenance if the format changes or something else.
So, I would say that option 1 (if I did not understand).
source
share