Hello, martin, thanks a lot for your quick answer, the solution you gave
me is in the wsdl, but is that the only way?
The thing is that I'm not writing the wsdl, it is created on the fly
from a POJO... so, there is a way to specify, I guess may be in
services.xml, the order I need?

btw, this how the complex type of the response is generated in the wsdl
that axis2 creates for me:

<xs:element name="ConsultaResponse">
  <xs:complexType>
    <xs:sequence>
       <xs:element minOccurs="0" name="return" nillable="true"
type="ax22:ConsultaResponse"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

As you can see there is not field declarations... I guess I can add them
if I write the wsdl.. but I would prefer to avoid that, if there is a
chance of keep me in just with the POJO and the services.xml file, that
would be great.


thanks ind advance


El vie, 14-08-2009 a las 13:57 -0400, Martin Gainty escribió:
> 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! Click here.
-- 
Ing. Miguel Angel Iglesias
Gerente de Producción
CellnPay SA de CV
Oficina: 52 (55) 55498918 ext 136
Cel: +52 (55)5530384897

Reply via email to