[Fedora-suds-list] MS Exchange help

Jared Eckersley jeckersley at gemini.edu
Wed Jul 21 00:46:53 UTC 2010


Hi All,

I am stuck. It seems I can not talk to my exchange server. Here is some code along with the error message:

ntlm = WindowsHttpAuthenticated(username='USER_NAME',password='XXX')
c = Client(url,transport=ntlm)

#version = Element('t:RequestServerVersion')
#version.set('Version', 'Exchange2010')
#c.set_options(soapheaders=version)

x = c.service.GetRoomLists()
print x

    attr = c.service.GetRoomLists()
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 539, in __call__
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 598, in invoke
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 633, in send
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 684, in failed
  File "build/bdist.macosx-10.6-universal/egg/suds/bindings/binding.py", line 238, in get_fault
suds.WebFault: Server raised fault: 'The request is valid but does not specify the correct server version in the RequestServerVersion SOAP header.  Ensure that the RequestServerVersion SOAP header is set with the correct RequestServerVersionValue.'

If I uncomment the t:RequestServerVersion section, this is the error I get:

    attr = c.service.GetRoomLists()
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 539, in __call__
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 598, in invoke
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 633, in send
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 690, in failed
Exception: (400, u'Bad Request')


Any help would be greatly appreciated!

- Jared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20100721/5629aa0a/attachment.html 


More information about the suds mailing list