[Soap-Python] Attachments as soap request

2012-12-17 Thread Gopalakrishna Bhat
Hi all, I am trying to use spyne to build a service that uploads a file. Following the example at https://github.com/arskom/spyne/tree/master/examples/file_manager I have the following code class MyService(ServiceBase): @rpc(Unicode, Unicode, spyne.model.binary.File.customize(min_occurs=1, nullab

Re: [Soap-Python] Attachments as soap request

2012-12-17 Thread Burak Arslan
Hi, First, please update to the latest version of Spyne. I did not add support for the File type to Soap as the Xml Schema standard doesn't have a File primitive. You can have binary data sent into Spyne code via SOAP using the ByteArray (==base64binary) type. By the way, Spyne's MTOM code

Re: [Soap-Python] Attachments as soap request

2012-12-17 Thread Burak Arslan
On 12/17/12 13:55, Gopalakrishna Bhat wrote: > Changed File to be ByteArray but still the file value is null Hi, See here for a working example: https://github.com/plq/spyne/compare/9c890e556d6af2eba5e37d7351e5475d93f838ce...plq:master Does it help? Best, Burak