public static boolean singleProtocolMatches(String name, String protocol) {
        if (JaxWsConstants.SOAP11_HTTP_TOKEN.equals(name)) {
            return "http://schemas.xmlsoap.org/wsdl/soap/http".contains(protocol)
                   || "http://schemas.xmlsoap.org/soap/".contains(protocol);
        } else if (JaxWsConstants.SOAP11_HTTP_MTOM_TOKEN.equals(name)) {
            return "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true".contains(protocol)
                   || "http://schemas.xmlsoap.org/soap/?mtom=true".contains(protocol);
        } else if (JaxWsConstants.SOAP12_HTTP_TOKEN.equals(name)) {
            return "http://www.w3.org/2003/05/soap/bindings/HTTP/".contains(protocol)
                   || "http://schemas.xmlsoap.org/wsdl/soap12/".contains(protocol);
        } else if (JaxWsConstants.SOAP12_HTTP_MTOM_TOKEN.equals(name)) {
            return "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true".contains(protocol)
                   || "http://schemas.xmlsoap.org/wsdl/soap12/?mtom=true".contains(protocol);
        } else if (JaxWsConstants.XML_HTTP_TOKEN.equals(name)) {
            name = "http://www.w3.org/2004/08/wsdl/http";
        } else if ("http://schemas.xmlsoap.org/wsdl/soap/http".equals(name) ||
                   "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true".equals(name) ||
                   "http://www.w3.org/2003/05/soap/bindings/HTTP/".equals(name) ||
                   "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true".equals(name) ||
                   "http://www.w3.org/2004/08/wsdl/http".equals(name)) {
            return true;
        }
        return name.contains(protocol);
    }
public static boolean singleProtocolMatches ( String name , String protocol ) { if ( JaxWsConstants . SOAP11_HTTP_TOKEN . equals ( name ) ) { return "http://schemas.xmlsoap.org/wsdl/soap/http" . contains ( protocol ) || "http://schemas.xmlsoap.org/soap/" . contains ( protocol ) ; } else if ( JaxWsConstants . SOAP11_HTTP_MTOM_TOKEN . equals ( name ) ) { return "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true" . contains ( protocol ) || "http://schemas.xmlsoap.org/soap/?mtom=true" . contains ( protocol ) ; } else if ( JaxWsConstants . SOAP12_HTTP_TOKEN . equals ( name ) ) { return "http://www.w3.org/2003/05/soap/bindings/HTTP/" . contains ( protocol ) || "http://schemas.xmlsoap.org/wsdl/soap12/" . contains ( protocol ) ; } else if ( JaxWsConstants . SOAP12_HTTP_MTOM_TOKEN . equals ( name ) ) { return "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true" . contains ( protocol ) || "http://schemas.xmlsoap.org/wsdl/soap12/?mtom=true" . contains ( protocol ) ; } else if ( JaxWsConstants . XML_HTTP_TOKEN . equals ( name ) ) { name = "http://www.w3.org/2004/08/wsdl/http" ; } else if ( "http://schemas.xmlsoap.org/wsdl/soap/http" . equals ( name ) || "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true" . equals ( name ) || "http://www.w3.org/2003/05/soap/bindings/HTTP/" . equals ( name ) || "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true" . equals ( name ) || "http://www.w3.org/2004/08/wsdl/http" . equals ( name ) ) { return true ; } return name . contains ( protocol ) ; }
@param name
@param protocol
@return