SWS-432
This commit is contained in:
@@ -140,5 +140,9 @@ class AxiomSoap11Body extends AxiomSoapBody implements Soap11Body {
|
||||
faultReason.addAttribute(langAttribute);
|
||||
}
|
||||
|
||||
public SoapFault getFault() {
|
||||
SOAPFault axiomFault = getAxiomBody().getFault();
|
||||
return axiomFault != null ? new AxiomSoap11Fault(axiomFault, getAxiomFactory()) : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -98,5 +98,9 @@ class AxiomSoap12Body extends AxiomSoapBody implements Soap12Body {
|
||||
}
|
||||
}
|
||||
|
||||
public SoapFault getFault() {
|
||||
SOAPFault axiomFault = getAxiomBody().getFault();
|
||||
return axiomFault != null ? new AxiomSoap12Fault(axiomFault, getAxiomFactory()) : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.xml.transform.Source;
|
||||
|
||||
import org.apache.axiom.soap.SOAPBody;
|
||||
import org.apache.axiom.soap.SOAPFactory;
|
||||
import org.apache.axiom.soap.SOAPFault;
|
||||
|
||||
import org.springframework.ws.soap.SoapBody;
|
||||
import org.springframework.ws.soap.SoapFault;
|
||||
|
||||
/**
|
||||
* Axiom-specific version of <code>org.springframework.ws.soap.Soap11Body</code>.
|
||||
@@ -58,11 +56,6 @@ abstract class AxiomSoapBody extends AxiomSoapElement implements SoapBody {
|
||||
return getAxiomBody().hasFault();
|
||||
}
|
||||
|
||||
public SoapFault getFault() {
|
||||
SOAPFault axiomFault = getAxiomBody().getFault();
|
||||
return axiomFault != null ? new AxiomSoap11Fault(axiomFault, getAxiomFactory()) : null;
|
||||
}
|
||||
|
||||
protected final SOAPBody getAxiomBody() {
|
||||
return (SOAPBody) getAxiomElement();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user