Thanks...
We have used a similar method to send data as string and its working! But
the string is of size 250kb and we don't want that large data to be sent as
a single string
On Tue, Jun 11, 2013 at 5:27 PM, Matthew Ashton
<matthew.ashton3(a)gmail.com>wrote:
I'm assuming you've properly set up the client to make the
web service
call? I'll look into the ticket you linked.
On Tue, Jun 11, 2013 at 7:43 AM, Surya Kasturi <kasturisurya(a)gmail.com>wrote:
> I am using with_soap_attachment() mentioned at
>
https://fedorahosted.org/suds/ticket/350
>
> def sendFile(self, vehicleId, filePath):
> uploadFileMethod = self.client.service.uploadFile
> attachment_id = hashlib.sha256(filePath).hexdigest()
> attachment_content = (filePath, attachment_id)
> with_soap_attachment(uploadGpxFileMethod, attachment_content)
>
> this what my method is..
>
> Now, I am getting the error
>
> AttributeError: 'Client' object has no attribute 'location'
> Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
>
> SoapAttachment.py", line 75, in with_soap_attachment
>
> So, how to fix it?? I need to attach file and send it..As this interface
> needs to be done asap it would be nice if someone can let me know what is
> the issue here
>
> thanks
>
>
> _______________________________________________
> suds mailing list
> suds(a)lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/suds
>