StringEntity contentEntity = new StringEntity(requestEnvelope);
post.setEntity(contentEntity);
if (requestEnvelope.contains(SOAP_1_1_NAMESPACE)) {
soapAction = soapAction != null ? "\"" + soapAction + "\"" : "";
post.addHeader(PROP_SOAP_ACTION_11, soapAction);
post.addHeader(PROP_CONTENT_TYPE, MIMETYPE_TEXT_XML);
client.getParams().setParameter(PROP_CONTENT_TYPE, MIMETYPE_TEXT_XML);
} else if (requestEnvelope.contains(SOAP_1_2_NAMESPACE)) {
String contentType = MIMETYPE_APPLICATION_XML;
if (soapAction != null) {
contentType = contentType + PROP_DELIMITER + PROP_SOAP_ACTION_12 + "\"" + soapAction + "\"";