I am returning a custom data type from my webservice. At the same time when there is an error in the business process, I need to return an error message which is not part of the Response (custom data type).
How do i deal with this situation, and how can i implement this ? (My response data type and the error message format are different). I am using weblogic, so my serialization classes are generated by weblogic tools.
I tried setting the return type of my webservice to be java.lang.object and on my client side appropriately typecast it, but when i receive the response back on my client side, a serialization error is raised.
I think you dont need to handle error messages seperately and since all server side exceptions are translated as AxisFaults to the client, we can have an handler on the client side that can format that AxisFault to a more user friendly error message or wrap it around an object of your choice ...
Joined: Sep 29, 2004
our specifications have custom error messages and error numbers. So i need to return custom error messages. Also i am using weblogic and not Axis.