coherence.upnp.core.soap_lite (module)

SOAP-lite

some simple functions to implement the SOAP msgs needed by UPnP with ElementTree

inspired by ElementSOAP.py

build_soap_error(status, description='without words', pretty_print=True)[source]

builds an UPnP SOAP error msg

build_soap_call(method, arguments, ns=None, is_response=False, pretty_print=True)[source]

create a shell for a SOAP request or response element - set method to none to omitt the method element and

add the arguments directly to the body (for an error msg)
  • arguments can be a dict or an etree.Element