faults:Using the Fault Contracts (SOAP Faults) in WCF Programming来源: 发布时间:星期日, 2008年10月5日 浏览:2次 评论:0
In this article we are going to see, how to use the Fault contracts in WCF programming. What is a WCF ? WCF (Windows Communication Foundation) is a .NET dedicated communication frame work. WCF provides an easy way to expose our methods as services and consuming the existing services as traditional methods. (More about the WCF can be found in my previous article: WCF Programming for Beginners.) What are SOAP Faults ? In all managed applications we use the Exception objects to handle the errors. Similarly in WCF programming also to handle the errors and convey that error information from service to client and client to service we use the SOAP faults. FaultContractAttribute, which is defined in the namespace : System.ServiceModel.FaultContractAttribute , is used to declare customized SOAP faults. SOAP Faults mainly of two types:
0
相关文章读者评论
发表评论 |