Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML Web Services in Visual Studio ®.NET NameTitleCompany.

Similar presentations


Presentation on theme: "XML Web Services in Visual Studio ®.NET NameTitleCompany."— Presentation transcript:

1

2 XML Web Services in Visual Studio ®.NET NameTitleCompany

3 Agenda Web Service Infrastructure Web Service Infrastructure Web Services in Visual Studio.NET Web Services in Visual Studio.NET Hardcore Web Services Hardcore Web Services

4 Session Prerequisites Familiarity with Client/Server or Web Development Familiarity with Client/Server or Web Development Level 200

5 Agenda Web Service Infrastructure Web Service Infrastructure Web Services in Visual Studio.NET Web Services in Visual Studio.NET Hardcore Web Services Hardcore Web Services

6 Web Service (ASMX in ASP.NET) Web Service (ASMX in ASP.NET)  Invoke Web Service methods Web Service Infrastructure What makes a Web Service? ASMX

7 ASMX Web Service (ASMX in ASP+) – –Invoke Web Service methods Web Service Description Language (WSDL) – –Describe Web Services – –Describes dependencies (e.g., DataSets / XSD) Web Service Infrastructure What makes a Web Service? XSD WSDL

8 Web Service (ASMX in ASP+) – –Invoke Web Service methods Web Service Description Language (WSDL) – –Describe Web Services – –Describes dependencies (e.g., DataSets / XSD) Discovery Documents (DISCO) – –Publish Web Services Web Service Infrastructure What makes a Web Service? ASMX XSD WSDL WSDL DISCO

9 Web Service (ASMX in ASP+) – –Invoke Web Service methods Web Service Description Language (WSDL) – –Describe Web Services – –Describes dependencies (e.g., DataSets / XSD) Discovery Documents (DISCO) – –Publish Web Services UDDI Web Service Infrastructure What makes a Web Service? ASMX XSD WSDL WSDL DISCO DISCO UDDI

10 Web Service Infrastructure Protocols Basic: HTTP Get and HTTP Post Basic: HTTP Get and HTTP Post  Primitives (integers, strings, etc)  Arrays of primitives Default: Simple Object Access Protocol (SOAP) Default: Simple Object Access Protocol (SOAP)  Structures  Enumerations  Classes  XML DataSets  Arrays of anything

11 Agenda Web Service Infrastructure Web Service Infrastructure Web Services in Visual Studio.NET Web Services in Visual Studio.NET Hardcore Web Services Hardcore Web Services

12 Web Services in Visual Studio.NET Tools On the Server Side On the Server Side  Generates WSDL  Generates.vsdisco  Generates HTML text page  Supports breakpoints, tracing, etc. On the Client Side On the Client Side  Generates proxy class with sync and async calls  Supports “Step-Into” across web service call

13 Return Data from a Web Service Demonstration #1

14 Agenda Web Service Infrastructure Web Service Infrastructure Web Services in Visual Studio.NET Web Services in Visual Studio.NET Hardcore Web Services Hardcore Web Services

15 Hard Core Web Services ASP.NET Intrinsics Request Request  Server Variables (Host Address, Host Name)  Cookies  Security (Client Certificate, Authentication, Encryption) User User  Identity  Role Session and Application Session and Application  State Response Response  Cookies Cache Cache

16 Hard Core Web Services Security Basic, Digest, Passport, Kerberos, and Windows authentication Basic, Digest, Passport, Kerberos, and Windows authentication “Roll your own” authentication “Roll your own” authentication HTTPS / SSL encryption HTTPS / SSL encryption Supports many business models Supports many business models  Secure ecommerce transactions  Pay per use  Subscription

17 Hard Core Web Services Asynchronous Calls Synchronous Programming Model Synchronous Programming Model  Foo(Param1, Param2) As String Asynchronous Programming Model Asynchronous Programming Model  BeginFoo(Param1, Param2, Callback)  Callback(AsyncResult)  EndFoo(AsyncResult) As String

18 Hard Core Web Services SOAP Headers - Server Make a Class That Inherits SoapHeader Make a Class That Inherits SoapHeader Add Custom Properties Add Custom Properties Associate This With Your Web Service Associate This With Your Web Service Public Class MyHeader : Inherits SoapHeader Public Username As String Public Username As String Public Password As String Public Password As String End Class

19 Hard Core Web Services SOAP Headers - Client Create Instance of the Header Class Create Instance of the Header Class Populate With Values Populate With Values Attach To Web Service Object Attach To Web Service Object Call Method Call Method WebServ ws = new WebServ(); MyHeader a = new MyHeader(); a.Username = "admin"; a.Password = "password"; ws.MyHeader = a; ws.DoSomething();

20 Hard Core Web Services SoapExtension Used for More Advanced Functionality Used for More Advanced Functionality Intercept Calls to a Web Service Intercept Calls to a Web Service Pre and Post Processing Pre and Post Processing

21 Hardcore Web Services Demonstration #2

22 Session Summary Web Services Are The Building Blocks For The Next Generation Of The Internet Web Services Are The Building Blocks For The Next Generation Of The Internet Gives Client Access to any kind of Data Gives Client Access to any kind of Data Make Business-to-Business Easy Make Business-to-Business Easy Visual Studio.NET Provides Great Tools Visual Studio.NET Provides Great Tools

23 For More Information… MSDN Web site at MSDN Web site at  msdn.microsoft.com Microsoft ® Official Curricula (MOC) Microsoft ® Official Curricula (MOC)  MOC 2063  Building ASP.NET Applications  MOC 2145  Programming the Microsoft.NET Framework with Visual Basic ®.NET  MOC 2349  Programming the Microsoft.NET Framework with C#

24 MSDN Essential Resources for Developers Training & Events MSDN Training, Tech-Ed, PDC, Developer Days, MSDN/Onsite Events Subscription Services Online Information Membership Programs Print Publications Library, Professional, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash MSDN User Groups MSDN Magazine MSDN News

25 Questions And Answers

26


Download ppt "XML Web Services in Visual Studio ®.NET NameTitleCompany."

Similar presentations


Ads by Google