* @see org.apache.woden.wsdl20.extensions.soap.SOAPEndpointExtensions#getHttpAuthenticationScheme()
*/
public HTTPAuthenticationScheme getHttpAuthenticationScheme() {
Endpoint endpoint = (Endpoint) getParent();
Binding binding = endpoint.getBinding();
if(binding == null) {
return null; //the wsdl is invalid TODO - remove this check? (extensions require valid wsdl?)
}
SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
.getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
String version = soapBindExt.getSoapVersion();
URI protocol = soapBindExt.getSoapUnderlyingProtocol();
if(protocol == null) {
return null;