Boolean hasFault = response.getSOAPBody().hasFault();
Message message;
try {
SOAPBindingData bindingData = new SOAPBindingData(response);
if (hasFault) {
SOAPFaultInfo faultInfo = new SOAPFaultInfo();
faultInfo.copyFaultInfo(response);
bindingData.setSOAPFaultInfo(faultInfo);
}
Integer status = (Integer)_dispatcher.getResponseContext().get(MessageContext.HTTP_RESPONSE_CODE);
if (status != null) {
bindingData.setStatus(status);