cf and.net working together using web services geoff snowman developer community champion...
TRANSCRIPT
![Page 1: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/1.jpg)
CF and .NET Working Together Using Web Services
Geoff Snowman
Developer Community Champion
Microsoft Corporation
![Page 2: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/2.jpg)
http://blogs.msdn.com/gsnowman
![Page 3: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/3.jpg)
The .NET Unified Programming Model
Windows APIWindows API
.NET Framework.NET Framework
Consistent API availability regardless ofConsistent API availability regardless oflanguage and programming modellanguage and programming model
ASPASP
Stateless,Stateless,Code EmbeddedCode Embeddedin HTML pagesin HTML pages
MFC/ATLMFC/ATL
Sub-classing,Sub-classing,Power andPower and
ExpressivenessExpressiveness
Visual Basic Visual Basic Object Object ModelModel
RAD,RAD,Composition andComposition and
DelegationDelegation
![Page 4: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/4.jpg)
.NET Framework Architecture
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
Base Class LibraryBase Class Library
ADO .NET and XMLADO .NET and XML
ASP .NETASP .NETWeb Forms Web ServicesWeb Forms Web Services
Mobile Internet ToolkitMobile Internet Toolkit
WindowsWindowsFormsForms
Common Language SpecificationCommon Language Specification
Visual Visual BasicBasic C++C++ C#C# J#J# …… M
icro
so
ftM
icro
so
ft
®® Vis
ua
l Stu
dio
Vis
ua
l Stu
dio
®® .NE
T .N
ET
![Page 5: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/5.jpg)
.NET Languages (Microsoft)
• Visual Basic .NET• C#• C++ (Managed/Unmanaged)• J#
![Page 6: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/6.jpg)
.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
![Page 7: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/7.jpg)
SystemSystem
System.Data (ADO .NET)System.Data (ADO .NET) System.XMLSystem.XML
System.Web (ASP.NET)System.Web (ASP.NET)
DiagnosticsDiagnostics
ConfigurationConfiguration
CollectionsCollections
NetNet
IOIO
ThreadingThreading
TextText
SecuritySecurity
CommonCommon
OLEDBOLEDB
SQLTypesSQLTypes
SQLClientSQLClient
XPathXPath
XSLXSL
RuntimeRuntimeInteropServicesInteropServices
RemotingRemoting
SerializationSerialization
SerializationSerialization
ConfigurationConfiguration SessionStateSessionState
CachingCaching SecuritySecurity
ServicesServicesDescriptionDescription
DiscoveryDiscovery
ProtocolsProtocols
UIUIHTMLControlsHTMLControls
WebControlsWebControlsSystem.DrawingSystem.Drawing
ImagingImaging
Drawing2DDrawing2D
TextText
PrintingPrinting
System.Windows.FormsSystem.Windows.Forms
DesignDesign ComponentModelComponentModel
.NET Unified Classes
SchemaSchema
ReflectionReflection
ResourcesResourcesGlobalizationGlobalization
ServiceProcessServiceProcess
![Page 8: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/8.jpg)
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
![Page 9: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/9.jpg)
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
![Page 10: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/10.jpg)
Demonstration 1Demonstration 1
ASP.NETASP.NET
![Page 11: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/11.jpg)
• 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
What is a Web Service?
![Page 12: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/12.jpg)
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
ConnectsPeople
WWW
ConnectsPeople to
Information
Web Services
ConnectsApplications
![Page 13: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/13.jpg)
PERLPERL Apache 2.0Apache 2.0 MySQLMySQL LinuxLinux
LOB J2EE AppLOB J2EE App BEA WeblogicBEA Weblogic Oracle 8iOracle 8i Sun UE 10000Sun UE 10000
XML Web Services
XML Web Services
SAP R/3SAP R/3 DB2DB2 AIXAIX IBM RS/6000IBM RS/6000
Language IndependentPlatform Independent
Device Independent
Motorola i85sMotorola i85s J2MEJ2ME
Compaq iPAQCompaq iPAQ Windows CEWindows CE StrongARMStrongARM PeopleSoft 7.0PeopleSoft 7.0
SQL 2000SQL 2000 Windows 2000/.NETWindows 2000/.NET Compaq ProliantCompaq Proliant
![Page 14: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/14.jpg)
The Web Services Stack Web Services Stack
WSDL (API description)WSDL (API description)
SOAP (messaging)SOAP (messaging)
XML (XML (lingua francalingua franca))
UDDI (discovery)UDDI (discovery)
HTTP (transport)HTTP (transport)
![Page 15: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/15.jpg)
WSDL
• Schemas }• Messages } Machine Readable Description• End Points }
![Page 16: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/16.jpg)
Demonstration 2Demonstration 2
Web ServicesWeb Services
![Page 17: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/17.jpg)
UDDI in Windows Server 2003 How does UDDI work?
UBR operator nodeUBR operator node(uddi.microsoft.com)(uddi.microsoft.com)
UBR operator nodeUBR operator node(uddi.ibm.com)(uddi.ibm.com)
Public client ABCPublic client ABCCompany XYZCompany XYZ
InternetInternetPublishesPublishes
Replicates
Replicates
SearchesSearches
MarketplaceMarketplaceor directoryor directory
![Page 18: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/18.jpg)
The Future: WSA• Use the SOAP header!
• WS-Security• WS-Routing• WS-Transaction• WS-ReliableMessaging
• WS-I
![Page 19: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/19.jpg)
Web Services Interoperability Organization (WS-I)
Operational Requirement WS-I Deliverable
• Common definition for Web services
• Profiles
• Implementation scenarios
• Implementation guidance and support for Web services adoption
• Supporting documentation and whitepapers
• Sample code and applications
• Consistent, reliable interoperability between Web services technologies from multiple vendors
• Conformance testing tools
Goal: Promote Web services interoperability across Goal: Promote Web services interoperability across platforms, applications, and programming languagesplatforms, applications, and programming languages
![Page 20: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/20.jpg)
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
UDDI 1.0
WSDL 1.1
SOAP 1.1
XML Schema 1.0
![Page 21: CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft.com Microsoft Corporation](https://reader030.vdocuments.net/reader030/viewer/2022032606/56649ea75503460f94baadbd/html5/thumbnails/21.jpg)
© 2004 Microsoft Corporation. All rights reserved.© 2004 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.