Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
0
votes
1 answer

Pass list argument to zeep method

I'm trying to call a soap method with zeep (v 3.4.0) and pass a list of objects to that method. Inspecting the xml presentation of the request shows an empty list. from lxml import etree from requests import Session from requests.auth import…
Andreas Sawatzki
  • 127
  • 2
  • 12
0
votes
2 answers

When hitting SOAP Request using zeep module then getting execption "The given SOAPAction None does not match an operation."

I am executing SOAP webservice using WS-Security #PAsswordDigest using Zeep module in python. But when hitting request then getting like "The given SOAPAction None does not match an operation." from zeep.wsse.username import UsernameToken …
0
votes
1 answer

Upgrading Python 2.7 to 3.7 and implementing zeep for SOAP calls

Upgrading to Python 3.7 and need to implement zeep for SOAP calls. I am running into this issue: AttributeError: 'Client' object has no attribute 'factory' Code: from zeep.client import Client class UpgradePython(object): def __init__(self,…
0
votes
1 answer

Forcing prepared requests from HTTPS back to HTTP Python Zeep client (wsdl https, binding needs to be http)

Currently working on using zeep for a client binding to an application that we do not control (so we cannot change its behavior). Unfortunately for me, the WSDL is hosted on a https:// page, while the binding itself ONLY support HTTP, so i cannot…
Marius
  • 186
  • 2
  • 13
0
votes
1 answer

zeep client exception. zeep.transport.session.cookies not propagating

I tried to create a zeep client and use it by two methods. 1) I tried to keep everything in a single module . i created the zeep client object and it was working fine while using a payload. 2) I created a method which returns a zeep client…
crazypaladin
  • 453
  • 4
  • 7
  • 17
0
votes
1 answer

Python - zeep - WSDL connection / how to go about it?

I have only been studying python for a week I need to connect to the WSDL service, I chose Python3 for this. Connection itself - i.e. simply filling in the login fields seems easy. I have a problem filling out a large form. How do you go about it?…
blackmoon
  • 324
  • 6
  • 17
0
votes
0 answers

How to fix "'str' object has no attribute 'keys'" in Python (Zeep module)?

UPDATE 05-09-2019: I still haven't been able to fix this, but I least I think I figured out where the problem is coming from. Apparently Zeep isn't able to determine the type for some elements, I imagine that's what's causing the error I described…
Luis Costa
  • 13
  • 5
0
votes
2 answers

How to fix an 'Invalid tag name' in WSDL request using Zeep?

When trying to access a WSDL service, I get the following error: ValueError: Invalid tag name 'Foo\\Bar\\Baz\\Etc\\V3Port' The port which is provided through the WSDL-link actually has single backslashes: 'Foo\Bar\Baz\Etc\V3Port' The ValueError…
0
votes
0 answers

DRF: Making external requests and building serializers

I'm using Django rest framework and on a POST request need to make an external request to a SOAP server which outputs weather reports. I receive something like this to my API { 'city': 'Manchester', 'country': 'GB', 'locality': 'EU' } Now…
0
votes
1 answer

zeep SOAP client unexpected double base64 encoding

Please help me understand why value in my request gets encoded to base64 twice: relevant parts of wsdl, that I use:
Hello
  • 57
  • 1
  • 6
0
votes
1 answer

AttributeError: 'lxml.etree.QName' object has no attribute 'resolve'

I am trying to use python Zeep library in order to play with some SOAP API. But I can not figure out what is my issue when trying to create the client. Below is a sample of my code: from requests import Session from requests.auth import…
KrazyMax
  • 939
  • 6
  • 16
0
votes
1 answer

How to pass HashMap as parameter in python web service client

I have a Java web service which has a web method with a HashMap as parameter. Now I'm using python to call that service. I use zeep library for web service client. I can call that function but the server doesn't receive my HashMap data. Server says…
Phương Vũ
  • 86
  • 1
  • 6
0
votes
2 answers

Acessing a database using zeep

I am trying to programmatically retrieve information from a database(BRENDA) using Zeep. The following is the code. import zeep import hashlib wsdl = "https://www.brenda-enzymes.org/soap/brenda.wsdl" password =…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
2 answers

how to handle fault exception in python while using zeep library to handle SOAP communications

I am trying to catch the FaultException while using zeep library for SOAP Communications. I am able to do this when zeep librabry receives xml from client and internally parse and returns dictionary by default. While parsing the response which…
0
votes
1 answer

How to test a SOAP service in python?

In Python, i create a soap service with the SPYNE libray. The code is the following: import logging logging.basicConfig(level=logging.DEBUG) from spyne import Application, rpc, ServiceBase, Unicode from spyne.protocol.xml import XmlDocument from…
alejomarchan
  • 368
  • 1
  • 10
  • 20