Hi, 

I am using the camel-soap project, and working on some exception handling.

I have a SoapFault response which is below.

When camel processes the response, I receive a classcast exception on Line
195 of the Soap11DataFormatAdapter class 
ie I get the following error at line: JAXBElement<?> detailEl =
(JAXBElement<?>) detailList.get(0);

java.lang.ClassCastException:
com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to
javax.xml.bind.JAXBElement type: 


Is there any easy way to fix this? do some custom marshalling or something
else, I have been unsuccesful so far.


<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>A timeout occurred during processing</faultstring>
<faultactor>/account/*********</faultactor>
<detail><text>Timeout. Broker TEST_BROKER did not provide a response within
the specified time interval (60 seconds)</text></detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-SoapFault-marshalling-classcast-exception-tp5781986.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to