Hey,

On 09/21/16 14:58, David Mugnai wrote:
> Hi all,
>
> I need to replicate this wsdl using spyne
>
> <xs:complexType name="MyType">
>     <xs:simpleContent>
>         <xs:extension base="xs:string">
>             <xs:attribute name="version" type="xs:string"/>
>         </xs:extension>
>     </xs:simpleContent>
> </xs:complexType>

You seem to be looking for XmlData.

See here:
https://github.com/arskom/spyne/blob/0f587b2d606b54e41fc5cc3d33b51cc3b324a2ca/examples/xml/utils.py

If you run that file you can see the produced schema.

Does it help?

Best,
Burak
_______________________________________________
Spyne community mailing list
people@spyne.io
http://lists.spyne.io/listinfo/people

Reply via email to