responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP11RequestMessage)));
} else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL)) {
responseSoapMessage.getSOAPPart().setContent(new StreamSource(new StringReader(SOAP12RequestMessage)));
} else
throw new SOAPException("Unrecognized SOAP version [" + soapVersion + "]");
responseSoapMessage.saveChanges();
return responseSoapMessage;
}
public static Source createResponseSOAPSource(String soapVersion, Service.Mode mode) throws SOAPException {
if (mode.equals(Service.Mode.MESSAGE)) {