468,511 Members | 1,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

SOAPpy and http authentication

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
2 7577
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
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.

Similar topics

reply views Thread by Vivek | last post: by
reply views Thread by Harry George | last post: by
reply views Thread by elsarfhem | last post: by
reply views Thread by Sameer Deshpande | last post: by
reply views Thread by benboals | last post: by
9 posts views Thread by fabien.benard | last post: by
1 post views Thread by icius | last post: by
reply views Thread by pion | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.