Originally posted by siraj baig:
server throws exception which no one can understand what is that exception.
Are you certain that the server actually generates a
SOAP fault which is then translated on the client side to an exception?
But the problam is the request is not going till that point(handler). At the ui level itself is breaking me
This suggests that the request is never sent. The error on the enumeration could be detected by the
client side marshalling code that was generated by the client wsdl-to-java tool. So the exception would be generated entirely on the client side - the request would never be completely built and couldn�t reach the client or server handler chain. Web service toolkits often throw exceptions similar to those based on actual SOAP faults even if there is no SOAP fault present in order to "unify their exception interface".
If that is the case then you have handle this
entirely on the client side. Catch the exception thrown by the client stub method and then throw your own exception class.