I am trying to create a client that consumes WSDL file and produces a proper SOAP message. This is how I'm creating the client:
client = Client(
wsdl=wsdl
,transport = transport
,wsse = Signature('key.pem', 'cert.pem')
)
The comments in the zeep code say it should produce XML akin to this:
<soap:Header>
<wsse:Security mustUnderstand="true">
<wsu:Timestamp>
<wsu:Created>2015-06-25T21:53:25.246276+00:00</wsu:Created>
<wsu:Expires>2015-06-25T21:58:25.246276+00:00</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
However it doesn't add mustUnderstand
attribute and the TimeStamp
is blank. Does anyone have an idea how to ensure these fields are set correctly?