you didnt instanciated the HttpConnection Object Check the docs.
https://docs.python.org/2/library/httplib.html#httpconnection-objects Em qua, 18 de mar de 2015 às 13:24, Nivin Paul <[email protected]> escreveu: > I need to call a web service that written using SOAP from a django > application , to do that i used the following code but i got error as in > the attached screenshot. Please help > > > import httplib > from xml.dom import minidom > > http.request("POST", "/path/to/my/webservice", body=xml, headers = { > "Host": "myservername", > "Content-Type": "text/xml; charset=UTF-8", > "Content-Length": len(xml) > }) > > print minidom.parseString(http.getresponse().read()) > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/254af2fd-3406-4b79-a45c-a7c1fffb35d3%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/254af2fd-3406-4b79-a45c-a7c1fffb35d3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOs3Lp6yRFDFDgA3jfYkcT8%2BuVq_1qXAVDUdZWUTcN9rTOdovg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

