[IndiChix] [BangPypers] [x-post] weekly python dojo meetups @bangalore.

mukkera harsha harsha.mukkera at gmail.com
Fri Oct 15 15:34:31 UTC 2010


Hi,
I want to know , how Soaplib automatically handle the soap xml envelope for
us and automatically turn the argument into an object of type Subworkflow.
--------------------------------------------
class Subworkflow(ClassSerializer):
        class types:
                subworkflowid = String
                filenames = Array(String)
                filedata = Array(String)
                for i in filedata:
                        base64.decode(i, open(filenames[i],"w"))

---------------------------------------------------
I know that I dint code it properly, But I am not getting any idea of how to
do that. I am a newbie.

Here Subworkflow is the class I defined. It is a tiny class that has 3
identifiers.

Subworkflowid, filenames, filedata.

I am NOT passing in raw arguments to your function, I am passing in an
actual
Subworkflow object... that soaplib will have already automatically
constructed for me.

And for each element in the filedata, I have to base64_decode it.

I am using soaplib as SOAP server and SUDS as soap client.

Your help  will be greatly appreciated.

>
>

-- 
Harshavardhan Reddy Mukkera.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.linuxchix.org/pipermail/indichix/attachments/20101015/929d5fbf/attachment.htm>


More information about the IndiChix mailing list