axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Gupta <>
Subject RE: Error handing in axis2
Date Sun, 26 Apr 2009 15:54:18 GMT
After removing <sp:IncludeTimestamp/> from the policy I am no longer getting MIssing
SOAP Header error. But I don't get my custom exception which has two extra field for errorno
and errormessage. I just get org.apache.axis2.AxisFault which does have my message but I would
like to have my custom exception.

From: Sanjay Gupta []
Sent: Saturday, April 25, 2009 8:50 PM
Subject: Error handing in axis2

I am using axis2 to expose POJO as services. In case of an error I throw an custom exception.
The pojo methods returns a string. When I was using axis1.2.1 the return was set to void.
I had to change that to String to avoid inonly  error I kept getting. I could not find a solution
to that problem so I decided to return string when I upgrdaded to axis2. In case of an exception
on the client side now I am getting org.apache.axis2.AxisFault  with SOAP heading missing
as message instead of my custom exception which has some custom variables. I am using rampart
to do basic auth using username token. Am I doing something wrong or approaching it incorrectly.
I would really appreciate any help/pointers.

View raw message