Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
3
votes
2 answers

Zeep - turn off host verification

I am using Python zeep to make a SOAP request. For SSL verification, HostHeaderSSLAdapter was added as my URL https://dev_alias:8096/some_soap, contains an alias rather than the actual host name. This below code with requests works OK. So I would…
E.K.
  • 4,179
  • 8
  • 30
  • 50
3
votes
2 answers

ImportError: cannot import name 'Client' from 'zeep'

I need to work with API via wsdl and I'm trying to figure out how zeep module works. The module was installed with "pip install" and it shows the same error every time. ImportError: cannot import name 'Client' from 'zeep' from zeep import…
johnny k
  • 37
  • 1
  • 6
3
votes
1 answer

How to set default xmlns with zeep in Python?

I want to use zeep to make some API calls. The expected output is:
heyhey
  • 31
  • 1
  • 3
3
votes
1 answer

Python Zeep - Multiple WSDL Files

I have two separate WSDL files that are provided to me to interact with a service, one WSDL file just provides a method to login and generate an access token. The other WSDL file provides the methods to actually interact with the system. If I…
Douglas Plumley
  • 565
  • 5
  • 21
3
votes
2 answers

How to change endpoint address in SOAP requests with ZEEP

I am using ZEEP to make SOAP requests and it is easy and works great. The problem is that the endpoint URL (in the WSDL) isn't correct. I can solve the problem by editing the WSDL directly, but this isn't scalable. I reviewed the ZEEP…
user8571377
  • 31
  • 1
  • 3
3
votes
0 answers

Python SOAP call with requests lib no working as expected

I have been trying to do a soap call using python and requests library, cause it is to much flexible on the xml file definition. I have tried with zeed and sud, unfortunately zeed doesnt let me to define portypes before I do the instance creation…
Carlos
  • 4,299
  • 5
  • 22
  • 34
3
votes
1 answer

Unable to connect to SOAP API with proxy setting

I'm using requests and zeep library to connect to a server using SOAP API. If I manually set the internet proxy, I can connect. However, I intend to use proxy setting in my script to automate the process. I'm using the following block of code to do…
Toufiq
  • 61
  • 1
  • 9
3
votes
0 answers

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

I have just installed ‘zeep’ (used suds before), with the command: pip install lxml==3.7.3 zeep I am getting the error: self.item_type = self.item_type.resolve() AttributeError: 'lxml.etree.QName' object has no attribute 'resolve' The same wsdl…
kostisalex
  • 51
  • 3
3
votes
1 answer

How to set soap headers in zeep when header has multiple elements

I am trying to use python zeep to connect to a soap service ( using wsdl ). Following is the soap-ui generated XML for an operation. However I am finding it difficult to identify how to set soap headers. In this case, we have multiple XML…
Anish
  • 1,490
  • 1
  • 13
  • 13
3
votes
1 answer

Creating XML sequences with zeep / python

I am using zeep (Python 3.6) to interface with a SOAP API, and working with a WSDL schema which contains this section:
majackson
  • 2,823
  • 6
  • 22
  • 38
3
votes
2 answers

Python zeep - Invalid tag name when binding names starts with a dot (.)

I'm trying to get zeep to open a WSDL that has bindings with dot in the beginning of the name and get a ValueError: Invalid tag name '.USXMLWSSoapBinding' error message. The WSDL defines the binding name as:
3
votes
2 answers

How parse soap Fault.detail(lxml.etree._Element) from zeep python library

I'm trying get error detail, when I'm calling soap service with zeep. How parse zeep.exceptions.Fault.detail? It's return lxml.etree._Element. I'm using this code: try: client = Client(wsdl=self.__wsdl) response =…
Jason McDonough
  • 147
  • 2
  • 10
3
votes
0 answers

Using additional XSD in python-zeep

I'm want to call web service, it returns a base64 encoded string, which contains XML document. Here's part of wsdl.
3
votes
1 answer

How do you specify the SOAP server URL in Python zeep

I'm using the Python zeep library but the documentation seems a bit thin. I'd like to be able to specify the URL of the SOAP server but at the moment I can only do this by hacking the WSDL file.
Nick Keighley
  • 161
  • 2
  • 5
2
votes
1 answer

Changing the service URL when accessing SOAP via a proxy using Zeep

Within my application, I need to access an internal (corporate) Soap API. For this access I have used Zeep so far. But now the access has to go through a proxy and the actual address of the API has to be converted to a virtual address of the…
Brian
  • 55
  • 4