private static void doSOAP12Encoding(MessageContext faultMsgContext,
FaultData data, String rmNamespaceValue) throws SandeshaException {
SOAPEnvelope faultEnvelope = faultMsgContext.getEnvelope();
if (faultEnvelope == null)
throw new SandeshaException(SandeshaMessageHelper.getMessage(
SandeshaMessageKeys.soapEnvNotSet));
SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SandeshaUtil
.getSOAPVersion(faultEnvelope));
SOAPFault fault = faultEnvelope.getBody().getFault();
if (fault == null)
throw new SandeshaException(SandeshaMessageHelper.getMessage(
SandeshaMessageKeys.noFaultCode,
faultEnvelope.toString()));
SOAPFaultCode faultCode = fault.getCode();
SOAPFaultValue codeValue = faultCode.getValue();