python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Missing mustUnderstand="1"

Open hmlinaric opened this issue 3 years ago • 1 comments

I'm using zeep 4.0.0

And signing soap using:

sign = BinarySignature('/etc/pki/tls/certs/xxxx.pem', '/etc/pki/tls/certs/xxxx.pem') session = Session() session.cert = '/etc/pki/tls/certs/xxxx.pem' transport = Transport(session=session) client = Client('http://192.168.62.125/init_main.wsdl', wsse=sign, transport=transport) ... ... service.test()

At the end I get this XML:

<soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope"> soap-env:Header <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <Signature ... ... ...

I'm missing soap-env:mustUnderstand="1" in wsse:Security .

Have can I add this. My SOAP server is requesting that.

hmlinaric avatar Apr 20 '21 18:04 hmlinaric

Hi, Did you found the solution for it? I'm facing the same issue.

JayantJain720 avatar Jul 15 '21 11:07 JayantJain720