From: Juraj M. <jur...@as...> - 2009-02-15 15:44:33
|
Hello. No. I didn't mean that. I wrote it incorrectly. I don't want to change order of attributes. I want to define ordert of elements. In WSDL you can define complex type using 'sequence' or 'all'. In case of 'sequence' you must send elements in pre-defined order in WSDL. In case of 'all' the order does not matter. I want to send request in predefined order of elements - the order in this case is - server, operation: <QuickLogin> <server>janko</server> <operation>hrasko</operatio> </QuickLogin> The problem with NamedParamBinding is that it takes parameters for request python dictionary. Dictionary does not have pre-defined ordering of keys. So it can send request, like this: <QuickLogin> <operation>hrasko</operatio> <server>janko</server> </QuickLogin> That's wrong, because server side parser (which I does not control) requires order: server, operation. My question is. Is there any simple way how to say to NamedParamBidnding - send elements in defined order? Juraj Richard Salz wrote: > You mean like > <foo bar=''...' baz='...' > compared with > <foo baz='...' bar='...' > ? > > You can't do that. You shouldn't need to do that. You'll have to modify > the source if you really need to do that. Your time is probably better > spent getting the receiver to become a real XML parser. :) > > /r$ > > -- > Visiting Member, IBM Academy > STSM, DataPower Chief Programmer > WebSphere DataPower SOA Appliances > http://www.ibm.com/software/integration/datapower/ > > |