Hi,

I was able to figure it out. No need to have an @Asset class if the array
contains standard Java classes or primitives. Following is the array class
you need:

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "intArray")
public class IntArray {

    @XmlElement(name = "number")
    private int[] array;

    @Produces(MediaType.APPLICATION_ATOM_XML)
    public int[] getArray() {
        return array;
    }

    @Consumes(MediaType.APPLICATION_ATOM_XML)
    public void setArray(int[] array) {
        this.array = array;
    }
}



--
View this message in context: 
http://apache-wink-users.3471013.n2.nabble.com/How-to-send-an-array-using-XML-tp7572727p7572732.html
Sent from the Apache Wink Users mailing list archive at Nabble.com.

Reply via email to