SOAP fault in WCF? Please help anyone... [Resolved]

Posted by Kumarkrishna184 under WCF on 11/30/2015 | Points: 10 | Views : 2046 | Status : [Member] | Replies : 3
SOAP fault in WCF?

Thanks and Regards,
Krishna Kumar

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajnilari2015 on: 11/30/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Please go thru this http://www.codeproject.com/Articles/555415/A-Beginners-Tutorial-for-Understanding-Exception-H . It's written nicely.

In short, if the client app(s) wants to get the reason for the precise exception cause, FaultException which happens through FaultContract finds it's place. Another way to achieve the precise server exception (but please never do this in a production environment) is to set
<serviceDebug includeExceptionDetailInFaults="true"  />
In production environment, must should set it to False.

N.B.~ Though you have not asked, but still I would like to mention at this juncture that in the production environment, please enable Tracing ( http://www.codeproject.com/Articles/420538/Simple-Steps-to-Enable-Tracing-in-WCF ) and log the errors(You may use Log4.net /NLogger or may enable the Trace Listeners or can write in the Message Queue...any thing of your choice).

Hope this helps.

Let us know if you need further assistance for understanding the concept.

Thanks.

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 11/30/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Could you explain your question a bit more? Just 5 words questions doesn't makes much sense.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kumarkrishna184 on: 11/30/2015 [Member] Starter | Points: 25

Up
0
Down
What role plays a soap fault in wcf exception handling?

Thanks and Regards,
Krishna Kumar

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response