Benson,

The "message" parameter is used to set the "faultString" element in the 
on the wire fault.    It should be set to something useful.   That said, 
I THINK we could add a constructor that doesn't have it, you would just 
get some default behavior in the faultString. (whatever the default 
Exception.getMessage() returns, I think the class name?)

Feel free to log a bug request.  (and a patch would be nice too ;-)

Dan

On Thursday 30 August 2007, Benson Margulies wrote:
> I was hoping for one more constructor on the exception object
>
>
> FaultException(FaultObject, Throwable);
>
> If that's not consistent with the standard, then I won't waste
> everyone's time with a JIRA. It would never be something important.
>
> > -----Original Message-----
> > From: James Mao [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 30, 2007 10:43 PM
> > To: [email protected]
> > Subject: Re: wsdl2java and faults
> >
> > Hi,
> >
> > The artifacts generated by wsdl2java is JAX-WS 2.0 compliant, so
> > everything generated by the tool is defined in the spec.
> > Not really know the exact request here.
> > Do you mind send your sample wsdl, and tell us what kind of
> > artifacts you're looking for
> >
> > If there's bug to fix or improvements we can make, you are welcomed
> > to file jira on https://issues.apache.org/jira/browse/CXF
> >
> > Regards,
> > James
> >
> > > The objects generated by wsdl2java for faults seem unnecessarily
>
> clumsy.
>
> > > I get a POJO + annotations that corresponds to the fault type.
> > > Call
>
> it
>
> > > 'X'.
> > >
> > >
> > >
> > > Then I get XFault.
> > >
> > >
> > >
> > > To construct an XFault over a Throwable, I need to provide a
> > > message
>
> ---
>
> > > (String message, X x, Throwable cause)
> > >
> > >
> > >
> > > Could there not be no-message constructor? All the information I
>
> want to
>
> > > transmit is inside the x object.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to