Last post Aug 12, 2014 06:19 AM by ramana123
Aug 11, 2014 10:09 AM|yogendrakmishra|LINK
I have created WCF service for data retrieval. It has some input value which i need to validate and throw Business exception(i.e.- Name can not be blank, Input value is not valid) and System exception also.
Now this WCF service will consume in all platform like .Net, Java, CRM etc. For that i want to create generic exception which should work on all platform.
Aug 12, 2014 06:19 AM|ramana123|LINK
Hi. you should go with Fault Exceptions whihc will be understanble by any client when you define data contact for the same. You have to convert your .NET specifc exceptions into Fault type as per the data contract and send the same; refer below