'm been using Axis 1.4 for my webservice, and I would like to
override the behaviour when a client sends the service malformed
XML or incorrect types etc.
Currently, for example, if I send a string in a number tag, or a
malformed date, Axis throws a NumberFormatException or
IllegalArgumentException, and all the data is propagated to the
client via a SOAP Fault, like the following:
FaultCode: soapenv:Server.userException
Message: Number Format Exception
I would like to hide the raw kind of message from the user and provide my own
faultcode/message in the SAP Exception, is this possible?
Since all of this is done in Axis code prior to reaching my
implementation code, I have no way of overriding how these
exceptions ought to be handled.
Thanks in advance,
-
Override the behaviour of soapenv:Server.userExceptio (0 messages)
- Posted by: ten lrt
- Posted on: May 03 2010 02:19 EDT