[Soap-Python] Big file transfer with rpclib
Vladimir Rutsky
rutsky.vladimir at gmail.com
Fri Apr 20 14:56:31 CEST 2012
On 04/20/2012 11:32 AM, Burak Arslan wrote:
> On 04/19/12 17:39, Vladimir Rutsky wrote:
>> Is HttpClient should work?
>
> nope. I did not finish that because curl/wget work just fine for me.
>
> here's the example:
> https://github.com/plq/rpclib/tree/master/examples/file_manager
>
> note that it's 2012 and firefox can't upload files bigger than 2GB.
> https://bugzilla.mozilla.org/show_bug.cgi?id=215450
>
> so it's best to test this with chrome.
Thank you for this example!
I decided to go with Django + upload/download files as more familiar
solution, but I will look forward for SOAP MTOM/SwA support in rpclib.
P.S. Provided example doesn't work in 2.7.0-beta, probably because
differences in 2.7.0-beta and your branch:
Traceback (most recent call last):
File "./server.py", line 57, in <module>
class FileServices(ServiceBase):
File "./server.py", line 58, in FileServices
@rpc(Mandatory.Unicode, _returns=ByteArray)
AttributeError: type object 'Mandatory' has no attribute 'Unicode'
Best wishes,
Vladimir Rutsky
More information about the Soap
mailing list