CF and NET Working Together Using Web Services

CF and. NET Working Together Using Web Services Geoff Snowman Developer Community Champion gsnowman@microsoft. com 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 Web. Controls System. Windows. Forms Design System. Drawing Protocols Caching Security Configuration Session. State Component. Model Drawing 2 D Printing Imaging Text System. Data (ADO. NET) System. XML OLEDB SQLClient XSL Serialization Common SQLTypes XPath Schema System Collections IO Security Runtime Interop. Services Configuration Net Service. Process Diagnostics Reflection Text Remoting Globalization Resources Threading Serialization

Some Application Types • • Windows 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 B 2 X 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 ü E-mail WWW Web Services Connects People to Information Connects Applications Standards No Rip and Replace

XML Web Services l l LOB J 2 EE App BEA Weblogic Oracle 8 i Sun UE 10000 l l SAP R/3 DB 2 AIX IBM RS/6000 Language Independent Platform Independent Device Independent l l Motorola i 85 s J 2 ME XML Web Services l l l PERL Apache 2. 0 My. SQL Linux l l People. Soft 7. 0 SQL 2000 Windows 2000/. NET Compaq Proliant l Compaq i. PAQ Windows CE Strong. ARM

The 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 es Search Publishes Company XYZ Internet Re pl ic at es Public client ABC UBR operator node (uddi. microsoft. com)

The Future: WSA • Use the SOAP header! • • WS-Security WS-Routing WS-Transaction WS-Reliable. Messaging • 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 services • Implementation scenarios • Implementation guidance and • Supporting documentation support for Web services adoption • Consistent, reliable interoperability between Web services technologies from multiple vendors and whitepapers • Sample code and applications • 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.
- Slides: 21