230 likes | 356 Views
PowerBuilder 11: .NET Assemblies and Web Services. Dave Fish Engineering Evangelist Sybase, Inc. dfish@sybase.com. PowerBuilder 11 Overview (presented Nov. 20, 2007) Jim O’Neil Systems Consultant. .NET Windows Forms And Interoperability Dec. 4, 2007 Jim O’Neil Systems Consultant.
E N D
PowerBuilder 11:.NET Assemblies and Web Services Dave Fish Engineering Evangelist Sybase, Inc. dfish@sybase.com
PowerBuilder 11 Overview (presented Nov. 20, 2007) Jim O’Neil Systems Consultant .NET Windows Forms And Interoperability Dec. 4, 2007 Jim O’Neil Systems Consultant .NET Assemblies (presented Nov. 13, 2007) Jim O’NeilSystems Consultant Web ServiceDataWindow Feb. 5, 2008 John Strano Technology Evangelist PowerBuilder 11 .NET Deployment Web Casts .NET Web Forms Dec. 11, 2007 David Fish Engineering Evangelist .NET Assemblies & Web Services Jan. 29, 2008 David Fish Engineering Evangelist .NET Smart Client Jan. 15, 2008 John Strano Technology Evangelist
Agenda • PowerBuilder Roadmap • Deploying PowerBuilder .NVOs as .NET Assemblies • Deploying PowerBuilder NVOs as .NET Web Services
PowerBuilder Roadmap • Version 11 released in June 2007 • 11.1 Maintenance Release in November 2007 • Delivers on third-phase of PowerBuilder’s .NET initiative
2008 PowerBuilder 11.2 2008 PowerBuilder 11.5 2009 PowerBuilder 12 • AJAX support for Web Forms Applications • EAServer .NET Client Support • Enhancement requests • Core .NET enhancements • Native DataWindow updates • Updated database support • Enhancement requests • .NET in IDE • WPF/WCF support at design and run-time • Fully managed code at deployment • PowerScript Language Enhancements Language Independence Application Connectivity Multiple Platform Support Power And Performance
What are .NET Assemblies? • In the Microsoft .NET framework, an assembly is a partially compiled code library for use in deployment, versioning and security • .NET assemblies contain code in the Common Intermediate Language (CIL), which is generated from .NET languages • The CIL is then compiled into machine language at runtime by the Common Language Runtime (CLR) just-in-time compiler
Deploying NVOs as .NET Assemblies • .NET Assembly Target type • PowerScript data types automatically mapped to C# • Integrated .NET debugger support
Sybase.PowerBuilder.Win.DLL Sybase.PowerBuilder.Common.DLL Sybase.PowerBuilder.Interop.DLL Sybase.PowerBuilder.Core.DLL Architecture:.NET Assemblies Compiles to NVO .NET Assembly PBLs with NVOs DataWindow .NET PBDWM.DLL PBSHR.DLL DB Drivers Unmanaged DLLs (without PBVM) PB System Library for .NET
Deployment Considerations • The PowerBuilder .NET Runtime Assemblies need to be deployed to the client PC (You can use the PowerBuilder Runtime Packager)
Deploying PowerBuilder NVOs as .NET Assemblies - Demonstration
What are Web Services? • A collection of operations that can be described, published, located, and accessed over a network using standardized XML messaging • Proposed to World Wide Web Consortium (W3C) in Mar 2001 • http://www.w3c.org • Web Services utilize XML making them both platform and language independent • XML gives us a mechanism for making cross-platform and/or cross-language communications
Web Services Components • The primary components that make up Web Services are: • WSDL – Web Services Description Language • Used to describe Web services • SOAP – Simple Object Access Protocol • Used for sending and receiving messages from Web services
Deploying NVOs as .NET Web Services • .NET Web Services Target type • Stateless design • Public methods mapped to Web Service messages • Selectively exclude additional methods from deployment • Method aliases permitted (e.g., to account for overloading) • Design time validation available • PowerScript data types mapped to XML schema types • Integrated .NET debugger support
Sybase.PowerBuilder.Web.DLL Sybase.PowerBuilder.Common.DLL Sybase.PowerBuilder.Interop.DLL Sybase.PowerBuilder.Core.DLL Architecture:.NET Web Services Compiles to NVO ASP.NETWeb Service PBLs with NVOs DataWindow .NET PBDWM.DLL PBSHR.DLL DB Drivers Unmanaged DLLs (without PBVM) PB System Library for .NET
Deployment Considerations • The PowerBuilder .NET Runtime Assemblies need to be deployed to the Web Server (You can use the PowerBuilder Runtime Packager) • The IIS Web Server needs to be configured to use ASP .NET 2.0 • Refer to the Configuring ASP .NET for a .NET Project section in the Deploying Applications and Components to .NET manual (Compiled HTML Help File)
Deploying PowerBuilder NVOs as .NET Web Services - Demonstration
Further Resources • PowerBuilder Demonstration Recordings… • http://www.sybase.com/products/development/powerbuilder/videos • Recorded Webcasts from this series… • http://www.sybase.com/products/development/powerbuilder/webcasts
Getting Your Hands on PowerBuilder 11 • Do you have an Update Subscription Plan (USP)? • Access the Sybase Product Download Center (SPDC) at https://sybase.subscribenet.com • Download PowerBuilder 11 and companion products • Generate license keys • Need new or additional licenses? • Contact your Sybase sales office (US/Canada: 1-800-8-SYBASE) • Visit e-shop at http://eshop.sybase.com