Hi,
When I return a list of products each product is not marshalled as I expect.
Here is Product class:
@XmlType(name = "product")
public class Product implements java.io.Serializable { ... }
Here is web method:
@WebResult(name="product_list")
@Get
@Path("/products")
public List<Product> getProducts();
But result is:
<ns2:product_list><*item*><productCode>ABC</productCode><productDesc>This is
product
ABC</productDesc><productId>8</productId>*</item>**<item>*<productCode>Computer</productCode><productDesc>Desktop
Computer</productDesc><productId>9</productId></item>
I was hoping to see item replaced with product as I have marked it with
@XmlType. do I need to use some other annotation ?
Regards,
Miten.
--
View this message in context:
http://cxf.547215.n5.nabble.com/xml-marshalling-not-picking-up-XmlType-tp5664777p5664777.html
Sent from the cxf-user mailing list archive at Nabble.com.