Search code examples
djangosoappysimplesoap

Send SOAP Request with Django


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


Solution

  • One way is to use the Suds library in your view: https://fedorahosted.org/suds/

    Documentation: https://fedorahosted.org/suds/wiki/Documentation