Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 65394 invoked from network); 1 Feb 2007 18:53:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 18:53:43 -0000 Received: (qmail 79256 invoked by uid 500); 1 Feb 2007 18:53:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79012 invoked by uid 500); 1 Feb 2007 18:53:48 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 79001 invoked by uid 500); 1 Feb 2007 18:53:48 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 78998 invoked by uid 99); 1 Feb 2007 18:53:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 10:53:48 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 10:53:41 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 7FE341A981A; Thu, 1 Feb 2007 10:53:21 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r502315 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java Date: Thu, 01 Feb 2007 18:53:21 -0000 To: axis2-cvs@ws.apache.org From: barrettj@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070201185321.7FE341A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: barrettj Date: Thu Feb 1 10:53:20 2007 New Revision: 502315 URL: http://svn.apache.org/viewvc?view=rev&rev=502315 Log: Temporarily remove validation between WSDL binding type and JAX-WS binding type annotation pending resolution of TCK test issues. Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java?view=diff&rev=502315&r1=502314&r2=502315 ============================================================================== --- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java (original) +++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/validator/EndpointDescriptionValidator.java Thu Feb 1 10:53:20 2007 @@ -27,6 +27,8 @@ import org.apache.axis2.jaxws.description.EndpointDescriptionJava; import org.apache.axis2.jaxws.description.EndpointDescriptionWSDL; import org.apache.axis2.jaxws.description.EndpointInterfaceDescription; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** * @@ -36,6 +38,8 @@ EndpointDescriptionJava endpointDescJava; EndpointDescriptionWSDL endpointDescWSDL; + private static final Log log = LogFactory.getLog(EndpointDescriptionValidator.class); + public EndpointDescriptionValidator(EndpointDescription toValidate) { endpointDesc = toValidate; endpointDescJava = (EndpointDescriptionJava) endpointDesc; @@ -63,14 +67,23 @@ } private boolean validateWSDLBindingType() { - // TODO: The getWSDLBindingType is not getting the correct value; it needs to return the - // value + // REVIEW: We are currently bypassing these validation checks because there are several + // JAX-WS CTS tests that fail this validation. Those tests are currently being + // challenged. Pending resolution of that challenge, we disable this validation check. + // Otherwise, the EAR containing the invalid modules will not load, causing the entire + // TCK to fail. Once this issue is resolved, the commented out calls to + // addValidationFailure(...) should be uncommented; + // the TEMPORARY* variables, and the Log call should be removed. + boolean TEMPORARY_disableThisValidation = true; + String TEMPORARY_validation_message = null; + boolean isBindingValid = false; String bindingType = endpointDesc.getBindingType(); String wsdlBindingType = endpointDescWSDL.getWSDLBindingType(); if (bindingType == null) { // I don't think this can happen; the Description layer should provide a default - addValidationFailure(this, "Annotation binding type is null and did not have a default"); + TEMPORARY_validation_message = "Annotation binding type is null and did not have a default"; +// addValidationFailure(this, "Annotation binding type is null and did not have a default"); isBindingValid = false; } // Validate that the annotation value specified is valid. @@ -79,7 +92,8 @@ !SOAPBinding.SOAP12HTTP_BINDING.equals(bindingType) && !SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bindingType) && !HTTPBinding.HTTP_BINDING.equals(bindingType)) { - addValidationFailure(this, "Invalid annotation binding value specified: " + bindingType); + TEMPORARY_validation_message = "Invalid annotation binding value specified: " + bindingType; +// addValidationFailure(this, "Invalid annotation binding value specified: " + bindingType); isBindingValid = false; } // If there's no WSDL, then there will be no WSDL Binding Type to validate against @@ -90,7 +104,8 @@ else if (!EndpointDescriptionWSDL.SOAP11_WSDL_BINDING.equals(wsdlBindingType) && !EndpointDescriptionWSDL.SOAP12_WSDL_BINDING.equals(wsdlBindingType) && !EndpointDescriptionWSDL.HTTP_WSDL_BINDING.equals(wsdlBindingType)) { - addValidationFailure(this, "Invalid wsdl binding value specified: " + wsdlBindingType); + TEMPORARY_validation_message = "Invalid wsdl binding value specified: " + wsdlBindingType; +// addValidationFailure(this, "Invalid wsdl binding value specified: " + wsdlBindingType); isBindingValid = false; } // Validate that the WSDL and annotations values indicate the same type of binding @@ -111,12 +126,20 @@ // The HTTP binding is not valid on a Java Bean SEI-based endpoint; only on a Provider based one. else if (wsdlBindingType.equals(EndpointDescriptionWSDL.HTTP_WSDL_BINDING) && endpointDesc.isEndpointBased()) { - addValidationFailure(this, "The HTTPBinding can not be specified for SEI-based endpoints"); + TEMPORARY_validation_message = "The HTTPBinding can not be specified for SEI-based endpoints"; +// addValidationFailure(this, "The HTTPBinding can not be specified for SEI-based endpoints"); isBindingValid = false; } else { - addValidationFailure(this, "Invalid binding; wsdl = " + wsdlBindingType + ", annotation = " + bindingType); + TEMPORARY_validation_message = "Invalid binding; wsdl = " + wsdlBindingType + ", annotation = " + bindingType; +// addValidationFailure(this, "Invalid binding; wsdl = " + wsdlBindingType + ", annotation = " + bindingType); isBindingValid = false; + } + if (TEMPORARY_disableThisValidation) { + if (!isBindingValid) { + log.warn("Temporarily allowed validation failure: " + TEMPORARY_validation_message); + } + return true; } return isBindingValid; } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org