Hello and thanks for your opinion.
I am creating a webservice. This webservice will accept a customer and the customers accounts along with a couple other related objects and attributes and such.
When the webservice recieves a request, I attempt to process it.
If there is no error I simply just return. If there is an error, I throw it.
I'm wondering if this is the best approach, or if I should modify my design so that I return a bool as the response, or even create a response object, that maybe contains the original request object plus a status and if error, a list of errors (ie: Missing Fields, Invalid Fields, ext).
Which return method would you incorporate in your design?
1) Just return if no error, Throw error if error
2) bool success
3) Response object (containing original request object? and detailed results)?
Thanks for any suggestions. Steven