Hi Folks,
Further to the recent discussions on this issue
(http://marc.theaimsgroup.com/?l=soap-user&m=99356898708775&w=2).
I need to transmit application-specific error codes from server to client.
My understanding of the SOAP spec (http://www.w3.org/TR/SOAP/#_Toc478383507)
is that one should include application-specific codes in the detailEntries
of the fault if, and only if, the problem was caused by the client data.
If the client data was good, no detailEntries should be present and thus all
other server-side problems should be reported via an extension of the
faultCode (e.g. "SOAP-ENV:Server.Application.DatabaseConnectionLost" etc?)
e.g. Assuming the client passes an invalid parameter value:
faultCode = "SOAP-ENV:Server" DetailEntries="InvalidParameter"
e.g. Assuming the client data is good but a server-side db problem occurred:
faultCode = "SOAP-ENV:Server.Application.DatabaseConnectionUnavailable"
DetailEntries=""
Is this way of handling errors correct?
Any comments?
Thanks - Adam