I tried to add attachment to a sharepoint document library with this command:
result = client.service.AddAttachment("new doc","2","ab.ds","QUJDREVGR0hJSktMTU5PUA==") but i got this error: DEBUG:suds.client:sending to (http://portal:8080/rashno/_vti_bin/lists.asmx) message: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <ns0:Body> <ns1:AddAttachment> <ns1:listName>new doc</ns1:listName> <ns1:listItemID>2</ns1:listItemID> <ns1:fileName>ab.ds</ns1:fileName> <ns1:attachment>QUJDREVGR0hJSktMTU5PUA==</ns1:attachment> </ns1:AddAttachment> </ns0:Body> </SOAP-ENV:Envelope> DEBUG:suds.client:headers = {'SOAPAction': u'"http://schemas.microsoft.com/sharepoint/soap/AddAttachment"', 'Content-Type': 'text/xml; charset=utf-8'} DEBUG:suds.client:http succeeded: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring><detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Item does not exist. It may have been deleted by another user.</errorstring></detail></soap:Fault></soap:Body></soap:Envelope> Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/suds/client.py", line 542, in __call__ return client.invoke(args, kwargs) File "/usr/lib/python2.6/site-packages/suds/client.py", line 602, in invoke result = self.send(soapenv) File "/usr/lib/python2.6/site-packages/suds/client.py", line 643, in send result = self.succeeded(binding, reply.message) File "/usr/lib/python2.6/site-packages/suds/client.py", line 678, in succeeded reply, result = binding.get_reply(self.method, reply) File "/usr/lib/python2.6/site-packages/suds/bindings/binding.py", line 151, in get_reply self.detect_fault(soapbody) File "/usr/lib/python2.6/site-packages/suds/bindings/binding.py", line 182, in detect_fault raise WebFault(p, fault) suds.WebFault: Server raised fault: 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.' please help me, tnx -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ff2f5235-24aa-4f72-a14b-0bb496b9c98d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.