try { // here code which throws InvocationFailureException } catch (InvocationFailureException e) { Throwable rootCause = e.getRootCause(); if (rootCause instanceof AxisFault) { AxisFault axFault = (AxisFault)rootCause; // now extract information, e.g. axFault.getFaultDetails(); } }
org.w3c.dom.Element[] details = fault.getFaultDetails(); if (details != null && details.length > 0) { List<String> errors = new ArrayList<String>();
/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
Element[] details = af.getFaultDetails(); if (details != null) { for (int i = 0; i < details.length; i++) {
Element[] faultDetails = axisFault.getFaultDetails(); if (faultDetails != null) { if (soapConstants == SOAPConstants.SOAP12_CONSTANTS)
Element[] faultDetails = axisFault.getFaultDetails(); if (faultDetails != null) { if (soapConstants == SOAPConstants.SOAP12_CONSTANTS)
Element[] faultDetails = axisFault.getFaultDetails(); if (faultDetails != null) { if (soapConstants == SOAPConstants.SOAP12_CONSTANTS)