Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a wcf service. in my service i am validating the data and saving the data in db. when my client send the wrong data i am returning some mandatory fields are empty. but whenever my client send a correct data to me that time am saving the data in db and am returning the success message but if my db throw an exception but here i don't want to return to the client with failure message, here i want to recall the db and save the data how can i handle this requirement in my service but i want to release the call at exception with success message

What I have tried:

as off now i haven't tried anything
Updated 9-Jun-17 10:08am
ZurdoDev 9-Jun-17 8:15am    
You just write the code. Where are you stuck?

1 solution

It is very easy information to find. As RayanDev also said. Just write the code!
WCF Error Handling | Microsoft Docs[^]

Good luck!
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900