[Soap-Python] Problem with simpleContent
KulaPard
kulapard at gmail.com
Tue Nov 20 16:39:27 CET 2012
Hello
Can you please help me?
I need to realise this part of web-service:
----------------------------------------
<xs:element name="Params" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Param">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
----------------------------------------
to recieve message like this:
----------------------------------------
<ns1:Params>
<ns1:Param ns1:name="firstname">Blabla</ns1:Param>
<ns1:Param ns1:name="lastname">Blabovich</ns1:Param>
<ns1:Param ns1:name="age">20</ns1:Param>
</ns1:Params>
----------------------------------------
I tried to use Spyne with XmlAttribute, but it do not support primitive
types yet.
Any ideas how to realise this functionality? Maybe you can advise me other
libraries?
Maybe some hacks or tricks with Spyne?
Sorry for bad english :)
Taras
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20121120/84c0cc91/attachment.html>
More information about the Soap
mailing list