Questions tagged [zeep]

Zeep: Python SOAP client

Zeep: Python SOAP client http://docs.python-zeep.org

395 questions
65
votes
1 answer

Python sign SOAP request using BinarySecurityToken

I'm trying to sign a SOAP request with a certificate using python. I've tried python-zeep and its Signature methods and suds with py-wsse. Both don't give me the expected result. Zeep gives me:
pawni
  • 761
  • 5
  • 3
24
votes
2 answers

Introspecting a WSDL with Python Zeep

I am attempting to use Zeep to describe the operations and types in a given WSDL, so that a program knows the operation names, their parameter names, the parameter types, and parameter attributes. This info will be used to dynamically generate a UI…
jesse_galley
  • 1,676
  • 4
  • 18
  • 30
18
votes
2 answers

SSLError("bad handshake") when trying to access resources Custom Certificates and Requests

I want to program webservices to exchange data in Python using Zeep. I can access services only with my certificate. I have a PFX certificate, but I converted it to two .pem files. My code: from zeep import Client from zeep.wsse.signature import…
lopow
  • 181
  • 1
  • 1
  • 5
16
votes
4 answers

How to fix SSL issue SSL_CTX_use_certificate : ca md too weak on Python Zeep

my code was working before until i got this error whenever i make SOAP requests to Frontierlink Web Service. File "/home/venv/lib/python2.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue raise…
John Dollosa
  • 173
  • 1
  • 1
  • 10
13
votes
1 answer

Creating the xml format to pass to zeep

I'm new to zeep. I have the following that works very well: import zeep from zeep.cache import SqliteCache from zeep.transports import Transport wsdl = 'https://emaapitest.eset.com/Services/v2015_1/MSPService.svc?singleWsdl' transport =…
Kevin Sheahan
  • 141
  • 2
  • 6
13
votes
1 answer

How to use a complex type from a WSDL with zeep in Python

I have a WSDL that contains a complex type like so:
user197674
  • 748
  • 2
  • 7
  • 22
11
votes
5 answers

How to parse SOAP XML with Python?

Goal: Get the values inside tags and print them out. Simplified XML below.
Clone
  • 3,378
  • 11
  • 25
  • 41
10
votes
2 answers

How can I type-hint a nested object in Python?

I'm currently doing a integration with WSDL, and such decided to go with Python using the Zeep library. I'm trying to model the response with mypy, so that it works with VSCode's Intellisense, as well as some giving me hints when I'm doing careless…
Tan Jia Ming
  • 435
  • 1
  • 6
  • 22
8
votes
3 answers

zeep - disable warning "Forcing soap:address location to HTTPS"

I'm using the zeep package to access some API on https, and on every connection it prints out a warning (to stderr): Forcing soap:address location to HTTPS Some searching I did turned up that the line responsible is this, which implies that this…
Ofer Sadan
  • 11,391
  • 5
  • 38
  • 62
8
votes
0 answers

Zeep ValueError: Invalid value given to _soapheaders

I am trying to do a SOAP call through Zeep. The WSDL does not contain the header definitions but the SOAP server expects the following header:
8
votes
2 answers

python zeep: send un-escaped xml as content

I think what I am trying to do is pretty much like github issue in zeep repo --- but sadly there is no response to this issue yet. I researched suds and installed and tried -- did not even get sending parameter to work and thought zeep seems better…
Junchao Gu
  • 1,815
  • 6
  • 27
  • 43
7
votes
3 answers

Python, Zeep response to pandas

I am tryng to conenct to a SOAP webservice and use pandas to put in on a table. Zeep give me this list: [{ 'ssPeca': '103', 'ssQtd': '1', 'ssUn': 'un' }, { 'ssPeca': '291A', 'ssQtd': '8', 'ssUn': 'un' }, { 'ssPeca':…
Joao barreira
  • 91
  • 1
  • 6
7
votes
1 answer

How can I use an additional xsd with python zeep?

I need to implement a SPML interface, which in the end is performing a SOAP request over HTTP(s). I have a wsdl for it which boils down to this:
7
votes
1 answer

Getting zeep.exceptions.ValidationError: Missing element for method that worked with suds

I'm porting over code that was developed with suds 0.6 over to zeep 2.4.0. Previous suds code: client = Client(WSDLfile, proxy=proxy, faults=True) config = client.factory.create('perUserDataExportConfiguration') config.param1 =…
raphael
  • 2,762
  • 5
  • 26
  • 55
7
votes
0 answers

Python Zeep - How to use sequence -> choice

I am trying to use Zeep with a choice inside a sequence but I cannot manage to make this work. This is my code: #create trade ref element tradeReference_element = client.get_element('ns4:tradeReference') trade_ref_object =…
1
2 3
26 27