WS-Addressing (WSA)

New in version 0.15.

Zeep offers (experimental) support for the ws-addressing specification. The specification defines some soap:Header elements which basically allows advanced routing of the SOAP messages.

If the WSDL document defines that WSA is required then Zeep will automatically add the required headers to the SOAP envelope. In case you want to customize this then you can add the WsAddressPlugin to the Client.plugins list.

For example:

from zeep import Client
from zeep.wsa import WsAddressingPlugin

client = Client(
    'http://examples.python-zeep.org/basic.wsdl',
    plugins=[WsAddressingPlugin()])
client.service.DoSomething()

Note

The support for ws-addressing is experimental. If you encounter any issues then please don’t hesitate to create an issue on the github repository.