Well, I know I ran into some problems with the soap class generation with a
strict wsdl requirement, since it's in dictionary sorted order by default.
My solution was essentially:

from spyne.util.odict import odict
from spyne.model.primitive import String, Integer, Double
from spyne.model.complex import ComplexModelBase
od = odict()
od['One] = String
od['Two'] = Double
od['Three'] = Integer
MyClass = ComplexModelBase.produce('http://namespace.com', 'MyClass', od)

Hope it helps,

- Joni


2013/6/5 Francisco Meza <[email protected]>

> hi
>
> is it just me or the order of element in the wsdl generated by spyne is
> not the standard one defined in http://www.w3.org/TR/wsdl
>
> from spyne I get:
>
> definition
>    types
>    message
>    service
>    portType
>    binding
>
> in http://www.w3.org/TR/wsdl I see (in http://www.w3.org/TR/wsdl#A4.1) a
> schema that indicates the sequence should be
>
> definition
>    types
>    message
>    portType
>    binding
>    service
>
> this causes problems with strict client tools like the one provided by SAP
>
> Francisco
>
> _______________________________________________
> Soap mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/soap
>
>
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to