Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
7
votes
2 answers

Python - Zeep SOAP Complex Header

I'd like to pass "Complex" Header to a SOAP service with zeep library Here's what it should look like FOO JAM I guess that I…
CaramuchoDotCom
  • 91
  • 1
  • 1
  • 5
6
votes
1 answer

Zeep client throws Service has no operation error

I am using zeep to call a SOAP webservice. It is throwing an error even if the method exists in the WSDL client = Client(self.const.soap_url) client.service.getPlansDetails(id) I get this error AttributeError: Service has no operation…
Ranjith Ramachandra
  • 10,399
  • 14
  • 59
  • 96
6
votes
0 answers

How to handle WSDL Operations not recognized by Zeep

I have a WSDL that zeep shows as having no operations, but there are operations in the WSDL when I pull it up on a browser. For reference, the WSDL requires a certificate. The WSDL:
EAA
  • 87
  • 1
  • 9
6
votes
0 answers

Create SOAP message with complex type inside AnyType using Python Zeep

I need to create a soap message that contains something like this: urn:oasis:names:tc:SAML:1.0:cm:holder-of-key …
roeland
  • 6,058
  • 7
  • 50
  • 67
6
votes
1 answer

Python AXL/SOAP w. Zeep. How to avoid duplicate dictionary keys?

I wrote this request: client.updateLdapAuthentication(**{'authenticateEndUsers': authenticateEndUsers, 'distinguishedName': distinguishedName, 'ldapPassword': ldapPassword, 'userSearchBase': userSearchBase, 'servers':{'server': {'hostName':…
6
votes
2 answers

how to send parameters in zeep client

I am using python zeep library and I am trying to send a request to a soap client, but I keep getting this error: ValueError: The String type doesn't accept collections as value This is the XML file of the WSDL client:
6
votes
2 answers

python soap zeep module get result

I'm getting a result from a SOAP API like that: client = zeep.Client(wsdl=self.wsdl, transport=transport) auth_header = lb.E("authenticate", self.login()) res = client.service.GetHouseProfile(region_id, page_number, reporting_period_id,…
Rainmaker
  • 10,294
  • 9
  • 54
  • 89
5
votes
1 answer

How to create an async zeep client with wsdl file?

I have code that uses zeep to create a soap client. My server does not return the wsdl file but i have it locally. The sycronous version works looks like this: import uuid from os import path import structlog import zeep logger =…
renzop
  • 1,194
  • 2
  • 12
  • 26
5
votes
1 answer

How do I get retry handling with python zeep? I'm using a requests retry session, but the exception is not handled

I'm using zeep. The service I am using generates timeout errors every now and then, and I want to use automatic retry functionality. I am trying to use a Requests retry session, but the timeout exception is not being caught and no retry is…
Tim Richardson
  • 6,608
  • 6
  • 44
  • 71
5
votes
3 answers

How to extract XML from zeep response

Suppose I use python zeep to execute a query against a server like this: from zeep import Client wsdl_url = "http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL" client = Client(wsdl_url) result =…
Marc
  • 3,386
  • 8
  • 44
  • 68
5
votes
3 answers

Is there an easy way to convert zeep response to json,pandas,xml?

I am using python 3.6 and zeep 3.4.0 Zeep returns raw data and i cannot convert it to xml/json/pandas object. I've tried to use bs4 to get table from the text1, no luck. Serialize text1 to get json, no luck too. from zeep import Client,…
mike
  • 51
  • 1
  • 3
5
votes
2 answers

Does someone have an example of Unit-Testing a SOAP API with Python Zeep and Mock?

I'm building a Python app that accesses a 3rd party SOAP API with Python-zeep. I want to implement some unit-tests using mocked responses as I don't always have a live server to run my tests against. I'm new to unit-testing and not quite sure where…
Paul T
  • 91
  • 1
  • 7
5
votes
2 answers

Zeep not recognizing all operations

When I do python -mzeep https://testingapi.ercot.com/2007-08/Nodal/eEDS/EWS/?WSDL the operations are blank. When I pull that up in a browser I can find many things under an tag. What am I missing? I'm not sure if this is relevant but…
Dean MacGregor
  • 11,847
  • 9
  • 34
  • 72
5
votes
2 answers

Parse WSDL with Zeep

I want to parse a WSDL file with Zeep and get out: All the operations Request xml messages for each operations Any examples on parsing the wsdl? I guess I should use zeep.wsdl and the parse_service method? /A
Andreas Blomqvist
  • 437
  • 1
  • 9
  • 22
5
votes
3 answers

zeep requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

I try to create SOAP Client with the help of zeep lib for python import os from zeep import Client from zeep.wsse.signature import Signature key_filename = "/etc/ssl/certs/cert.key.pem" cert_filename = "/etc/ssl/certs/cert.crt.pem" client =…
1
2
3
26 27