tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Nathan <>
Subject Re: Axis 2, POJO, Exceptions and Faults
Date Sun, 15 Jul 2007 22:14:57 GMT

albert quinn wrote:
>   I've been trying to do something like that but i couldn't make it
> work . My test Web Service returns a String and the client receives
> the AxisFault/RemoteException message throwed from the Web Service as
> it was the returned value from the Web Service !!!!!!!!!!!!!!, so I'd
> been able to know in the client side if an error happened in the
> server side.

POJO is a plain Java objects that you cannot throw things!

I tend to return results wrapped in XML strings containing
types (=ok, error, ...) and contents. For clients, any exceptions
happened in transport will be captured by try {} catch blocks.
Errors occured in POJO servers will be embedded in return strings
as XML strings. Note that use of SOAP means that you should
live with XML!


View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message