[Soap-Python] Self referencing object & simpleContent question

Tsah Zelenka tsah at pheer.it
Tue Jul 26 22:46:59 CEST 2011


On Wed, 20 Jul 2011 19:44:21 +0200 (CEST)
antoine.humbert at free.fr wrote:

> To create a String type with attributes, I think you should use
> something like
> 
> class Foo(ComplexModel):
>    __extends__ = String
>    attr = XMLAttribute('xs:string')
> 
> This will give the correct definition in the wsdl but you won't be
> able to instantiate any object of this class. Moreover, I don't know
> how you could set the text of the element. I think there is a lack in
> the api for this.

If someone is interested, i made this. Seem to work.
https://github.com/tzelen/soaplib/commit/bbf5bb80ed2f8ce56223c2e8b1155840f4254ac1

Regards,
T.


More information about the Soap mailing list