Hi Folks,

I have a wsdl with some top level string elements. I've also got a heap of
xsd's defining the the rest of the service which are supposed to go in these
top level string elements.
Cxf does exactly what it should do when i give the raw xml to the top level
string elements and replaces the characters with valid xml entities, which
the service won't accept.

So I'm modifying the wsdl to create a valid service and I've switched the
string elements to xs:any elements but now i'm running into the Marshalling
error.
org.apache.cxf.interceptor.Fault: Marshalling Error: class
some.package.Request nor any of its super class is known to this context.


Does anyone know how i provide cxf with the details to marshal the objects
created in the seperate xsds (which are in seperate packages)?
Manually using a JAXBContext i can do this but i don't know how to provide
the package details to cxf.

JAXBContext context = JAXBContext.newInstance("some.package");
Marshaller marshaller = context.createMarshaller();


Any ideas would be greatly welcomed?

Cheers,


Jack

Reply via email to