}
if( (SOAPConstants.VERSION_1_2.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP12_HTTP)) ||
(SOAPConstants.VERSION_1_1.equals(version) && protocol.equals(SOAPConstants.PROTOCOL_URI_SOAP11_HTTP)) )
{
StringAttr contEncoding = (StringAttr) ((WSDLElement)getParent())
.getExtensionAttribute(HTTPConstants.Q_ATTR_CONTENT_ENCODING);
return contEncoding != null ? contEncoding.getString() : null;
}
else
{
return null;
}