Los indicadores de la orden se utilizan para definir la pedido de los
elementos.Todo el indicador
El indicador especifica que los elementos del niño pueden aparecer en
cualquier orden, y que cada elemento del niño debe ocurrir solamente
una vez:
por ejemplo:
<xs:element name="person">
<xs:complexType>
<xs:all>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
Nota: Al usar el indicador usted puede fijar el indicador a 0 o a 1 y
el indicador se puede fijar solamente a 1 (y se describen más
adelante).
El indicador especifica que un elemento u otro del niño puede ocurrir:
<xs:element name="person">
<xs:complexType>
<xs:choice>
<xs:element name="employee" type="employee"/>
<xs:element name="member" type="member"/>
</xs:choice>
</xs:complexType>
</xs:element>
El indicador especifica que los elementos del niño deben aparecer en una orden
específica:<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
http://www.w3schools.com/Schema/schema_complex_indicators.asp
Saludos Cordiales desde EEUU!
Martin Gainty
______________________________________________
Respete por favor las derechas del remitente y del recipiente de esta
transmisión y no altere ni modifique la transmisión en cualquier forma.
Gracias
> Subject: field order in a complex type
> From: [email protected]
> To: [email protected]
> Date: Fri, 14 Aug 2009 11:30:59 -0500
>
> Hello, I'm back with another noob question(I didn't solve the previous,
> but apparently the client can live with the format of the response I am
> sending).
> I have been looking for a way to sort the fields of a complex type in
> the response, but I haven't found anything.
>
> I have a bean who contains the response of a web services, something
> like this:
>
> public class ConsultaResponse {
>
> private String referencia;
> private String facturador;
> private String estatus;
> private String referencia1;
> private String referencia2;
> private String referencia3;
> private String referencia4;
> private String fecha;
> private String importe;
> private String referencia5;
>
>
> /**
> *
> * getters and setters...
> *
> */
>
> }
>
> ... and I need to send the response in the order you can see in the
> declaration of the fields... there is something I can write in the
> services.xml, or elsewhere, to make that happen?
>
> thanks
>
>
> --
> Ing. Miguel Angel Iglesias
> Gerente de Producción
> CellnPay SA de CV
> Oficina: 52 (55) 55498918 ext 136
> Cel: +52 (55)5530384897
>
_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM