Hi I looked at https://issues.apache.org/jira/browse/TUSCANY-2967 last week that, after some discussion, ended up at a suggestion for converting system exceptions to XML in the case that they are thrown across XML based wire formats. Business exceptions would already be XML in this case. The advantage being that the sender at least gets some XML back rather than a serialized Java object which is somewhat opaque.
Two question. - should we do this? - if so what should the XML look like. ? I made a suggestion on the JIRA along the lines of... <serviceRuntimeException xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"> <message>...</message> <detail>...</detail> </serviceRuntimeException> Scott suggested we use a SOAP:Fault structure. <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>ORIGINAL_RUNTIME_EXC_MESSAGE</faultstring> <detail/> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> but go no further feedback so giving it a bump here. Simon
