Open JayantJain720 opened 3 years ago
Hello @JayantJain720,
there you go :
`from zeep import xsd
security_header = xsd.Element('{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security', xsd.ComplexType([xsd.Attribute('mustUnderstand', xsd.String())]))
security_header_value = security_header (mustUnderstand='true')
client.service.PRODUCT(PRODUCT_MASTER=masterdata, LGNUM='12', _soapheaders=[security_header_value]) ` May I ask you a question regarding the BinarySignature ? In my case it appears that I don't have both certificate and key file? Where did you get them ?
Thanks,
Hi @gdemonda , Thanks for the reply.
You can generate the certificate and key file using openssl - https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl
Or you can ask the client to provide them. Hope this helps.
I want my XML request to look like this -
However the output I'm getting from zeep is like this -
How can I include xmlns:wsu and SOAP-ENV:mustUnderstand="1" in the xml generated by zeep?
My code is -