Posts

Showing posts with the label jaxb2-maven-plugin

Jaxb Binding with List returned in web service response

Image
Clash Royale CLAN TAG #URR8PPP Jaxb Binding with List returned in web service response I am developing a jax-ws client, I am trying to handle an ArrayList returned as a response, but i had always empty list. Returned list is NOT empty, I am sure that WebService provider is returning data in that list, I checked that using SoapUI. there is generated client related files: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ArrayOfFact", propOrder = { "item" }) public class ArrayOfFact { protected List<Fact> item; public List<Fact> getItem() { if (item == null) { item = new ArrayList<Fact>(); } return this.item; } } ArrayOfFacts class generated by wsimport it's the same class generated before. The XML response I receive in SOAPUI : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:...