| | |
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 |
abrupt ansi anti apache approximation array assignment avogadro backend beginner binary bluetooth book builtin calculator character code converter countpasswordentry curved customdialog dan08 dictionaries dictionary dynamic examples exe file float format function gnu graphics gui heads homework ideas import inches input java launcher library line lines linux list lists loop mouse mysqlquery number numbers numeric output parsing path phonebook plugin pointer port prime programming progressbar projects py2exe pygame python random recursion redirect scrolledtext software statictext statistics string strings sum table terminal text textarea thread threading time tlapse trick tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable wordgame write wxpython xlib






