Wednesday, May 19, 2010

Web Services faults caught from a Java client

If your WS returns you a fault, in Java this will be mapped to a

javax.xml.ws.soap.SOAPFaultException

which is filled with a detailedMessage 

Failed to invoke end component com.acme.dbaccess.CompanyDBWS (POJO), operation=insertCompany
 -> Failed to invoke method
 -> UNABLE_TO_EXECUTE_SQL


and a fault (name is SOAP-ENV:Fault) with QName {http://schemas.xmlsoap.org/soap/envelope/}Fault

No comments: