Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Exception Handling in API Bulk Call  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have created a Web Service and I am exposing various methods at the client-end. I have provided custimozed SOAP API Exception to be thrown at the client-end in the form of code, actor, text etc. When ever any method/call is failed, an excpetion is raised.

But if a call is returning 100 values in one method (bulk call) and an exception is being raised when 90 values have been returned to the client, then how to handle the exception as I want that 90 values fetched should be returned to the client. Since in a normal scenario the values fetched does not get retained at the client-end till the method is not executed completely.

I want to retain those values which were fetched before the exception has been raised.

For e.g: The method is getting the 100 names from a database and after 90 names have been fetched, some problem occurs on the database server. The client will receive the exception as "Internal Error has occurred", but it should also get the 90 values fethced from the server.

Any help will be appreciated.

Kindly suggest.

Thanks & Regards,
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!