Hi,

We''ve written a web service and a client that connects to it, both in Java
(client generated using the code below) ...

<project  xmlns:j="jelly:core" xmlns:ant="jelly:ant">
  <preGoal name="java:compile">
    <ant:property name="downloadedWSDL" value="target/MatchingService.wsdl"
/>
    <ant:get
src="http://localhost:8080//apps/dor/dmv/myapp/myfn//services/MatchingService?wsdl";
             dest="${downloadedWSDL}"
             username="username"
             password="password" />
    <ant:mkdir dir="${maven.build.dir}/src" />
    <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
classpathref="maven.dependency.classpath">
      <arg line="-uri ${downloadedWSDL}" />
      <arg line="-or" />
      <arg line="-d adb" />
      <arg line="-o target/" />
    </java>
    <ant:javac
      debug="true"
      debuglevel="vars,lines,source"
      destdir="${maven.build.dest}"
      excludes="**/package.html"
      srcdir="${basedir}/target/src" >
     <ant:classpath>
      <ant:path refid="maven.dependency.classpath" />
     </ant:classpath>
    </ant:javac>
  </preGoal>
</project>


I wanted to know how to get axis faults to send back more information than
simply what we are seeing below.  Regardless of the exception generated by
the web service, the exception thrown in the client is the same.  Is there a
way to add a message into the client so at least we know greater detail
about what caused the error?


org.apache.axis2.AxisFault: Exception occurred while trying to invoke
service method verifyAge
        at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
        at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
myco.dor.dmv.driver.matching.soap.MatchingServiceStub.verifyAge(MatchingServiceStub.java:522)
        at
myco.dor.dmv.driver.matching.test.AgeVerifyTests.testVerifyAgeWithNullIdentityParams(AgeVerifyTests.java:62)
        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:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1072)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:682)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1434)
        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:632)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)

Thanks, - Dave

-- 
View this message in context: 
http://www.nabble.com/Possible-to-get-more-information-from-an-AxisFault--tp25873509p25873509.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to