JBoss Community

Resteasy unmarshall arraylist objects

created by Benqun zhang in JBoss Web Services - View the full discussion

the service sends a list of objects like:

<theObjects>

      <theObject>

        <attr1>v1</attr1>

        <attr2>w1</attr2>

     </theObject>

      <theObject>

        <attr1>v2</attr1>

        <attr2>w2</attr2>

     </theObject>

</theObjects>

 

one class is created with @XmlRootElement(name="theObject")

 

Then

 

ProxyFactory create the service:

List<theObject> getTheObjects();

 

I get unmarshall error:

org.jboss.resteasy.plugins.providers.jaxb.CollectionProvider.readFrom(CollectionProvider.java:164)

 

Please advice!

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community