Why move to VB.NET

Download Report

Transcript Why move to VB.NET

CF and .NET Working Together
Using Web Services
Geoff Snowman
Developer Community Champion
[email protected]
Microsoft Corporation
http://blogs.msdn.com/gsnowman
The .NET Unified Programming Model
Consistent API availability regardless of
language and programming model
.NET Framework
RAD,
Composition and
Delegation
Visual Basic
Object
Model
Sub-classing,
Power and
Expressiveness
MFC/ATL
Windows API
Stateless,
Code Embedded
in HTML pages
ASP
.NET Framework Architecture
C++
C#
…
J#
Common Language Specification
ASP .NET
Web Forms Web Services
Mobile Internet Toolkit
Windows
Forms
ADO .NET and XML
Base Class Library
Common Language Runtime
Operating System
Microsoft® Visual Studio® .NET
Visual
Basic
.NET Languages (Microsoft)
•
•
•
•
Visual Basic .NET
C#
C++ (Managed/Unmanaged)
J#
.NET Languages (Others)
• APL
• CFML
•
•
•
•
•
•
•
Fujitsu COBOL
Micro Focus COBOL
Eiffel
Forth
FORTRAN 95
Haskell
Mercury
•
•
•
•
•
•
•
•
•
Mondrian
Oberon
Pascal
Perl
Python
RPG
S#
Scheme
Standard Meta Language
.NET Unified Classes
System.Web (ASP.NET)
Services
Description
UI
HTMLControls
Discovery
WebControls
System.Windows.Forms
Design
System.Drawing
Protocols
Caching
Security
Configuration
SessionState
ComponentModel
Drawing2D
Printing
Imaging
Text
System.Data (ADO .NET)
System.XML
OLEDB
SQLClient
XSL
Serialization
Common
SQLTypes
XPath
Schema
System
Collections
IO
Security
Runtime
InteropServices
Configuration
Net
ServiceProcess
Diagnostics
Reflection
Text
Remoting
Globalization
Resources
Threading
Serialization
Some Application Types
•
•
•
•
•
•
•
Windows Forms
Web Forms
Web Service
Windows Service
Console Application
Class Library
Smart Device
Application
• Mobile Web
Application
• Windows Control
•
•
•
•
•
Library
Web Control Library
Setup Project
Extensibility Project
SQL Server Reporting
Services
Office Projects
Server Controls
• Programmable, server-side objects
•
•
 Properties, methods and events
Encapsulate both behavior and rendering
 HTML, XML, WML, script, etc.
You can create server controls
 Custom controls
 User controls
 Or derive from existing controls
Demonstration 1
ASP.NET
What is a Web Service?
•
•
•
A component that provides a service to a
consumer
 Components potentially have global reach
 Consumers use a standard Internet protocol
(HTTP) and data format (XML)
Web services can be implemented in many
languages
 The consumer does not care which
The basis of B2X applications
XML Web Services Explained
•
•
•
Internet connects entities
together
Email and WWW
inherently cross
boundaries
XML Web Services
applies the same
platform neutral
approach to system
integration
 Platform Neutral
 Leverage Existing
Standards
 No Rip and Replace
E-mail
WWW
Web Services
Connects
People
Connects
People to
Information
Connects
Applications
XML Web Services




LOB J2EE App
BEA Weblogic
Oracle 8i
Sun UE 10000




SAP R/3
DB2
AIX
IBM RS/6000
Language Independent
Platform Independent
Device Independent


Motorola i85s
J2ME
XML Web Services






PERL
Apache 2.0
MySQL
Linux




PeopleSoft 7.0
SQL 2000
Windows 2000/.NET
Compaq Proliant

Compaq iPAQ
Windows CE
StrongARM
The Web Services Stack
Web Services Stack
UDDI (discovery)
WSDL (API description)
SOAP (messaging)
XML (lingua franca)
HTTP (transport)
WSDL
• Schemas
• Messages
• End Points
}
} Machine Readable Description
}
Demonstration 2
Web Services
UDDI in Windows Server 2003
How does UDDI work?
UBR operator node
(uddi.ibm.com)
Marketplace
or directory
Publishes
Internet
Public client ABC
Company XYZ
UBR operator node
(uddi.microsoft.com)
The Future: WSA
• Use the SOAP header!
•
•
•
•
WS-Security
WS-Routing
WS-Transaction
WS-ReliableMessaging
• WS-I
Web Services Interoperability
Organization (WS-I)
Goal: Promote Web services interoperability across platforms,
applications, and programming languages
Operational Requirement
WS-I Deliverable
• Common definition for Web
• Profiles
• Implementation scenarios
• Supporting documentation
services
• Implementation guidance
and support for Web services and whitepapers
adoption
• Sample code and
applications
• Consistent, reliable
interoperability between Web
services technologies from
multiple vendors
• Conformance testing tools
WS-I Profiles
• Profile: Group of Web services
specifications at specific version levels
• Profiles make it easier to discuss Web
services interoperability
• First profile: WS-I Basic
XML Schema 1.0
SOAP 1.1
WSDL 1.1
UDDI 1.0
© 2004 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.