Need help with SOAPpy -- how to supply user credentials?

R

Roy Smith

I just got SOAPpy 0.11.6 running under Python 2.3.5. I can do some
simple stuff like:

from SOAPpy import WSDL
wsdlFile = 'http://myserver/soap/XPlanner?wsdl'
server = WSDL.Proxy(wsdlFile)
print server.methods.keys()

The problem is, this (not surprisingly) prompts for a username and
password on the console. When I type them in, it works fine, but I'd
like to supply them instead of getting prompted interactively.

The SOAPpy distribution has a URLopener class which looks like it does
what I want, but I can't figure out how to tell WSDL.Proxy to use that
class instead of the default. What's the secret?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top