Re: Import error - No module named http

2015-03-18 Thread Mario Gudelj
And you should probably use suds for soap based apis. On 19/03/2015 4:24 am, "Andrew Farrell" wrote: > Actually, please listen to Guilherme over me; He seems to have correctly > spotted the omission. > > On Wed, Mar 18, 2015 at 11:45 AM, Andrew Farrell > wrote: > >> So it seems like the problem

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
Actually, please listen to Guilherme over me; He seems to have correctly spotted the omission. On Wed, Mar 18, 2015 at 11:45 AM, Andrew Farrell wrote: > So it seems like the problem is that you are doing `import http` on line > 24 of /home/akhil/Documents/NIVIN/NIVIN/svn/CrossFraudet/ > branches

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
So it seems like the problem is that you are doing `import http` on line 24 of /home/akhil/Documents/NIVIN/NIVIN/svn/CrossFraudet/ branches/V2.1.0/crossfraudet/cdrimport/views/fraud_summary_view.py rather than `import httplib`. Python2 doesn't have a module in the standard library named `http`, onl

Re: Import error - No module named http

2015-03-18 Thread Guilherme Leal
Nivin and Shinto, You are forgetting to instantiate the HTTPConnection object: Exemple: *import httplib* *from xml.dom import minidom* *http = httplib.HTTPConnection("http://mydomain.com ")* *http.request("POST", "/path/to/my/webservice", body=xml, headers = {* *"Host

Re: Import error - No module named http

2015-03-18 Thread Nivin Paul
ImportError at /cdrimport/settings/fraudsummary/disconnect/ No module named http Request Method: GET Request URL: http://192.168.12.59:8080/cdrimport/settings/fraudsummary/disconnect/?id=3 Django Version: 1.6.4 Exception Type: ImportError Exception Value: No module named http Except

Re: Import error - No module named http

2015-03-18 Thread SHINTO PETER
iam to getting same error Traceback (most recent call last): File "test_soap.py", line 4, in http.request("POST", "/path/to/my/webservice", body=xml, headers = { NameEr

Re: Import error - No module named http

2015-03-18 Thread Andrew Farrell
Hello Nivin, Could you please hit the "switch to copy-and-paste view" link at the top of the tradeback and copy that? The bottom of a traceback is often the most useful for debugging. Feel free to paste it or relevant code at github gist and send the link if you want to

Re: Import error - No module named http

2015-03-18 Thread Guilherme Leal
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 escreveu: > I need to call a web service that written using SOAP from a django > application , to do that i used