Which is the best Python library for sending SOAP requests

Feb 3, 2024 ยท 1 min read

The zeep library is the easiest way to make SOAP requests in Python. To install:

pip install zeep

Then import zeep and create a client pointing to the WSDL URL:

import zeep
client = zeep.Client('http://www.example.com/wsdl')

Now you can call SOAP operations like regular Python methods:

response = client.service.GetStatus('params')

The zeep library handles all the underlying SOAP plumbing for you. It generates Python types from the WSDL, serializes and deserializes requests/responses, and raises Python exceptions on errors. This makes it simple to focus on the integration logic rather than SOAP specifics.

For more power and flexibility, consider the suds-jurko library. But for most use cases, zeep provides an easy way to consume SOAP web services.

Browse by tags:

Browse by language:

The easiest way to do Web Scraping

Get HTML from any page with a simple API call. We handle proxy rotation, browser identities, automatic retries, CAPTCHAs, JavaScript rendering, etc automatically for you


Try ProxiesAPI for free

curl "http://api.proxiesapi.com/?key=API_KEY&url=https://example.com"

<!doctype html>
<html>
<head>
    <title>Example Domain</title>
    <meta charset="utf-8" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
...

X

Don't leave just yet!

Enter your email below to claim your free API key: