On Monday, March 12, 2012 04:32:17 PM Néstor Boscán wrote:
> Hi Daniel
> 
> Thanks for the reply.
> 
> I used @WebFault and I'm getting now two exception classes. One empty
> exception class in the correct package, and one exception class in the
> service package. I would like to have my exception classes generated with
> their respective attributes in the correct package.

Would need a test case for this.  Definitely should only have a single 
exception being generated.   Are you sure they are both exceptions?

Most likely, the fault bean is generated in one and the exception is 
generated in the service package.  That is what I would have expected.

Dan


> 
> Regards,
> 
> Néstor Boscán
> 
> On Mon, Mar 12, 2012 at 2:50 PM, Daniel Kulp <[email protected]> wrote:
> > On Friday, March 09, 2012 04:11:01 AM Néstor Boscán wrote:
> > > Hi
> > > 
> > > I'm using CXF that comes with JBoss 6.1.0. I would like to define
> > > namespaces for my classes and exception classes. I defined @XmlType
> > > annotations for my classes and exception classes but when I publish
> > > them
> > 
> > I
> > 
> > > only get the namespace for the objects and not for the exceptions.
> > 
> > THe namespace for the faults would be on the @WebFault annotation.
> > 
> > > Is
> > > there a way to define this configuration outside the classes?
> > 
> > Not easily, no.   You can write a custom subclass of
> > org.apache.cxf.service.factory.AbstractServiceConfiguration that maps
> > everything any way you want, but that would be quite a bit of work.
> > 
> > > Regards,
> > > 
> > > Néstor Boscán
> > 
> > --
> > Daniel Kulp
> > [email protected] - http://dankulp.com/blog
> > Talend Community Coder - http://coders.talend.com
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to