Hi Jared,
Den 23/07/2010 kl. 09.22 skrev Jared Eckersley:
I was able to manually remove the python-ntlm library and reinstall
and got
it working again.
Great. Could you try my script again and see if it works for you?
createitem = Element('CreateItem')
[...]
attr = c.service.CreateItem(createitem)
CreateItem() takes as arguments the elements within createitem, i.e.
'saveditemfolderid' and 'items'. You shouldn't create the
'createitem' element. If you look at your XML, you have the CreateItem tag twice:
Your namespace usage is also funky. You need to clean that up if you get more 'Invalid
request' messages.
Finally, you can't use the factory methods, since CreateItem expects the attribute
MessageDisposition, and Suds doesn't support that without the patch in ticket #21.
Generate the full XML instead (including headers) and inject it:
c.service.CreateItem(__inject={'msg':xml})
Thanks,
Erik