introduction to.net rui ye. agenda what is microsoft.net what is microsoft.net the basic elements...

21
Introduction Introduction to to .NET .NET Rui Ye Rui Ye

Upload: ross-hood

Post on 27-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Introduction toIntroduction to

.NET.NET

Rui YeRui Ye

AgendaAgenda

What is Microsoft .NETWhat is Microsoft .NET The basic elements of .NETThe basic elements of .NET What are Web services What are Web services XML Web services basicsXML Web services basics What is .NET FrameworkWhat is .NET Framework Basic components of the .NET FrameworkBasic components of the .NET Framework Benefits of the .NET FrameworkBenefits of the .NET Framework Visual Studio .NETVisual Studio .NET Comparing .NET with J2EEComparing .NET with J2EE

What is Microsoft .NETWhat is Microsoft .NET

Microsoft .NET is a set of software Microsoft .NET is a set of software technologies for connecting technologies for connecting information, people, systems, and information, people, systems, and devices. This new generation of devices. This new generation of technology is based on Web technology is based on Web services---small building-block services---small building-block applications that can connect to each applications that can connect to each other as well as to other, larger other as well as to other, larger applications over the Internet.applications over the Internet.

The basic elements of .NETThe basic elements of .NET

Smart ClientsSmart Clients Web ServicesWeb Services ServersServers Developer toolsDeveloper tools

What are Web servicesWhat are Web services

The foundation of .NET is Web services.The foundation of .NET is Web services. Web services allow applications to share data.Web services allow applications to share data. Web services are discrete units of code; each Web services are discrete units of code; each

handles a limited set of tasks.handles a limited set of tasks. They are based on XML, the universal They are based on XML, the universal

language of Internet data exchange, and can language of Internet data exchange, and can be called across platforms and operating be called across platforms and operating systems, regardless of programming systems, regardless of programming language.language.

XML Web services basicsXML Web services basics

SOAP---Simple Object Access Protocol.SOAP---Simple Object Access Protocol.

WSDL---Web Services DescriptionWSDL---Web Services Description

LanguageLanguage

UDDI---Universal Discovery DescriptionUDDI---Universal Discovery Description

and Integrationand Integration

XML Web Services basics (cont.)XML Web Services basics (cont.)

Open Internet Protocol

XML WebXML Webserviceservice

SOAPSOAPSOAPSOAP SOAP– If XML represent the basic SOAP– If XML represent the basic

language, SOAP is the grammar. language, SOAP is the grammar.

WSDLWSDLWSDLWSDL WSDL – Describe Web service’s WSDL – Describe Web service’s interfaces in enough detailinterfaces in enough detail

Base on open Internet protocolBase on open Internet protocol XML and HTTPXML and HTTP

UDDIUDDIUDDIUDDI UDDI – The Yellow Page of UDDI – The Yellow Page of Web serviceWeb service

What is .NET FrameworkWhat is .NET Framework

The .NET Framework is an important The .NET Framework is an important new component of the Windows family new component of the Windows family of operating systems. It is the of operating systems. It is the foundation of the next generation of foundation of the next generation of Windows-based applications that are Windows-based applications that are easier to build, deploy, and integrate easier to build, deploy, and integrate with other networked systems.with other networked systems.

Visu

al Stu

dio

.NE

TV

isual S

tud

io .N

ET

What is .NET Framework (conWhat is .NET Framework (cont.)t.)

CLRCLR

Base Class LibraryBase Class Library

Data and XMLData and XML

XML WebXML Webservicesservices

Windows FormsWindows Forms

Web FormsWeb Forms

Common Language SpecificationCommon Language Specification

VBVB C++C++ C#C# ……JScriptJScript

Basic components of Basic components of the .NET Frameworkthe .NET Framework

The .Net Framework consists of two main parts:The .Net Framework consists of two main parts:

Common language runtimeCommon language runtime Provides the common services for .NET Provides the common services for .NET

Framework applications. Over 27 languages Framework applications. Over 27 languages supports today.supports today.

.NET Framework class library(Three key .NET Framework class library(Three key components):components):

ASP .NET; Windows Forms; ADO .NET.ASP .NET; Windows Forms; ADO .NET.

CLR: Execution modelCLR: Execution model

VBVBSource Source codecode

CompilerCompiler

C++C++C#C#

CompilerCompilerCompilerCompiler

AssemblyAssemblyIL CodeIL Code

AssemblyAssemblyIL CodeIL Code

AssemblyAssemblyIL CodeIL Code

Operating System ServicesOperating System Services

Common Language RuntimeCommon Language Runtime

Native CodeNative Code

ManagedManagedcodecode

UnmanagedUnmanagedComponentComponent

.NET Framework class .NET Framework class librarylibrary

ASP .NET to help build Web applications ASP .NET to help build Web applications and Web services.and Web services.

Windows Forms to facilitate smart client Windows Forms to facilitate smart client user interface development.user interface development.

ADO .NET to help connect applications ADO .NET to help connect applications to databases.to databases.

.NET Framework class library (cont.).NET Framework class library (cont.)

Unified Classes

Web Classes (ASP.NET)

XML Classes

System Classes

Drawing Classes

Windows FormsData (ADO.NET)

Controls, Caching, Security, Session, Configuration etc

Collections, Diagnostics, Globalization, IO, Security,Threading Serialization, Reflection, Messaging etc

ADO, SQL,Types etc

Drawing, Imaging, Text, etc

Design, Cmpnt Model etc

XSLT, Path, Serialization etc

Benefits of the .NET Benefits of the .NET FrameworkFramework

Helps IT professionals better Helps IT professionals better integrate existing systems with its integrate existing systems with its native support for Web services.native support for Web services.

Assists with deployment of software Assists with deployment of software to both users and Web servers.to both users and Web servers.

Facilitates the development of Facilitates the development of software with improved reliability, software with improved reliability, scalability, performance, and scalability, performance, and security.security.

Benefits of the .NET Benefits of the .NET Framework (cont.)Framework (cont.)

Helps developers be more productive Helps developers be more productive by:by:

1. Making it easier for them to reuse 1. Making it easier for them to reuse existing code.existing code.

2. Enabling them to more easily 2. Enabling them to more easily integrate components written in any of integrate components written in any of the more than 20 supported the more than 20 supported programming languages.programming languages.

3.Helping them more easily build 3.Helping them more easily build software for a wide range of devices software for a wide range of devices using same skills and tools.using same skills and tools.

Visual Studio .NETVisual Studio .NET

Integrated Development EnvironmentIntegrated Development Environment Visual Basic.NETVisual Basic.NET

Many language enhancementsMany language enhancements Inheritance,Overloading, Free Threading Inheritance,Overloading, Free Threading

Visual C++Visual C++ Integration with .NET Framework with Integration with .NET Framework with

managed extensions (classes)managed extensions (classes) C#C#

New development languageNew development language Based on C/C++ with Garbage Based on C/C++ with Garbage

Collection/Memory ManagementCollection/Memory Management

Visual Studio .NET FeaturesVisual Studio .NET Features Single IDE for all LanguagesSingle IDE for all Languages Server ExplorerServer Explorer

Event Viewer, Message Queues, ServicesEvent Viewer, Message Queues, Services SQL Databases, Data Connection, Etc.SQL Databases, Data Connection, Etc.

Integrated IE BrowserIntegrated IE Browser HTML/XML EditorsHTML/XML Editors Macros/Macro ExplorerMacros/Macro Explorer Solution ExplorerSolution Explorer Tabbed DocumentsTabbed Documents Dynamic HelpDynamic Help Common Forms EditorCommon Forms Editor

VB.NET, C++, and C#VB.NET, C++, and C#

Comparing .NET with J2EEComparing .NET with J2EE .NET is a product, Java and J2EE is a .NET is a product, Java and J2EE is a

specificationspecification Both address the web (among other Both address the web (among other

things) things) The rule-of-thumb “The rule-of-thumb “Java is platform-Java is platform-

independent,´.NET is language independent,´.NET is language independentindependent“ “

must be considered carefully:must be considered carefully: ECMA works on the standardization of C# and parts ECMA works on the standardization of C# and parts

of .NETof .NET Other languages can be compiled to the JVMOther languages can be compiled to the JVM

Comparing .NET with J2EEComparing .NET with J2EE Windows Applications are probably Windows Applications are probably

better done with .NET than Javabetter done with .NET than Java Java should be used when platform Java should be used when platform

-independence is necessary-independence is necessary Java is more matureJava is more mature Both can be used for web services Both can be used for web services

- .NET is “ nicer“, J2EE is more - .NET is “ nicer“, J2EE is more scalablescalable

ReferenceReference

Microsoft Corporation, 2002 Microsoft Corporation, 2002 MCAD/MCSD Self-MCAD/MCSD Self-Paced Training Kit: Developing Web Applications Paced Training Kit: Developing Web Applications with Microsoft Visual Basic .NET and Microsoft Viwith Microsoft Visual Basic .NET and Microsoft Visual C# .NETsual C# .NET

Microsoft Corporation, 2002 Microsoft Corporation, 2002 MCAD/MCSD Self-MCAD/MCSD Self-Paced Training Kit: Developing XML Web ServicePaced Training Kit: Developing XML Web Services and Server Components with Microsoft Visual Bs and Server Components with Microsoft Visual Basic .NET and Microsoft Visual C# .NETasic .NET and Microsoft Visual C# .NET

http://www.microsoft.com/nethttp://www.microsoft.com/net http://msdn.microsoft.com/nethttp://msdn.microsoft.com/net http://www.voelter.de/data/presentations/J2EEhttp://www.voelter.de/data/presentations/J2EE

_vs_NET_MV.ppt_vs_NET_MV.ppt

ThanksThanks

Questions?Questions?