SOAPpy how to

Edwin.Madari at VerizonWireless.com Edwin.Madari at VerizonWireless.com
Tue Aug 5 23:47:40 CEST 2008


unable to get past local proxy server with SOAPpy client. In the code below using 'thproxy' or 'httpproxy' variable for http_proxy fails.

from SOAPpy import WSDL

proxyuser='......'
proxypass='......
httpproxy="a.b.c.com:1234"
theproxy='http://'+proxyuser+':'+proxypass+'@'+httpproxy

wsdl='sample.wsdl'
#soap service provided by the soap server defined in the wsdl
server = WSDL.Proxy(wsdl, http_proxy=httpproxy)  #fails with SOAPpy.Errors.HTTPError: <HTTPError 407 Proxy Authentication required>
#server = WSDL.Proxy(wsdl, http_proxy=theproxy) #fails with socket.gaierror: (7, 'getaddrinfo failed')

a = server.aTestMethod( arg1, arg2, ....)
print a

any suggestions or hints any one..

thanks in advance
Edwin



The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080805/4e8aaa7f/attachment.html>


More information about the Python-list mailing list