Hi, i have a cxf service client which sends requests to a service over cxf-JMS-transport. I activated schamavalidation to ensure, that the service-response is valid, which works pretty well, but i don't get the unmarshalling-exceptions. The exception shows up in the logfilee, but the only indication for the exceptionwithin the code is the responseobject which is null in that case.
Is there any way to pass this exception through the framework to the calling code? I need to catch this exception somehow to get the errormessage: 15:57:24,649 ERROR [STDERR] 19.08.2009 15:57:24 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Unmarshalling Error: cvc-length-valid: Value '1' with length = '1' is not facet-valid with respect to length '2' for type 'ReturnCodeType'. at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:622) at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:527) at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:114) at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:188) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645) ... Thanks Markus -- View this message in context: http://www.nabble.com/Getting-Exceptions-during-Schema-Validation-of-Responses-tp25045606p25045606.html Sent from the cxf-user mailing list archive at Nabble.com.