if (soapVersion.equals(SOAPConstants.SOAP_1_1_PROTOCOL)) {
responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP11ResponseMessage)));
} else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL)) {
responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP12ResponseMessage)));
} else
throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "]");
responseSoapMessage.saveChanges();
return responseSoapMessage;
}