[Soap-Python] soaplib - python help
Burak Arslan
burak.arslan at arskom.com.tr
Sat Oct 16 12:48:16 CEST 2010
okay, first, stop bombarding the mailing list with your question. once
is enough.
On 10/15/10 21:18, mukkera harsha wrote:
>
> I am getting the following error.
>
> Error ::
> ----------
>
> for k, v in files.iteritems():
> AttributeError: type object 'AnyAsDict' has no attribute 'iteritems'
>
> Code ::
> ------------
>
> class Subworkflow(ClassSerializer):
> subworkflowid = String
> files = AnyAsDict
> for k, v in files.iteritems():
> base64.decode(v, open(k,"w"))
>
>
> Here "Subworkflow" class is a tiny class that has two identifiers
> subworkflowid and files.
>
> 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.
>
>
mukkera, i'm sorry but i do not have the faintest idea about what you're
trying to achieve. you are not passing anything to any function as far
as soaplib is concerned.
> [ I want to know , how Soaplib automatically handle the soap xml
> envelope for you and automatically turn the argument into an object of
> type Subworkflow( our class here ). ]
>
>
while i don't think you really mean what you wrote, i'll still answer
you: we have a site for that. http://github.com/arskom/soaplib
have a look here:
http://github.com/arskom/soaplib/blob/master/src/soaplib/type/clazz.py#L177
> I know that I dint code it properly, But I am not getting any idea of
> how to do that. I am a newbie.
>
>
it looks like you're too much of a newbie for this forum. try a more
python-centric forum for newbies for your questions.
burak
More information about the Soap
mailing list