cours:app_rep_orientees_service_2016_2017:lab_contract
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
cours:app_rep_orientees_service_2016_2017:lab_contract [2019/04/24 05:49] – [Contracts in WCF] tigli | cours: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:// | ||
== Message Contract == | == Message Contract == | ||
Ligne 60: | Ligne 62: | ||
=== Exercice on DataContract, | === Exercice on DataContract, | ||
+ | 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 | + | In the Add operation, throw general exception and send exception information from service to client with FaultException. |
- | [[http:// | ||
- | ==== References ==== | ||
- | [[https:// |
cours/app_rep_orientees_service_2016_2017/lab_contract.1556084969.txt.gz · Dernière modification : 2019/04/24 05:49 de tigli