Outils pour utilisateurs

Outils du site


cours:service_oriented_computing_and_web_services_2018_2019

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édentes Révision précédente
Prochaine révision
Révision précédente
Dernière révision Les deux révisions suivantes
cours:service_oriented_computing_and_web_services_2018_2019 [2019/04/24 08:03]
tigli [Session 3 : Windows Communication Fundation (WCF) and ABC model]
cours:service_oriented_computing_and_web_services_2018_2019 [2019/04/24 12:57]
tigli [Session 3 : Windows Communication Fundation (WCF) and ABC model]
Ligne 163: Ligne 163:
 /* {{ :​cours:​donelogo.gif?​75|}}*/​ /* {{ :​cours:​donelogo.gif?​75|}}*/​
  
-=== Lecture ​2 : ABC Model and MEX Contract ​=== +=== Advanced ​Lecture ​on ABC and WCF ===
-||| +
-Windows Communication Foundation (WCF) provides a rich infrastructure for exporting, publishing, retrieving, and importing service metadata. WCF services use metadata to describe how to interact with the service'​s endpoints so that tools, such as Svcutil.exe,​ can automatically generate client code for accessing the service. ​+
  
-=== Lecture 3 : MEX and Web Services : WSDL ===+== Types of Asynchronous Operations in WCF services ​== 
  
-|||+All service contracts in WCF, no matter the parameters types and return values, use WCF attributes to specify a particular message exchange pattern between client and service. WCF automatically routes inbound and outbound messages to the appropriate service operation or running client code.
  
 +The client possesses only the service contract, which specifies the message exchange pattern for a particular operation. Clients can offer the developer any programming model they choose, so long as the underlying message exchange pattern is observed. So, too, can services implement operations in any manner, so long as the specified message pattern is observed.
  
-  * {{:cours:​3._contrats_et_description_de_web_services_-_wsdl-2016-2017.pdf| WSDL, Web Service Description Language for WS-SOAP}}+The independence of the service contract from either the service or client implementation enables the following forms of asynchronous execution in WCF applications:
  
 +  * Clients can invoke request/​response operations asynchronously using a synchronous message exchange.
  
-/*  * {{:​cours:​td4-td_services_metadata_exchange_.net-2016-2017.pdf| Tutorial WSDL for WS-SOAP sous WCF- Windows Communication Foundation}} +  * Services can implement a request/response operation asynchronously using a synchronous message exchange.
-*/+
  
-=== Advanced Lecture ​===+  * Message exchanges can be one-way, regardless of the implementation of the client or service. 
 + 
 +[[https://​docs.microsoft.com/​fr-fr/​dotnet/​framework/​wcf/​synchronous-and-asynchronous-operations|Find here details on the different types of Asynchronous Operations in WCF services]] 
 + 
 +== System.ServiceModel Namespace ​== 
 +App.config is an XML file to set a list of parameters required to instanciate some classes of the System.ServiceModel Namespace. 
 + 
 +[[https://​docs.microsoft.com/​fr-fr/​dotnet/​api/​system.servicemodel?​view=netframework-4.8|Find the System.ServiceModel Namespace description here and some complete source code instead of App.config configurations]] 
 + 
 +== non-http binding for non web based services : netTcpBinding == 
 + 
 +ABC Model is not only dedicated to Web Service but can use non over http binding like direct TCP/IP protocol. One of the standard Binding for that is netTcpBinding.  
 + 
 +[[https://​docs.microsoft.com/​fr-fr/​dotnet/​framework/​wcf/​feature-details/​intranet-unsecured-client-and-service#​client| Step by step tutorial to create a netTcpBinding Service]] 
 + 
 +Here you can see that the App.config file is only an other way to defined different parameters ​ required by the Service/​Client Constructor.
  
 == WCF Hosting ==  == WCF Hosting == 
Ligne 197: Ligne 211:
 Here find most of the possible extensions : [[https://​docs.microsoft.com/​fr-fr/​dotnet/​framework/​wcf/​samples/​extensibility|WCF Extensibility]] ​ Here find most of the possible extensions : [[https://​docs.microsoft.com/​fr-fr/​dotnet/​framework/​wcf/​samples/​extensibility|WCF Extensibility]] ​
  
-https://​docs.microsoft.com/​fr-fr/​dotnet/​framework/​wcf/​samples/​extensibility 
  
 +
 +=====  Session 4 :  MEX and Web Services and WSDL =====
 +
 +----
 +
 +
 +|||
 +
 +
 +=== Lecture 1 : ABC Model and MEX Contract ===
 +|||
 +Windows Communication Foundation (WCF) provides a rich infrastructure for exporting, publishing, retrieving, and importing service metadata. WCF services use metadata to describe how to interact with the service'​s endpoints so that tools, such as Svcutil.exe,​ can automatically generate client code for accessing the service. ​
 +
 +=== Lecture 2 : WSDL and Web Services ===
 +|||
 +{{:​cours:​3._contrats_et_description_de_web_services_-_wsdl-2016-2017.pdf| WSDL, Web Service Description Language for WS-SOAP}}
 +
 +
 +/*  * {{:​cours:​td4-td_services_metadata_exchange_.net-2016-2017.pdf| Tutorial WSDL for WS-SOAP sous WCF- Windows Communication Foundation}}
 +*/
 +
 +=== TIPS ===
 +
 +[[https://​www.c-sharpcorner.com/​UploadFile/​dhananjaycoder/​dealing-multiple-endpoints-of-a-wcf-service499/​|Sample with one Mex endpoint for multiple endpoints with different contracts in a service]] ​
 ===== Advanced Session 1 : Event Based Communication and Architecture with web services ​ ===== ===== Advanced Session 1 : Event Based Communication and Architecture with web services ​ =====
  
cours/service_oriented_computing_and_web_services_2018_2019.txt · Dernière modification: 2019/05/12 16:58 par tigli