tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

.NET Framework Overview
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
.NET Session Prepared By : Manu Sharma IBE Team. Topics Types of.NET Applications.NET Framework CLR Garbage Collection Importance of.NET.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Henrico Dolfing Business Segment Partners. Océ Document Technologies GmbH2 June, NET Framework Version 3.0.
.NET Technology.
Introduction. What is.Net? The hype: “Microsoft.Net is a set of Microsoft software technologies for connecting information, people, systems, and devices.
What is.NET?. The Clients of.NET a) A new generation of connected application b) Microsoft.NET Framework managed execution c) Allows PCs and other smart.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
.NET’s CLR How does it really work? 7/2/20151Bhavani Sankar Ikkurthi CS 795 Presentation.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Introduction to VB.Net ITE-370. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to .Net Framework
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
High thoughts must have high language. Aristophanes
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Module 1: Introduction to C# Module 2: Variables and Data Types
CIS NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials.
.NET Framework & C#.
What is.NET?.NET is a "revolutionary new platform, built on open Internet protocols and standards, with tools and services that meld computing and communications.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Introduction to .NET Rui Ye.
 Internet providing backbone for applications  Use of several web sites and devices to provide one complete solution  Software as services  Quick software.
Introduction to .NET Framework
Understanding Code Compilation and Deployment Lesson 4.
Compiling and Executing Code in.Net Microsoft Intermediate Language and Common Language Runtime.
.NET Framework Overview
Introduction .NET Framework
C# Overview and Features. Content I.History of C# II.Architecture III.How to install IV.Features V.Code Sample VI.Microsoft.NET Platform VII.Why use C#
CS795/895: Introduction. Topics Distributed Systems –Availability –Performance –Web Services Security –Authentication –Authorization –Confidentiality.
Managed C++. Objectives Overview to Visual C++.NET Concepts and architecture Developing with Managed Extensions for C++ Use cases Managed C++, Visual.
.Net Framework Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours
Component-Based Software Engineering Introduction to.NET Paul Krause.
.NET Framework Danish Sami UG Lead.NetFoundry
MSIL & CLI Kun-Yuan Shieh.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Architecture of.Net Framework. Multiple Language Support  IL (MSIL or CIL) – Intermediate Language  It is low-level (machine) language, like Assembler,
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
C# and.NET. .NET Architecture  Compiling and running code that targets.NET  Advantages of Microsoft Intermediate Language (MSIL)  Value and Reference.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
The Execution System1. 2 Introduction Managed code and managed data qualify code or data that executes in cooperation with the execution engine The execution.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Intro to ASP.NET CS-422 Dick Steflik. What is.NET As applications in the Enterprise become more and more netcentric and less and less standalone.NET is.
.NET Framework.
.NET Omid Darroudi.
Introduction Enosis Learning.
.NET and .NET Core 2. .NET Runtimes Pan Wuming 2017.
Introduction to C# AKEEL AHMED.
Introduction Enosis Learning.
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
Module 10: Implementing Managed Code in the Database
Created By: Asst. Prof. Ashish Shah, J.M.Patel College, Goregoan West
IS 135 Business Programming
Presentation transcript:

tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3

tom perkins2.NET provides Development tools Runtime environments Server infrastructure Intelligent software Enabling you to build Applications for various platforms and devices

tom perkins3.NET Uses standards to integrate applications and devices Hypertext Transfer Protocol (HTTP) XMLSOAP

tom perkins4.NET Application 1Application 2 Allows applications to exchange data using XML Web Services XML Web Services

tom perkins5.NET Process A Process 1 Process 2 Provides remoting infrastructure Allows applications running in different processes (same or different computers) to exchange data Uses HTTP or binary protocols

tom perkins6.NET Tools and Operational Systems Smart Client SoftwareXML Web Services.Net Server Infrastructure Visual Studio.NET and the.NET Framework Access data from any location by PC, mobile, or client using Web Services Secure and scalable platform for distributing Web apps Includes: Windows 2000 servers.NET Servers.NET Enterprise Servers Core to app integration For Internet and Intranet apps; exchange data using HTTP, XML and SOAP Build, host, and consume web apps

tom perkins7 Desktop computer Mobile device XML Web Services Servers: Web Services Allow client app to exchange data with another client or server Server apps to exchange data with one another Apps on any device with apps on any other device

tom perkins8 European Computer Manufacturers Association  standard defines CLS-Rules for language interoperability - Syntax CLI - Semantics VisualBasic.NETVisualC#.NETVisualJ#.NETVisual C++.NET CLS Compliant Framework runtime engine executes MSIL all produce Intermediate Language (MSIL) code

tom perkins9 CLI Specifies,.NET Framework provides: Common Language Runtime (CLR) provides execution environment CLR loads and executes your MSIL code Common Type System (CTS) a string in VB is a string in C# provides data, value, and object types no language superiority in.NET Type safety Operations performed on one type are performed on that type only Each value has a type, each reference has a type Managed Code.NET loads and executes code, allocates memory, provides automatic garbage collection Side-by-Side execution Assemblies are deployment units in.NET Assemblies contain IL code and metadata (name, version, version of dependent assemblies) Different versions of app can run side by side

tom perkins10 VisualBasic.NETVisualC#.NETVisualJ#.NETVisual C++.NET Web Forms XML Web Services ASP.NET.NET Framework Class Library – all common.NET Types Windows Forms Win 32 Common Language Runtime Loads IL code, compiles into native code, enforces security and type safety, provides thread support (managed code) Main components of.NET Framework

tom perkins11 Understanding the Common Language Runtime (CLR) Lesson 2

tom perkins12 What we’ll look at … CLR Architecture CLR Components Functions of CLR components

tom perkins13 CLR Components Class loader Loads classes into the runtime MSIL/native compiler Code manager Garbage collection Security engine Type checker Thread Support Exception mgr Debug engine COM marshaller Base class support Converts MSIL code to native code Manages code during execution Automatic memory management Enforces security restrictions Strict type enforcement Multi- threading support for apps Execption handing mechanism Debug diff types of apps Exchange data with COM apps Provide types for apps at runtime

tom perkins14 For a program to run in the CLR: Source code CLS-compliant compiler Metadata Intermediate code (MSIL) Instructions are CPU- independent Must be compiled into CPU-dependent instructions Describes the code Identifies types used in code Contains references to other types used Located in portable executable file

tom perkins15 Just-in-Time (JIT) Compilation Portable execution file Metadata MSIL Class loader Portable execution file Metadata MSIL CLR Memory Loaded into memory JIT Compiler (different for different CPU architectures) Compiled only 1 st time used Native code Native code used on 2 nd + use

tom perkins16 Program initiation Portable execution file Metadata MSIL CLR Memory Code manager Calls entry point method Main WinMain dllMain places objects into memory controls execution Native code Garbage collector Checks objects on heap Identifies objects no longer required Removes them

tom perkins17 During execution Objects Values References CLR Memory Native code Type Checker Makes sure everything has a valid type Makes sure only valid operations are performed (int value assigned to int variable) Err raised if string assigned to int Security Engine Enforces security restrictions Controls access to resources Hard disk Network connections

tom perkins18 Managed multithreading support Single process Application domain Can be divided into subprocesses Each domain can contain one or more threads Runtime monitors all threads in process

tom perkins19 Interoperating with unmanaged code CLR – Managed Code Managed Code COM Marshaller Data represented differently in diff environments COM Marshaller converts data formats when data is exchanged

tom perkins20 Other Components in CLR Structured Error Handling Mechanism Base Class Library Support Common Debug Engine Handles debugging in any CLS Language Debug on both local and remote computers

tom perkins21 CLR – Managed Execution Process eLearning – Chapter 1 Lesson 3

tom perkins22 Managed Execution Process Runs the application from within the CLR –Loads and executes the application One major advantage – Automatic Memory Management – garbage collection Other services performed: –JIT compilations –Ensuring type safety –Enforcing security –Handling exceptions

tom perkins23 Managed Execution Process involves Managed Code Managed Data Self-describing code Provides info to CLR Gets run-time services from CLR Info stored in metadata in portable executable files describes code describes types used by code Allocated and released by garbage collector Managed code can access both managed and unmanaged data

tom perkins24 With Garbage Collection, you don’t need to worry about: Allocating memory Not releasing memory that is no longer required Trying to access released memory Tasks of Automatic Memory Management –Allocating memory –Releasing memory –Implementing Finalizers

tom perkins25 Memory Allocation Process is initiated Contiguous address space is reserved (managed heap) Pointer established (where next object will be located) new creates new object Memory allocated ObjPtr moved Managed Heap ObjPtr  new object Much faster than unmanaged memory allocation new operator may throw Out of Memory exception

tom perkins26 Releasing Memory Application – set of roots –Point to object on heap or are null –Global and static object pointers –Local variables –Reference object parameters on thead stack JIT compiler and runtime maintain list of roots Garbage collection creates a reachability graph Initially, all heap is considered garbage GC, using root list, identifies reachable objects GC collection process, frees memory on stack Compression through memory copy GC updates the root pointers on the list

tom perkins27 More Garbage (Collection, that is) Objects on heap divided – Generations 0,1,2 Generation 0 – recently created Gen 0 searched, collected, compressed Surviving objects promoted to higher generation Gen 1,2 searched for unreachables only when needed

tom perkins28 GC Can’t clean system resources (file handles, connection, etc) used by managed code You must release memory in Dispose method You must explicitly call Dispose method after you finish working with the object

tom perkins29 Finalize Method Release system resources in Finalize method code GC calls Finalize before releasing memory for that unreferenced object

tom perkins30 Finalization (Code cleanup) Finalizers – methods called just before object is garbage-collected. 2 Special methods – Dispose and Finalize Dispose method should release its resources plus resources owned by parent. Do so by calling Dispose() on the parent. Parent Object Dispose() Your Object Dispose()

tom perkins31 Dispose Method – 2 ways to execute Dispose() … YourClass … 1) Call Dispose directly from your code … -- or – Finalize() 2) call Dispose from your Finalize method. (Can clean both managed and unmanaged resources) (Dispose can clean only unmanaged resources - GC may have already got ‘em) Executed at GC time Dispose() should call GC.SupressFinalize() method – keeps GC from cleaning up twice

tom perkins32 Looking Ahead Portable executable file MSIL Assembly Manifest Contains info about assembly and resources required (type data) Runtime uses assembly manifest to load assemblies into runtime – required  All about Assemblies