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).
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 :)



Reply via email to