rinse.message

SOAP client.

class rinse.message.SoapMessage(body=None)[source]

SOAP message.

>>> from rinse.message import SoapMessage
>>> from lxml import etree
>>> from rinse.util import printxml
>>> body = etree.Element('test')
>>> msg = SoapMessage(body)
>>> printxml(msg.etree())
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <test/>
  </soapenv:Body>
</soapenv:Envelope>
elementmaker(prefix, url)[source]

Register namespace and return ElementMaker bound to the namespace.

elementmaker_cls

alias of ElementMaker

etree()[source]

Generate a SOAP Envelope message with header and body elements.

request(url=None, action=None)[source]

Generate a requests.Request instance.

tostring(**kwargs)[source]

Generate XML representation of self.