This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handle Exceptions (oc4j)

 
James Clinton
Ranch Hand
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a bit confused about the best why to handle exceptions (RPC style) and would like your help.

For example, if my w_service was returning an array of Value Objects to a client, but the w_service side threw an exception, should I try/catch the exception and simply return an empty list to the client? or is it best to generate a SOAP exception of some sort to let the client know a problem occurred.

Is this possible via JAX-RPC (stubs) or do I need to use a lower level api like SAAJ?

Is it reasonable to detail in the WSDL that in order to use a particular w_service successfully, a client should check a getErrorFlag return value and if false to handle there own processing accordingly?

I have made a search for this in the forum but without success.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic