From: Phlip on
The answer is to use ZSI instead, then call:

sw = SoapWriter()
sw.serialize(msg)