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