467,080 Members | 921 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

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

SOAPpy and WSDL and basic authentication

Hi,

Can anyone provide me with sample code that will allow me to use
SOAPpy with a WSDL file using HTTP basic authentication? The only
thing I've been able to find on the net is SOAPpy.URLopener. However,
I am unclear what the relationship is between SOAPpy.URLopener and
SOAPpy.WSDL is.

Is it as straightforward as this?
from SOAPpy import WSDL
url = 'http://user:pa**@www.server.com/path/to/wsdl'
ssClient = WSDL.proxy(url)
ssClient.Test() # assuming Test is a SOAP-Action
Or do I need to use SOAPpy.URLopener like so? from SOAPpy import WSDL
from SOAPpy import URLopener
url = 'http://user:pa**@www.server.com/path/to/wsdl'
url1 = URLopener.URLopener(username='user',passwd='pass')
ssClient = WSDL.proxy(url1.open(url))
ssClient.Test() # assumption as above


Or do I need to do something completely different?

All help is much appreicated.

Vivek
Jul 18 '05 #1
  • viewed: 2273
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sameer Deshpande | last post: by
reply views Thread by benboals@gmail.com | last post: by
reply views Thread by Steve | last post: by
1 post views Thread by icius | last post: by
reply views Thread by marcello lussana | last post: by
1 post views Thread by sberry | last post: by
reply views Thread by pion | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.