Cycle de progression Faire (quelque chose qui marche) -> comprendre ce que l’on fait/comment cela marche -> pousser plus loin les notions

| <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %> |
| using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; // 1 le namespace du webservice // 2 la classe hérite de System.Web.Services.WebService + portée public [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { // 3 le constructeur par défaut public public Service () { } // 4 les web methods précédées par l'attribut [webmethod] [System.Web.Services.WebMethod()] public string WebMethod1() { Return « »; } [System.Web.Services.WebMethod()] public string WebMethod2() { Return « »; } } |
| <?xmlversion="1.0"encoding="utf-8" ?> <CONTACTxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns="http://tempuri.org/Ctrl.CONTACT"> <BObjectCONTACTs> <CONTACT> <ContactNamexmlns="http://tempuri.org/BObject.CONTACT">Bellin</ContactName> <Original_ContactNamexmlns="http://tempuri.org/BObject.CONTACT">Bellin</Original_ContactName> <ContactFirstNamexmlns="http://tempuri.org/BObject.CONTACT">Marie</ContactFirstName> <Original_ContactFirstNamexmlns="http://tempuri.org/BObject.CONTACT">Marie</Original_ContactFirstName> <ContactEmailxmlns="http://tempuri.org/BObject.CONTACT">mb3@laposte.net</ContactEmail> <Original_ContactEmailxmlns="http://tempuri.org/BObject.CONTACT">mb3@laposte.net</Original_ContactEmail> <ContactIDxmlns="http://tempuri.org/BObject.CONTACT">1</ContactID> <RowStatexmlns="http://tempuri.org/BObject.CONTACT">Unchanged</RowState> <RowErrorxmlns="http://tempuri.org/BObject.CONTACT" /> </CONTACT> <CONTACT> <ContactNamexmlns="http://tempuri.org/BObject.CONTACT">Romagny</ContactName> <Original_ContactNamexmlns="http://tempuri.org/BObject.CONTACT">Romagny</Original_ContactName> <ContactFirstNamexmlns="http://tempuri.org/BObject.CONTACT">Jérôme</ContactFirstName> <Original_ContactFirstNamexmlns="http://tempuri.org/BObject.CONTACT">Jérôme</Original_ContactFirstName> <ContactEmailxmlns="http://tempuri.org/BObject.CONTACT">romagny13@yahoo.fr</ContactEmail> <Original_ContactEmailxmlns="http://tempuri.org/BObject.CONTACT">romagny13@yahoo.fr</Original_ContactEmail> <ContactIDxmlns="http://tempuri.org/BObject.CONTACT">2</ContactID> <RowStatexmlns="http://tempuri.org/BObject.CONTACT">Unchanged</RowState> <RowErrorxmlns="http://tempuri.org/BObject.CONTACT" /> </CONTACT> </BObjectCONTACTs> <BDataCONTACT /> </CONTACT> |
| Cd « C:Program FilesMicrosoft Visual Studio 8SDKv2.0Bin” Wsdl.exe |