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.

Reply via email to