soap - Order of unbounded elements in xmlschema sequence -


i'm developing application uses webservices (soap 1.2). i'm interested in knowing if can rely on order of unbounded elements in xmlschema sequence. here definition of sequence in wsdl i'm using.

<xsd:complextype name="idlist">   <xsd:sequence>     <xsd:element maxoccurs="unbounded" minoccurs="0" name="id" type="xsd:integer"/>   </xsd:sequence> </xsd:complextype> 

does give me kind of guarantee on order of elements? excerpt of associated soap message:

<web:globalrecipientids>   <!--zero or more repetitions:-->   <web:id>1</web:id>   <web:id>15</web:id>   <web:id>7</web:id> </web:globalrecipientids> 

does mean receiving end treat in order appears in soap message? depends on implementation of receiving end? if does, generated receiving end using wsdl2java apache axis generate java code wsdl file. can tell me specific this?

the order of xml elements significative - regardless of schema - e.g.

<web:globalrecipientids>   <web:id>1</web:id>   <web:id>15</web:id>   <web:id>7</web:id> </web:globalrecipientids> 

and

<web:globalrecipientids>   <web:id>15</web:id>   <web:id>1</web:id>   <web:id>7</web:id> </web:globalrecipientids> 

are 2 different xml, , xml tools (should) preserve , recognize order of elements.

having said that, not guarantee 'the receiving end treat in order appears in soap message' - depends on receiving end xml. receives ordered list of ids, if (for example) puts ids in dictionary or other hashed structure order lost.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -