axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy A. Wood Jr. (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch
Date Wed, 26 Mar 2008 16:03:24 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582328#action_12582328
] 

Roy A. Wood Jr. commented on AXIS2-3652:
----------------------------------------

Changed the assertion in the testcase to compare against the SOAP 1.1 NS rather than the SOAP
1.2 NS (which would never have been successful for this test)

               assertTrue("Expected VERSION MISMATCH but received: "+ faultCode,
            		  new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "VersionMismatch",  SOAPConstants.SOAP_ENV_PREFIX).equals(faultCode));


> JAXWS: Not correctly detecting version mismatch
> -----------------------------------------------
>
>                 Key: AXIS2-3652
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> Problem:
> To comply with JAXWS, the client must receive a SOAPFaultException containing a fault
code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.
> Testcase:
> Recreate the problem:
> In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
> Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
> Rerun the tests and it will fail with:
>   <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12"
time="0.11">
>     <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException,
but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError:
Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message