The Complete Guide To Embarcadero RAD Server

1y ago
4 Views
1 Downloads
7.65 MB
196 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Lee Brooke
Transcription

The Complete Guideto Embarcadero RAD ServerRapidly Design, Build, Debug and Deploy Services-BasedSolutions Using RAD Studio and RAD ServerBY DAVID INTERSIMONEAn Idera, Inc. Company

Table of ContentsChapter 1: Introduction.6What You’ll Learn.6RAD Server Overview.6Building RAD Server based applications – Seven Key Aspects.8Requirements for Building RAD Server Applications.9Using the RAD Studio IDE.9RAD Server Testing and Deployment Licenses.9FireDAC Supported Databases.9Deployment Platforms Supported.10Web Servers Supported for Deployment.10See Also.10Chapter 2: Roundup of Core RAD Server Features.12Core Features.12Features Highlighted in the RAD Studio Feature Matrix.13See Also.14Chapter 3: Building Your First RAD Server Applications.16Building REST-Based Services.16Using the RAD Server Project Wizard.17The Wizard Generated RAD Server Project and Source Code.20Configuring RAD Server for your first Application.24Testing your first RAD Server Application.29Using the RAD Server Development Console.33Using the RAD Server Console Ext JS Based UI.36Using REST Debugger to Test RAD Server Applications.39Enhancing the RAD Server App with FireDAC and InterBase.40Create Client applications for the RAD Server application.44See Also.46Chapter 4: RAD Server Configuration File Explained.48Main Sections of the Configuration File.48Database Configuration [Data].49Authentication Configuration [Server.Keys].50Developer Server Connection [Server.Connection.Dev].50API Cross-Domain [Server.APICrossDomain].51Thread Management [Server.Threads.Dev].51Console Login [Console.Login].52Console Cookie Settings [Console.Cookies].52Console Display Options [Console.DisplayOptions].52Console Development Server Settings [Console.Connection.Dev].52Console Browser Settings [Console.Browser].53Console Development Paths Settings [Console.Paths.Dev].53Console ISAPI Paths Settings [Console.Paths.ISAPI].53Console Apache Paths Settings [Console.Paths.Apache].53Configuration Section for Extension Packages [Server.Packages].53Google Cloud Messaging [Server.Push.GCM].542(Copyright 2019 Embarcadero Technologies, Inc.)

Apple Push Notification Service [Server.Push.APNS].54Server Authorization Configuration Section [Server.Authorization].54Custom Resource Redirects [Server.Redirect].55Proxy Setup for Edge Module Requests [Server.EdgeHTTP].56Single/Multi Tenancy [Server.Tenants].56Specifying root paths [Server.Roots].56File Dispatching Support [Server.PublicPaths].57See Also.58Chapter 5: Deploying a RAD Server Application to Windows and IIS.59Step 1: Install InterBase 2017 with your RAD Server License.59Step 2: Install IIS.65Step 3: Create New Sites for RAD Server Engine and RAD Server Console.68Step 4: Configure the EMSServer.ini file for the RAD Server Console.70Step 5: Configuring IIS 7 for RAD Server ISAPI DLLs.70Step 6: Enable ISAPI Modules.75Step 7: Enable 32 bits ISAPI DLL on IIS 7 x64.77Step 8: Configure IIS to Allow Cross Domain Requests.77Step 9: Copy RAD Server application(s) and supporting files to the IIS production server.77Step 10: Test RAD Server on the Windows Production Server.79See Also.81Chapter 6: Deploying a RAD Server application on Linux Apache.83Prerequisites.83Install InterBase 2017 for Linux.84Starting InterBase on Linux.87Running InterBase as a Service.88RAD Server files for Linux support.89RAD Server Stand-alone Installation.90Setting Up RAD Server for Apache.95Red Hat and related non-Debian distributions of Linux.95Ubuntu and similar Debian distributions of Linux.96Final Apache Server Setup and Restart.96Test RAD Server Running on Apache.97Apache is Ready for your RAD Server Packages.97See Also.98Chapter 7: Mapping Web Properties to Folders.100A Simple Example.100See Also.105Chapter 8: Returning JSON using JSONValue and JSONWriter.106Two Frameworks for Handling JSON Data.106Using JSONValue.106RAD Server App using JSONValue classes.107VCL Client App using JSONValue classes.109Using JSONWriter.111A Simple JSONWriter Example.111Using JSONWriter with a SQL Query.112See Also.118Chapter 9: Using FireDAC Batch Move and JSONWriter.119Returning JSON Database Data Using a Memory Stream.119Using FireDAC’s BatchMove, BatchMoveDataSetReader and BatchMoveJSONWriter.1223(Copyright 2019 Embarcadero Technologies, Inc.)

See Also.126Chapter 10: Mapping Endpoints to Custom Method Names.127Adding EndPointMethod Attributes.127Test the RAD Server Application.129See Also.130Chapter 11: Mapping Endpoints to External Classes.131Create the RAD Server package application.131Test the RAD Server application.134See Also.136Chapter 12: Multiple Accept Types with EndpointProduce.137A Simple Example.137RAD Server Executes Methods Based on Accept Headers.139See Also.143Chapter 13: Using the EMSFileResource Component.144Create RAD Server application package.144Compile and Run the Application.146See Also.148Chapter 14: Using the EMSDataSetResource Component.149Test the RAD Server application.152Create VCL client application using the EMSDataSetResource endpoint functionality.154See Also.157Chapter 15: Putting it all together – Building a JavaScript client using Sencha Ext JS.158Build an Employee Data RAD Server Application.158Build and Test an EXT JS web client application using Sencha Architect.159Step 1: Create and Preview the JavaScript Web Client App.160Step 2: Test the Web Client’s Connection to RAD Server.168Step 3: Setting up JSON Employee Data Object and Data Model.169Step 4: Update the Web Client UI and Test the Final App.174See Also.179Chapter 16: Putting It All Together – Sample Walk Throughs.181RAD Server ActiveDirectoryConsole.186RAD Server Solution Series application templates.188RAD Server Solution Series: Restaurant Survey Application.189RAD Server Solution Series: Field Service Application.189RAD Server Solution Series: Nurses Station Solution.190See Also.190Chapter 17: Summary.191Sample Projects.191Acknowledgments.191Additional Resources.192DocWiki Help and What’s New.192Embarcadero Developer Community Blog Posts.192RAD in Action: RAD Server by Cary Jensen.193RAD Server Videos.193Product Videos and Webinar Replays.193RAD Server Field Service Application.1944(Copyright 2019 Embarcadero Technologies, Inc.)

RAD Server Application Deep Dive.195RAD Studio Linux Development.1955(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionChapter 1: IntroductionToday's computing landscape is no longer confined to a desktop, device, server, or data center.Applications are being moved from the desktop to multiple devices, network edge connections, and toon-premises, public and hybrid cloud services. With RAD Server and RAD Studio, you can build solutionsthat cover a wide spectrum of your company's (and customer’s) computing needs and businessrequirements.This e-book will show you how to quickly design, build, debug, and deploy services-based multi-tierapplications using RAD Server’s REST-based API hosting engine, components and technologies that areavailable in RAD Studio Enterprise and Architect editions.The computers, software and devices used in creating this technical paper include RAD Studio 10.3.1 RioEnterprise Edition, InterBase 2017 Server, Dell desktop running Windows version 10, Dell notebookrunning Windows version10, Dell notebook running Ubuntu version16.04 LTS, MacBook Pro runningmacOS 10.14 Mojave, iPhone running iOS version 12.1.4 and Nexus 7 running Android version 6.0.1What You’ll LearnAfter reading this e-book, you’ll have learned: RAD Server’s application development tips and techniquesRAD Server’s platform requirementsHow to build and test your first RAD Server applicationsHow to deploy your RAD Server applications to Windows IIS and Linux ApacheNew RAD Server features in RAD Studio 10.3.1 RioHow to build client applications using Delphi, C and JavaScript to access your RAD ServerendpointsWhat samples and application templates are available for RAD Server to get you startedWhere to find additional references, resources, videos, blog posts and moreRAD Server OverviewEmbarcadero’s RAD Server provides a turn-key application foundation for rapidly building and deployingservices-based applications using Delphi and C Builder. RAD Server supports the REST(Representational State Transfer) protocol with JSON (or XML) parameter passing and return results. Youcan publish APIs, manage users and devices that are connected to the RAD Server, capture analyticsabout the use and users of applications, connect to local and enterprise databases using the FireDACcomponents and connect with Internet of Things (IoT) devices. RAD Server also supports userauthentication, push notifications, geolocation, and data storage.6(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionThroughout the RAD Server documentation, source code, and in this technical paper, you’ll seereferences to EMS (Enterprise Mobility Services). EMS was the original name for the product,technologies, components and wizards that are now included the RAD Server product.Figure 1: RAD Server: the Service Tier for a Multi-TierArchitectureWith RAD Server’s wizards, components, and tools you can quickly develop new middleware and backend applications or migrate your existing Delphi and C Builder client/server applications to a RADServer based application to run on a server or in the cloud. You can publish your endpoints for REST callsfrom desktop, mobile, console, web and other types of applications. RAD Server comes with a full set oftools, components, database connectivity and interfaces that you will rely upon in building your serviceapplications.RAD Server applications can be deployed on top of Microsoft Windows IIS and Apache web servers, andyou can deploy your Delphi-based services to Linux Intel 64-bit servers.Figure 2: Develop and Test REST endpoints, LocationTracking and IoT Edgeware7(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionBuilding RAD Server based applications – Seven Key AspectsTo build RAD Server based applications, the diagram below guides developers through seven aspects anddevelopment phases.Figure 3: Multi-Tier Development Made EasyTo start, create your server REST/JSON API-based endpoints (you can also use XML instead of JSON ifrequired). Next extend the endpoints by integrating a wide range of databases, cloud services, IoTdevices, and other technologies.You can add more application endpoints to users and create API access control rules. You can write codethat leverages RAD Server’s built-in secure data store to keep track of persistent data. You can create usergroups, add users via console portal and import, or authenticate users via LDAP-based API services.After you have developed and debugged your applications, you can host RAD Server applications on aprivate on-premises Windows and Linux servers. You can also migrate your applications to cloud systemslike Amazon AWS, Microsoft Azure, Google, and other cloud providers.After your application is put into production, you can manage access to your APIs, control users access,and analyze the utilization of your endpoint API activity with built-in application management interfaces.Finally, you can build desktop, mobile, Web, console, and other application types supported by RADStudio. You can also build modern Web client applications using Sencha ExtJS’s set of components or useother tools and programming languages to build client applications that support your RAD Serverapplication’s REST/JSON functionality.8(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionRequirements for Building RAD Server ApplicationsThe following sections contain the product and technical requirements for building, testing, and deployingRAD Server applications. Unless otherwise noted, “RAD Studio” and the IDE apply to the RAD Studio,Delphi, and C Builder products.Using the RAD Studio IDEA RAD Studio Enterprise or Architect Edition version 10.1 Berlin or later with a commercial license isrequired to build RAD Server applications. This white paper was written and tested using a commercialversion RAD Studio version 10.3.1 Rio Enterprise Edition. The trial edition of RAD Studio Enterprise canbe used for 30 days, for development and testing. The trial edition does not support deployment to aproduction server.RAD Server Testing and Deployment LicensesTo test RAD Server applications, RAD Studio includes a 5-user developer license. Beginning with version10.2 Release 2, RAD Server deployment licenses are included in Enterprise and Architect commercialeditions of RAD Studio. These commercial editions include a single-site deployment license for RADServer. RAD Studio 10.2.3 Architect edition includes a multi-site deployment license for customers whoare on active Update Subscription.RAD Server requires an InterBase 2017 encrypted database as part of deploying your applications in aProduction Environment. You will need to use a valid RAD Server license to install this version ofInterBase.FireDAC Supported DatabasesIf your RAD Server application needs to connect with SQL databases, MongoDB, or through an ODBCdatabase bridge, you can use FireDAC with the following database systems and versions.DatabaseSupported VersionsAdvantage Database Server8.0 and higherSybase SQL Anywhere5.0.0 and higherIBM DB2 Server8.1 and higherFirebird1.5 and higherInterBase Server6 and higherInterBase Lite / InterBase ToGo6 and higherInformix Server8 and higher. Client SDK v 3.5 and higherMicrosoft AccessAccess 2000 ODBC driver v 4 from MDAC 2.8 and higher, Access2007 ODBC driver v 12 and higherMicrosoft SQL ServerSQL Server 2000, ODBC driver from MDAC 2.8, SQL Server 2005,9(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionDatabaseSupported VersionsSQL Native Client 2005,SQL Server 2012, SQL Server 2014, SQLServer 2016, SQL Server 2017, SQL Azure, SQL Native Client 2008,LocalDB, SQL Native Client 2012MySQL3.21 and higher. MariaDB 10.3Oracle8.0.3 and higherPostgreSQL7.4 and higherSQLite3.0 and laterTeradata13 and higherMongoDB3.0 and higherODBC Data SourceLevel 2, 3 driversDeployment Platforms SupportedWindows 32/64 bit: Windows 10Windows 10 Anniversary UpdateWindows 8.1Windows 7 SP1Windows Server 2012 and 2016Linux / Intel 64-bit: Ubuntu Server (Ubuntu 14.04 LTS)Ubuntu Server (Ubuntu 16.04 LTS)Ubuntu Server (Ubuntu 18.04 LTS)RedHat Enterprise Linux (version 7)Web Servers Supported for DeploymentRAD Server applications have been tested using the following Web Server applications and platforms. Microsoft IIS Server for Windows – version 7 (Windows 32/64 bit)Apache HTTP Server for Windows – versions 2.0, 2.2, and 2.4 (Windows 32/64 bit)Apache HTTP Server for Linux – version 2.4See AlsoFor the latest updated information about installation of RAD Studio and deployment of RAD Server basedapplications please refer to the following Embarcadero DocWiki online links.RAD Server Product server10(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 1: IntroductionRAD Studio Installation /en/Installation NotesRAD Studio and RAD Server Supported target /Rio/en/Supported Target PlatformsRAD Server Database Requirements for a Production o/Rio/en/RAD Server Database Requirements for a Production Environment on WindowsRAD Studio’s Platform Status /en/Main PageRAD Server ACFireDAC Supported /Rio/en/Databases (FireDAC)11(Copyright 2019 Embarcadero Technologies, Inc.)

Chapter 2: Roundup of Core RAD Server FeaturesChapter 2: Roundup of Core RAD Server FeaturesRAD Server provides developers with a wide spectrum of features for building REST-based serviceapplications. RAD Server (formerly known as EMS) was first introduced in RAD Studio version XE7. Sincethat first release enhancements and new capabilities have been added to address the needs ofdevelopers and add support for new platforms, architectures, and techniques.Core FeaturesHere is a list of some of RAD Server’s core features that you’ll want to leverage in building your servicesbased applications. REST End Point Publishing – RAD Server implements a turn-key foundation for your a

A RAD Studio Enterprise or Architect Edition version 10.1 Berlin or later with a commercial license is required to build RAD Server applications. This white paper was written and tested using a commercial

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

Manager , CodeGear RAD Studio, DBArtisan , Delphi , ER/Studio , JBuilder and Rapid SQL . Founded in 1993, Embarcadero is headquartered in San Francisco, with offices located around the world. Embarcadero is online at www.embarcadero.com. December 8, 2010

Le genou de Lucy. Odile Jacob. 1999. Coppens Y. Pré-textes. L’homme préhistorique en morceaux. Eds Odile Jacob. 2011. Costentin J., Delaveau P. Café, thé, chocolat, les bons effets sur le cerveau et pour le corps. Editions Odile Jacob. 2010. Crawford M., Marsh D. The driving force : food in human evolution and the future.