implements serialization to xml in order to support RequestDescriptors making POST requests with XML body.