private static SOAPFactory _getFactory(Protocol protocol) {
SOAPFactory soapFactory;
if (protocol == Protocol.soap11) {
soapFactory = new SOAP11Factory();
} else if (protocol == Protocol.soap12) {
soapFactory = new SOAP12Factory();
} else if (protocol == Protocol.rest) {
// For REST, create a SOAP 1.1 Envelope to contain the message
// This is consistent with Axis2.
soapFactory = new SOAP11Factory();
} else {