SOAPpy and http authentication
Odd-R.
oddr at home.no.no
Tue Aug 2 07:11:04 EDT 2005
I use the following piece of code to contact a webservice,
and read a wsdl file.
from SOAPpy import WSDL
from SOAPpy import URLopener
url= ' http://someserver/somewebservice
url1 = URLopener.URLopener(username='user',passwd='pass')
server=WSDL.Proxy(url1.open(url))
This yields no errors, and everyting is fine.
However, when I start calling the actual methods of
this webservice, I get this error
SOAPpy.Errors.HTTPError: <HTTPError 401 Unauthorized>
How can I avoid this?
Thanks in advance for all help!
--
Har du et kjøleskap, har du en TV
så har du alt du trenger for å leve
-Jokke & Valentinerne
More information about the Python-list
mailing list