[ 
https://issues.apache.org/jira/browse/AXIS2-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davanum Srinivas reassigned AXIS2-3479:
---------------------------------------

    Assignee: Roy A. Wood Jr.  (was: Davanum Srinivas)

Roy,

Let's take org.apache.axis2.jaxws.dispatch.server.SOAP12Provider for example, 
there's an existing wsdl in our trunk svn 
test\org\apache\axis2\jaxws\dispatch\server\META-INF\SOAP12ProviderService.wsdl,

so steps would be
#1) remove HTTP Binding and add SOAP binding annotation
#2) Add wsdlLocation "META-INF\SOAP12ProviderService.wsdl"
#3) Edit the wsdl to make sure the targetNamespace, port and service names 
match what is in the service


Thanks,
dims

PS: if you don't find a wsdl it may have gotten lost when we separated the 
tests, try the 1.3 branch:
http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/jaxws/test/org/apache/axis2/jaxws/dispatch/server/META-INF/

> [Break] MtomSampleTests - The org.apache.axis2.jaxws.sample.MtomSampleTests 
> suite is failing
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3479
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3479
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Brian DePradine
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> It keeps failing whenever I run a maven build, but when I run it on it's own, 
> inside Eclipse, it passes every time! To get around this issue I have 
> commented out that test for now. The failure I get is captured below.
> testSendImageAttachmentProperty12(org.apache.axis2.jaxws.sample.MtomSampleTests)
>   Time elapsed: 0.219 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Was expecting an exception due to 
> sending SOAP12 message to SOAP11 endpoint.
>       at junit.framework.Assert.fail(Assert.java:47)
>       at 
> org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:224)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       at junit.framework.TestResult$1.protect(TestResult.java:110)
>       at junit.framework.TestResult.runProtected(TestResult.java:128)
>       at junit.framework.TestResult.run(TestResult.java:113)
>       at junit.framework.TestCase.run(TestCase.java:124)
>       at junit.framework.TestSuite.runTest(TestSuite.java:232)
>       at junit.framework.TestSuite.run(TestSuite.java:227)
>       at junit.framework.TestSuite.runTest(TestSuite.java:232)
>       at junit.framework.TestSuite.run(TestSuite.java:227)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
>       at junit.framework.TestResult.runProtected(TestResult.java:128)
>       at junit.extensions.TestSetup.run(TestSetup.java:27)
>       at 
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
>       at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>       at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>       at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> Now that I think about it the test is probably passing in Eclipse because it 
> does not check what exception gets thrown, so I am not sure that the 
> exception that is being thrown is the 'expected' one.

-- 
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