You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by James Mao <ja...@iona.com> on 2006/10/12 10:17:32 UTC
Fault Message
I'm wondering if the String getMessage() in
org.apache.cxf.interceptor.Fault can be changed to List<String> getMessage()
The previous one assumed that there is only one line of the message, the
latter will allow us to put multiple lines into the fault message.
Because in SOAP12 Fault, the SOAP Reason element allow one or *more*
Text element.
Thoughts?
- james.
Re: Fault Message
Posted by James Mao <ja...@iona.com>.
Sounds good ;)
Cheers,
James.
> James Mao wrote:
>
>> I'm wondering if the String getMessage() in
>> org.apache.cxf.interceptor.Fault can be changed to List<String>
>> getMessage()
>> The previous one assumed that there is only one line of the message,
>> the latter will allow us to put multiple lines into the fault message.
>> Because in SOAP12 Fault, the SOAP Reason element allow one or *more*
>> Text element.
>>
>> Thoughts?
>>
>> - james.
>
> Good catch. That sounds good to me. Although I might suggest having a
> getMessage() which returns the first String in the list and a
> getMessages() which returns List<String>.
>
> - Dan
>
Re: Fault Message
Posted by Dan Diephouse <da...@envoisolutions.com>.
James Mao wrote:
> I'm wondering if the String getMessage() in
> org.apache.cxf.interceptor.Fault can be changed to List<String>
> getMessage()
> The previous one assumed that there is only one line of the message,
> the latter will allow us to put multiple lines into the fault message.
> Because in SOAP12 Fault, the SOAP Reason element allow one or *more*
> Text element.
>
> Thoughts?
>
> - james.
Good catch. That sounds good to me. Although I might suggest having a
getMessage() which returns the first String in the list and a
getMessages() which returns List<String>.
- Dan
--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com