Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr GeneratorExp NameLoad comprehension NameStore ListLoad IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad IfExp NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad IfExp NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad CompareIsNot NameLoad NameLoad decorator_list
N/A N/A WSA (Addressing) support for rinse SOAP client. N/A NS_WSA http://www.w3.org/2005/08/addressing N/A URI_ANONYMOUS http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous N/A URI_UNSPECIFIED http://schemas.xmlsoap.org/ws/2004/08/addressing/id/unspecified append_wsa_headers N/A N/A msg to action message_id relates_to relationship_type reply_to from_endpoint fault_to N/A None None None None None None N/A N/A Add WSA (addressing) headers.

    >>> from rinse.wsa import append_wsa_headers
    >>> import lxml.usedoctest
    >>> from rinse.message import SoapMessage
    >>> from rinse.util import printxml
    >>> msg = SoapMessage()
    >>> f123 = msg.elementmaker(
    ...     'f123',
    ...     'http://www.fabrikam123.example/svc53',
    ... )
    >>> msg.body = f123.Delete(f123.maxCount('42'))
    >>> append_wsa_headers(
    ...     msg,
    ...     'mailto:joe@fabrikam123.example',
    ...     'http://fabrikam123.example/mail/Delete',
    ...     message_id='uuid:aaaabbbb-cccc-dddd-eeee-ffffffffffff',
    ...     reply_to='http://business456.example/client1',
    ... )
    >>> print(msg['SOAPAction'])
    "http://fabrikam123.example/mail/Delete"
    >>> printxml(msg.etree())
    <soapenv:Envelope xmlns:f123="http://www.fabrikam123.example/svc53"
            xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <soapenv:Header>
        <wsa:MessageID>uuid:aaaabbbb-cccc-dddd-eeee-ffffffffffff</wsa:MessageID>
        <wsa:To>mailto:joe@fabrikam123.example</wsa:To>
        <wsa:Action>http://fabrikam123.example/mail/Delete</wsa:Action>
        <wsa:ReplyTo>
          <wsa:Address>http://business456.example/client1</wsa:Address>
        </wsa:ReplyTo>
      </soapenv:Header>
      <soapenv:Body>
        <f123:Delete>
          <f123:maxCount>42</f123:maxCount>
        </f123:Delete>
      </soapenv:Body>
    </soapenv:Envelope>
     N/A N/A reply_to N/A message_id N/A N/A N/A ValueError wsa:ReplyTo set so wsa:MessageID MUST be present. N/A N/A fault_to N/A message_id N/A N/A N/A ValueError wsa:FaultTo set so wsa:MessageID MUST be present. N/A N/A relationship_type N/A relates_to N/A N/A N/A ValueError /wsa:RelatesTo/@RelationshipType set so wsa:RelatesTo MUST be present. N/A N/A msg N/A SOAPAction N/A N/A "{}" format action N/A relation_attrs N/A N/A relationship_type N/A N/A N/A relation_attrs N/A RelationshipType relationship_type N/A wsa N/A N/A msg elementmaker wsa NS_WSA N/A N/A N/A N/A msg headers extend N/A header N/A header N/A N/A message_id N/A N/A wsa MessageID message_id None N/A relates_to N/A N/A wsa RelatesTo relates_to relation_attrs None N/A N/A wsa To to N/A N/A wsa Action action N/A from_endpoint N/A N/A wsa From from_endpoint None N/A reply_to N/A N/A wsa ReplyTo N/A N/A wsa Address reply_to None N/A fault_to N/A N/A wsa FaultTo N/A N/A wsa Address fault_to None N/A header None N/A