← Back to team overview

ladon-dev-team team mailing list archive

[Question #246040]: How to control order of elements in LadonType

 

New question #246040 on ladon:
https://answers.launchpad.net/ladon/+question/246040

I've a custom ladon type which looks like this:

class Message(LadonType):
    msg_from = PORTABLE_STRING
    reply1 = PORTABLE_STRING
    reply2 = PORTABLE_STRING
    department = PORTABLE_STRING
    date = PORTABLE_STRING

Now when I generate WSDL, it appears something like this:

<xsd:complexType name="Message">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="date" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="department" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="msg-from" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="reply1" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="reply2" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

That is, order of the elements is changed in the generated WSDL. Also, in the soap response, there is no way to control each individual elements of a complex structure. 

Can I control and set a fixed order of elements inside a complex structure LadonType object?

-- 
You received this question notification because you are a member of
Ladon Developer, which is an answer contact for ladon.