NewBie in WSSF

Topics: General Discussion Forum, July and December Releases Forum, Service Factory Modeling Edition Forum
Oct 2, 2007 at 7:39 AM
Hi All

I am using ASMX WSSF and facing a simple a problem. Now, I am using the data access to retrieve the data from DB and pass the data to the Client application through WSSF. However, if there is nothing to return (such as no record found). Where should I trap this problem? Under WSSF side or Client Side? If under WSSF side, should I create a variable such as "ErrorCode" to return the status?

regards
Alex
Oct 10, 2007 at 10:54 PM
Alex,

The answer is to return whatever you want. How would you do it if you were not using WSSF.
All you suggestions work.
If I was expecting the application to return a Collection of records then if the collection was empty, then I would take that to be no record found. I would not consider "no record found" to be an error and create any sort of error code.

__Allan