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

Rich Scheuerle commented on AXIS2-3652:
---------------------------------------

Usually this issue occurs because: 
 1) The server is wrapping a VERSION_MISMATCH failure in such a way that the 
wrong SOAPFault is returned.  AND/OR
 2) The client is not detecting the VERSION_MISMATCH and instantiating the 
wrong kind of exception.

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to