| | |
Auth Object
![]() |
•
•
Join Date: Nov 2008
Posts: 58
Reputation:
Solved Threads: 0
Some languages like C# create an Auth object to authenticate themselves on a soap server.
for example
how can you do this with python?
for example
Python Syntax (Toggle Plain Text)
cpLatestBrief.authValue = new auth(); cpLatestBrief.authValue.username = "username"; // your aql username cpLatestBrief.authValue.password = "password"; // your aql password
how can you do this with python?
•
•
Join Date: Nov 2008
Posts: 58
Reputation:
Solved Threads: 0
i am using SOAPpy but have no idea how to do the auth object. I have tried doing
and i get nothing. From the company i am trying to connect to they are saying there is authentication errors
Python Syntax (Toggle Plain Text)
from SOAPpy import WSDL print "Content-type: text/html\n" wsdlFile = 'http://gw1.aql.com/soap/sendservice.php?WSDL' HTTPTransport.setAuthentication('username','password') server = WSDL.Proxy(wsdlFile, transport=HTTPTransport) print server.ApiVersion()
and i get nothing. From the company i am trying to connect to they are saying there is authentication errors
I've never used SOAPpy myself, but there's a chapter about it in my favorite Python learning book: Dive Into Python Chapter 11
•
•
Join Date: Nov 2008
Posts: 58
Reputation:
Solved Threads: 0
i have been using that tutorial, but it's aimed at using google. The authentication happens by using an API key. I need to use and Auth object.
If i do something like
all the method keys are printed out but as soon as i put in some http authentication nothing is displayed
Anymore ideas?
If i do something like
Python Syntax (Toggle Plain Text)
from SOAPpy import WSDL wsdlFile = 'http://gw1.aql.com/soap/sendservice.php?WSDL' server = WSDL.Proxy(wsdlFile) print server.methods.keys()
Python Syntax (Toggle Plain Text)
wsdlFile = 'http://gw1.aql.com/soap/sendservice.php?WSDL' HTTPTransport.setAuthentication('adamplowman','AdAMicMAN') server = WSDL.Proxy(wsdlFile, transport=HTTPTransport) print server.methods.keys()
![]() |
Similar Threads
- null pointer exception --- urgent (Java)
- Win32 generic host (Viruses, Spyware and other Nasties)
- Windows xp freezes (Windows NT / 2000 / XP)
- A whole lot of nasties...HJT file (Viruses, Spyware and other Nasties)
- PHP/MySQL Developer(s), Los Angeles CA, Mid-Wilshire (Web Development Job Offers)
- Users management (PHP)
- loading roles from DB to auth cookie (ASP.NET)
- computer infected...can someone help me out with log? (Viruses, Spyware and other Nasties)
Other Threads in the Python Forum
- Previous Thread: Memory game
- Next Thread: Simon Game
| Thread Tools | Search this Thread |
alarm ansi anydbm app assignment backend beginner binary bluetooth character cipher cmd coordinates customdialog cx-freeze data decimals development directory dynamic exe feet file float format function generator getvalue gnu graphics halp handling heads homework http ideas input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame pymailer python queue random recursion recursive schedule screensaverloopinactive script slicenotation sqlite ssh statistics string strings sudokusolver text thread time tlapse tuple ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib xlwt






