By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,409 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,409 IT Pros & Developers. It's quick & easy.

SOAPpy and http authentication

P: n/a
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
Aug 2 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2005-08-02, Odd-R. <od**@home.no.no> wrote:
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))


Is it possible to call WSDL.Proxy with a String? Then you could build
the URL als http://user:pass@someserver/somewebservice. This works
with SOAPpy.SOAPProxy.

Lutz
Aug 2 '05 #2

P: n/a
2 Aug 2005 11:38:51 GMT, Lutz Horn <lu*******@gmx.de>:
On 2005-08-02, Odd-R. <od**@home.no.no> wrote:
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))


Is it possible to call WSDL.Proxy with a String? Then you could build
the URL als http://user:pass@someserver/somewebservice. This works
with SOAPpy.SOAPProxy.


Yes, you can actually call it that way, but then the wsdl retrieval is
done using the authentication, but all the service calls are done
without. This is something, that is also puzzling me. So far I can
perfectly live with SOAPProxy, but it would be nice to solve this
puzzle.

Best regards,
Oliver

--
Oliver Andrich <ol************@gmail.com> --- http://fitheach.de/
Aug 2 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.