Hello list!

I have a simple Java class service with one method:

...
public void foo() throws MyException {
 throw new MyException();
}
...

I use the Eclipse-WebService plugin (not the Axis2-codegen-plugin,
because it fails with a InvocationTargetException) to publish a
WebService to Tomcat.
Then I use the following command to generate the client stub:

wsdl2java -uri http://.../MyWebServices/TestService?wsdl -p my.pack.age -uw

The WSDL does contain <fault>-elements and there are also classes generated for
my exception-type. But Axis just keeps throwing an AxisFault, because
it doesn't seem to be able to recognize that it should rather be a MyException.
Debugging the call to TestServiceStub.foo(), I can see that the
exception is thrown
correctly, but then org.apache.axiom.om.OMElement faultElt =
f.getDetail(); returns
null and so Axis just rethrows the AxisFault!

The generated services.xml does not contain any <faultActionMapping>s,
as I saw in some examples ... I also tried to add these entries to
that file, but no change!

What am I doing wrong?
Thanks for hints!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to