With the JAXB 2.1/JAX-WS 2.1 stuff, you should be able to add something like:

@XmlSeeAlso({some.package.Request.class})

to the SEI or Impl and that would add that class to the JAXBContext.  
Actually, if that package has an ObjectFactory, it's best to do:
@XmlSeeAlso({some.package.ObjectFactory.class})


Dan


On Tuesday 12 August 2008 3:25:31 pm Jack Nuzbit wrote:
> 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



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to