Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zeep lib, encrypt soap body
#1
Hello

i am trying to use: https://python-zeep.readthedocs.io/en/master/wsse.html

Signing msg works fine:

from zeep import Client
from zeep.wsse.signature import Signature

client = Client(
    'http://test?wsdl',
    wsse=Signature("test.pem","test.pem",))

client.service.GetNetworkOperators()
Issue that I need to solve is how to encrypt body part like:

Output:
<Body> <xenc:EncryptedData Id="bodyID"> xenc:CipherData> <xenc:CipherValue>...</xenc:CipherValue> </xenc:CipherData> </xenc:EncryptedData> </Body>
thank you very much for help!
miha
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  encrypt data in json file help jacksfrustration 1 35 3 hours ago
Last Post: deanhystad
  Zeep AWS problem centorillion 2 1,697 Nov-10-2022, 09:36 PM
Last Post: Larz60+
  Encrypt and decrypt in python using own fixed key SriRajesh 3 4,625 Feb-20-2022, 01:18 PM
Last Post: dboxall123
  Trying to encrypt and decrypt password into a file rpizw 4 3,210 Aug-12-2020, 05:15 PM
Last Post: bowlofred
  encrypt entire project mattc 2 2,379 Jul-21-2020, 07:05 AM
Last Post: mattc
  Python zeep offline installation on RHEL akinmhmt 0 1,965 Mar-26-2020, 09:04 AM
Last Post: akinmhmt
  Paul Rubin p3.py lightweight encrypt/decrypt - is there a python3 version? mason28 0 1,567 Feb-19-2020, 03:38 AM
Last Post: mason28
  Parsing Soap XML response grootkarzijn 7 15,426 Jun-14-2019, 01:30 AM
Last Post: snippsat
  Need help understanding a couple of functions (encrypt,decrypt, int_to_bytes) xoani 0 1,967 Jun-09-2019, 03:25 PM
Last Post: xoani
  SOAP based webservice invoke mehrdadabedi 1 2,306 Mar-10-2019, 06:04 PM
Last Post: mlieqo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020