Esempio n. 1
0
 def __str__(self):
     envelope = ElementTree.Element(_SOAPSection.ENVELOPE)
     if len(self.header) > 0:
         envelope.append(self.header)
     body = ElementTree.SubElement(envelope, _SOAPSection.BODY)
     body.append(self.method)
     return "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +\
             ElementTree.tostring(envelope, "utf-8")
Esempio n. 2
0
 def __str__(self):
     return ElementTree.tostring(self.element, "utf-8")