On Apr 30, 2013, at 3:48 AM, G.Long <jde...@gmail.com> wrote: > Hi :) > > I'm trying to use a webservice generated with CXF 2.5. The methods of my > webservice take an EObject as parameter. The problem is that I always get the > following error: > > javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Unable to create > an instance of xxx.yyy.myObjectImpl... > > my model is : > > (interface) myObject > (abstract class) myObjectImpl > (class) myPObjectImpl > > I read a lot of topics about jaxb and annotations (using @XmlSeeAlso, > @XmlRootElement) but I didn't find the right solution :/ > > Currently, my interface has the following annotation: > @XmlJavaTypeAdapter(myObjectImplAdapter.class).
I don't think that should be on the interface. I believe that needs to be on the parameter itself or on the method itself is used as a return type. Dan > My abstract class has : > > @XmlAccessorType(XmlAccessType.FIELD) > @XmlRootElement > @XmlType(name = "myObjectImpl") > > And the webservice interface has : @XmlSeeAlso({myObjectImpl.class,...}) > > I don't know if there is something to do with the class myPObjectImpl... > > Is anything wrong with these annotations? I would like my webservice to use > only objects of type myObject. > > Thank you :) > > > -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com