Outils pour utilisateurs

Outils du site


cours:app_rep_orientees_service_2016_2017:lab_contract

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
cours:app_rep_orientees_service_2016_2017:lab_contract [2019/04/24 05:49] – [Contracts in WCF] tiglicours:app_rep_orientees_service_2016_2017:lab_contract [2019/04/24 05:57] (Version actuelle) – [References] tigli
Ligne 52: Ligne 52:
  
 A Fault Contract handles the exception and understands the cause of the error that occurs in the WCF service. When we develop a managed application or service, we will handle the exception using a try- catch block, but these exceptions handlers are technology-specific. A Fault Contract handles the exception and understands the cause of the error that occurs in the WCF service. When we develop a managed application or service, we will handle the exception using a try- catch block, but these exceptions handlers are technology-specific.
 +
 +[[http://www.wcftutorial.net/Fault-Contract.aspx|Getting Started with this step by step tutorial]]
  
 == Message Contract ==  == Message Contract == 
Ligne 60: Ligne 62:
  
 === Exercice on DataContract, Service Contract and Operation Contract === === Exercice on DataContract, Service Contract and Operation Contract ===
 +Create a calculator service that implement add and sub operations on complex numbers instead of numerical ones.
 +This justifies to introduce DataContract for the Complex number Type. 
  
 === Exercice on Fault Contract === === Exercice on Fault Contract ===
-Create a simple calculator service with Add operation which throw general exception and send exception information from service to client with FaultException.+In the Add operationthrow general exception and send exception information from service to client with FaultException. 
  
-[[http://www.wcftutorial.net/Fault-Contract.aspx|Follow this tutorial for more details]] 
  
-==== References ==== 
  
-[[https://msdn.microsoft.com/fr-fr/library/aa480190.aspx|Introduction to Building Windows Communication Foundation Services]] 
cours/app_rep_orientees_service_2016_2017/lab_contract.1556084969.txt.gz · Dernière modification : 2019/04/24 05:49 de tigli