2

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

user2954587
  • 4,661
  • 6
  • 43
  • 101

2 Answers2

5

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/

janos97
  • 51
  • 1
  • 5
3

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

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

Brandon Taylor
  • 33,823
  • 15
  • 104
  • 144
  • Hi @Brandon, I am using suds for requesting async SOAP api it is working fine but not getting any response from it. hr is my Q.:-http://stackoverflow.com/questions/39227719/asynchronous-soap-api-call-using-python please help in that, Thanks you – Vikram Singh Chandel Aug 31 '16 at 07:44
  • Opening the links gives out this message - "fedorahosted.org was retired on March 1st, 2017". – Rahul Jun 24 '21 at 04:49