CXF cxf-api-2.0.6
Server: Jetty 6.1.9

I have some hibernate objects what should be marshaled, and if i get error
during this process - for example in lazy loading - i get very strange
output:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Body>
<ns1:findByCriteriaResponse xmlns:ns1="http://ws.pc2.takecharge.com/";>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Marshalling Error: No row with the given identifier exists:
[com.data.alert.AlertType#10]</faultstring>
</soap:Fault>
</ns1:findByCriteriaResponse>
</soap:Body>
</soap:Envelope>

Is there any ability to create normal response - Fault element inside Body -
not in sub tags? :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Marshalling Error: No row with the given identifier exists:
[com.data.alert.AlertType#10]</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

-- 
----

Best regards,

Sergey Pulyaev

-- 
View this message in context: 
http://www.nabble.com/Exception-while-marshalling-tp21033073p21033073.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to