Send SOAP Request with Django

user2954587 picture user2954587 · Sep 18, 2014 · Viewed 9.9k times · Source

First time using SOAP and wondering how can I make a simple SOAP request using django? I haven't yet tried setting up pysimplesoap, I first just want to make a connection to the webservice.

I have a string of the XML header and body

xml_header = ""
xml_body = ""

How can I send this request and wait for a response?

EDIT: I'm using Python 3.4 for SUDS is not an option

Answer

janos97 picture janos97 · Dec 16, 2016

Another library worth checking out is Zeep.

Some of the more complex SOAP transactions are virtually impossible with SUDS, but are simple within ZEEP.

http://docs.python-zeep.org/en/master/