You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Florian Lindauer <fl...@secure-net.de> on 2003/04/25 14:54:47 UTC
SOAPFaults: how to deliver
(Using: Axis 1.0, Tomcat4)
How do I deliver a custom AxisFault-object to the client?
If I simply throw it as an exception, the client can catch
an AxisFault, but it is not the one that was thrown:
code: {http://xml.apache.org/axis/}HTTP
string: (500)500
The HTTP response message reveals a 500 server error, but
does not contain a SOAP message with a SOAPfault, but a
HTML page containing a Tomcat error message with the
stacktrace for "Servlet threw an exception"..
So, how do I cause a real SOAP-fault?
Florian Lindauer
Re: SOAPFaults: how to deliver
Posted by Steve Loughran <st...@iseran.com>.
Florian Lindauer wrote:
> (Using: Axis 1.0, Tomcat4)
>
> How do I deliver a custom AxisFault-object to the client?
> If I simply throw it as an exception, the client can catch
> an AxisFault, but it is not the one that was thrown:
> code: {http://xml.apache.org/axis/}HTTP
> string: (500)500
> The HTTP response message reveals a 500 server error, but
> does not contain a SOAP message with a SOAPfault, but a
> HTML page containing a Tomcat error message with the
> stacktrace for "Servlet threw an exception"..
Is this the axis webapp or your own? It looks like tomcat is wrapping up
the Axis error page with its own.
Also, try with the latest Axis1.1 release candidate
Re: SOAPFaults: how to deliver
Posted by Florian Lindauer <fl...@secure-net.de>.
Tom Jordahl wrote:
> If you are using faults, you should use a Axis 1.1
Sorry for this (very embarrassed..), it was another problem
(only happening when the fault was to be thrown).
Throwing an AxisFault to create a SOAPfault works perfectly OK
using 1.0, at least with my simple AxisFault-object.
But - that other problem was very interesting, too.. no, it
has nothing to do with Axis in particular. The old problem
when an exception is thrown in a static initialization (class
variables or code in static{}-block), thus when loading the
class (not later on instantiation): it leads to a
NoClassDefFoundError. Bad programming style, I guess ;)
Florian Lindauer