You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by manish_goyal <ma...@infosys.com> on 2008/12/05 11:08:10 UTC
not getting custom message description in faultstring in SOAP
message
we have a requirement to create a custome exception message in
Envelope/Body/Fault/detail node.We are able to get the correct custom
message in "detail node". But we want to get the message description, for
eg:"Invalid date" in Envelope/Body/Fault/faultstring in soap message.
Example:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Fault occured</faultstring>
<detail>
<Custom message:"Invalid data", code:......../>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Required SOAP mesage should be:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid data</faultstring>
<detail>
<Custom message:"Invalid data", code:......../>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
we are throwing the exception "CustomException" using the CustomException
(String message, CustomExceptionType customException) .
Could anyone please provide a pointer to get this resolve?
--
View this message in context: http://www.nabble.com/not-getting-custom-message-description-in-faultstring-in-SOAP-message-tp20850937p20850937.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: not getting custom message description in faultstring in SOAP message
Posted by Daniel Kulp <dk...@apache.org>.
I just did a search over the entire codebase for the "Fault occured" string
below and didn't find it. What version of CXF are you using? If you
aren't using 2.1.3, I highly suggest upgrading to that.
Dan
On Friday 05 December 2008 5:08:10 am manish_goyal wrote:
> we have a requirement to create a custome exception message in
> Envelope/Body/Fault/detail node.We are able to get the correct custom
> message in "detail node". But we want to get the message description, for
> eg:"Invalid date" in Envelope/Body/Fault/faultstring in soap message.
> Example:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>Fault occured</faultstring>
> <detail>
> <Custom message:"Invalid data", code:......../>
> </detail>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> Required SOAP mesage should be:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>Invalid data</faultstring>
> <detail>
> <Custom message:"Invalid data", code:......../>
> </detail>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> we are throwing the exception "CustomException" using the CustomException
> (String message, CustomExceptionType customException) .
> Could anyone please provide a pointer to get this resolve?
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog