You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sergey Beryozkin <sb...@progress.com> on 2009/06/11 11:28:43 UTC
Re: JAX-RS JAXB Problem
Hi,
No problems at all. What exactly is not working ?
I suspect you're seeing some sort of IllegalAnnotationException may be ?
Try to make sure your Customer class looks like this :
public class Customer() {
private List<EmailAddress> email;
public void setEmail(List<EmailAddress> email) {...}
public List<EmailAddress> getEmail() {...}
}
adding getters/setters migth help
cheers, Sergey
>
> Hi I am sorry if this has been answered I can't find a solution. But if I
> have a class
>
> public class Customer() {
>
> private List<EmailAddress> email;
> }
>
> So I cannot get this to work. I have tried @XmlWrapper @XmlElement and many
> others but can't get it to work. How can I get this work work class
> EmailAddresss looks like
>
> public class EmailAddress() {
> private String email;
> private String otheremail;
> }
>
> I am using restful web service and just want to pass this information to the
> client. Should be pretty easy I would think but can't get it working.
>
> --
> View this message in context: http://www.nabble.com/JAXB-Problem-tp23969581p23969581.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>