Hi Jeff,
I'm not sure what the wsdl is for Zimbra. Here's what I've found though:
This is some other user's site so I am not responsible for the garish
color scheme there. The SOAP docs are here:
I'm not really sure what info you need in that regard, so I apologize if
I am sending the wrong information. Here's my short Python test script:
<code>
from suds.client import Client
import urllib2
auth_handler = urllib2.HTTPBasicAuthHandler()
auth_handler.add_password(realm="Test",
uri="zimbra.ourwebsite.com",
user="username", passwd="password")
opener = urllib2.build_opener(auth_handler)
urllib2.install_opener(opener)
urllib2.urlopen("zimbra.ourwebsite.com")
client =
Hey Mike,
Welcome to suds!
It's kind of hard to diagnose the problem without more information.
Maybe your Zimbra server is using http authentication? Is there a
login() method you should be calling first?
If you can send me your wsdl and a code snip, I can try and help you
further.
Browse here to subscribe
https://www.redhat.com/mailman/listinfo/fedora-suds-list .
Regards,
Jeff
https://fedorahosted.org/suds/
Mike Driscoll wrote:
> Hi,
>
> I am trying to connect to the soap process on our corporate Zimbra
> webmail server with suds 0.3.1. For some reason, It always gives me
> the following traceback:
>
> Traceback (most recent call last):
> File "v:\PythonPackages\Development\zimbra v2\<string>", line 1, in
> <module>
> File
> "c:\python25\lib\site-packages\suds-0.3.1-py2.5.egg\suds\client.py",
> line 67, in __init__
> File
> "c:\python25\lib\site-packages\suds-0.3.1-py2.5.egg\suds\client.py",
> line 369, in __init__
> File
> "c:\python25\lib\site-packages\suds-0.3.1-py2.5.egg\suds\wsdl.py",
> line 166, in __init__
> File
> "c:\python25\lib\site-packages\suds-0.3.1-py2.5.egg\suds\sax\parser.py",
> line 118, in parse
> File
> "c:\python25\lib\site-packages\suds-0.3.1-py2.5.egg\suds\sax\parser.py",
> line 131, in urlopen
> File "c:\Python25\Lib\urllib2.py", line 124, in urlopen
> return _opener.open(url, data)
> File "c:\Python25\Lib\urllib2.py", line 387, in open
> response = meth(req, response)
> File "c:\Python25\Lib\urllib2.py", line 498, in http_response
> 'http', request, response, code, msg, hdrs)
> File "c:\Python25\Lib\urllib2.py", line 425, in error
> return self._call_chain(*args)
> File "c:\Python25\Lib\urllib2.py", line 360, in _call_chain
> result = func(*args)
> File "c:\Python25\Lib\urllib2.py", line 506, in http_error_default
> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 401: no authtoken cookie
>
> I am using the suds.client.Client(url) method as specified in the
> docs. Is there some undocumented way to pass a cookie in with the url
> or something? I am using Python 2.5.2 on Windows XP and I think the
> Zimbra server is running on Ubuntu (if that matters). I didn't see a
> way to subscribe to the list, so please CC any answers to me. Thanks!
>
> Mike
>
> _______________________________________________
> fedora-suds-list mailing list
> fedora-suds-list(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/fedora-suds-list