SOAPFault fault = body.addFault();
QName faultCode = new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "Client");
fault.setFaultCode(faultCode);
fault.setFaultString("sample fault");
Detail detail = fault.addDetail();
Name deName = sf.createName("detailEntry");
SOAPElement detailEntry = detail.addDetailEntry(deName);
detailEntry.addTextNode("sample detail");
fault.setFaultActor("sample actor");
SOAPFaultException sfe = new SOAPFaultException(fault);