Originally posted by eammon bannon:
A possible gotcha to watchout for is not all Document implementations are Serializable. So if you change your Document implementation, make sure you check this.
Actually, I wasn't thinking about serializing a org.w3c.dom.Document object into the HTTP POST body but generating raw XML into the HTTP POST body (something like
this).
If you end up using serialization, do remember to encode the resulting binary content into Base64 (or something else) for transport.