Rich UI Inter-Program Communication

Slides:



Advertisements
Similar presentations
How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Welcome to RefWorks for the Humanities & Social Sciences by Denis Lacroix.
Microsoft Access Project Six Creating an Application System Using Macros, Wizards, and the Switchboard Manager.
® IBM Software Group © 2006 IBM Corporation EGL / SOA – Creating and Consuming EGL Web Services This Learning Module shows how to utilize the RBD tooling.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Microsoft ® Office PowerPoint ® 2003 Training Create your first Presentation Mr Garel…… presents:
® IBM Software Group © 2006 IBM Corporation How to read/write XML using EGL This Learning Module shows how to utilize an EGL Library to read/write an XML.
Adding Websites to a Folder  Putting sites into an already existing folder Putting sites into an already existing folder  Adding an image on the icon.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
Rational Business Developer
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
Create your first presentation Proof, print, and prep for the show You’ve learned the essentials for creating a slide show. Now imagine that your presentation.
SharePoint You must use Internet Explorer Single click only on links and buttons There are two handouts 1.Importing a Web Part into SharePoint 2.Adding.
1 IMPORTANT NOTE  IMPORTANT NOTE not  As of this writing the default project you will download, import and use in this class is not enabled for Tomcat.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
President’s Day January 12, 2012 ASSESSING LIB 111 HOW DO I DO THAT?
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Active-HDL Interfaces Building VHPI Applications C Compilation Course 9.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 2 of 4 – Creating the Business Logic Layer These slides walk you through the process.
What are Buttons? Buttons can be clipart, pictures or animated gifs When you click on buttons they can send you to another slide Buttons can be used to.
© 2002 Legion Systems Inc 1 Howard Chen - April 6, 2010 EGL Database Connections
® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
® IBM Software Group © 2006 IBM Corporation Finding Out Which Submit Button Was Clicked – and Other JSF Command Button Techniques This section describes.
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 1 of 4 – Creating the Data Access Layer These slides walk you through the process.
® IBM Software Group © 2009 IBM CorporationLast Update: 5/27/2009 Setup Guide for the RUI EGL Distance Learning Course RBD v7.5.1 Workstation.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
NOTEPAD++ Lab 1 1 Hanin Abdulrahman. Downloading Hanin Abdulrahman 2  Click here to downlaod Notepad++.here  For Mac users, try Textmate or Textwrangler.
Instructions Get the Jeopardy Template working 1)You will need 25 questions and 25 answers. 2)After carefully considering your presentation content, create.
IBM Software Group software Rational Business Developer.
® IBM Software Group software © 2011 IBM Corporation Rational Business Developer v8 Services.
Data Extraction of Clients information from the System.
1 © 2008 IBM Corporation Topic EGL Calls to Remote Programs (Overview)  EGL Calls to Remote Programs (Overview)  Calling RPG program  Calling a CL program.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
® IBM Software Group © 2006 IBM Corporation Create EGL/JSF HelloWorld Pages This learning module walks you through the process of creating two simple “hello.
DEVRY CIS 170 C I L AB 1 OF 7 G ETTING S TARTED Check this A+ tutorial guideline at
Labs: Create, deploy and test a simple web service
MS-EXCEL PART 2.
Task 2f – part a Prove that you can receive an WITH an attachment, open it AND save the attachment to your user area. Open the with the attachment.
Select a work instruction
Event-driven programming
Writing simple Java Web Services using Eclipse
System I (AS400) Login You will need to develop Login procedures for your web applications. This short section describes how to do this for System I.
Creating and Using a Database
The Little Crab Scenario
Some Tips for Using Eclipse
CIS16 Application Development Programming with Visual Basic
How to Run a Java Program
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
You can please some of the people some of the time…
ALEPH Version 22 Offline Circulation
Defining the Fields in a Table
System I (AS400) Login You will need to develop Login procedures for your web applications. This short section describes how to do this for System I.
Moving COBOL/CICS/VSAM to iPhone
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
Dynamically Populating a Multiple Selection List Box
You can please some of the people some of the time…
EGL / SOA – Concepts and Creating/Consuming Local Services
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
Presentation transcript:

Rich UI Inter-Program Communication Course Rich UI Inter-Program Communication Units: Creating an end-to-end RESTful Service

 Create an End-to-End EGL Web Service using REST only From your EGLWeb project: Create a new Service part in the \EGLSource\services\ folder, named: RUIRestServices (remember to start Tomcat) Be sure to check:  Create as WEB (REST) service  Here is the service code You can either code this from scratch, or copy/paste this function from the Slide ***Notes When you’ve saved and all syntax errors are cleaned up: From Project Explorer, Generate the entire EGLWeb project This action will also deploy your EGL Rest Service to Tomcat service RUIRestServices function addNumbers(number1 int in, number2 int in) returns(int) return (number1 + number2); end

 Consume an End-to-End EGL Web Service using REST only --- Client In the Project Explorer, right-mouse click your service and then click on: EGL Services Extract Interface… In the wizard, select the EGLSource folder in the RUI Project i.e. EGLRichUI Create a new RUI Handler called RUIRestServiceTest in the mysamples package Copy the RUI code from the Slide ***Notes All EGL REST services use this pattern: http://<Server>:<PortNumber>/<ProjectName> /restservices/<ServiceName> Note: If you are seeing errors, make sure to Generate your service project Run your service on Tomcat Verify that Tomcat is using port 8080 Package mySamples; Import services.IRUIRestServices; Handler RUIRestServiceTest type RUIhandler { onConstructionFunction = start} function start() svc IRUIRestServices { @RESTBinding { base URI = “http://localhost:8080/EGLWeb/restservices/RUIRestServices” }}; call svc.addNumbers(3, 4) returning to showResult onException serviceLib.serviceExceptionHandler; end function showResult(result int in) writeStdout(“Your Numbers added together using a REST Service is : “ + result); End

 Create an End-to-End EGLWeb Service using REST only After copy\pasting the REST Service code into the editor, press CTRL + S to Save, then select the preview tab : Package mySamples; Import services.IRUIRestServices; Handler RUIRestServiceTest type RUIhandler { initialUI = [Box,Box1], onConstructionFunction = start} Box1 com.ibm.egl.rui.widgets.Box{padding=9, Children = [TextLabel, TextLabel1] }; TextLabel1 com.ibm.egl.rui.widgets.TextLabel{width=“25”}; TextLabel com.ibm.egl.rui.widgets.TextLabel{width=“350”}; Box com.ibm.egl.rui.widgets.Box{padding=9, children = [RESTImage], columns = 1}; RESTImage com.ibm.egl.rui.widgets.Image{src = “images/reasonglobe.jpg”}; function start() svc IRUIRestServices { @RESTBinding { baseURI = “http://localhost:8080/EGLWeb/restservices/RUIRestServices” }}; call svc.addNumbers(3, 4) returning to showResult onException serviceLib.serviceExceptionHandler; end function showResult(result int in) writeStdout( “Your Numbers added together using a REST Service is : “ + result); End Note : You will have 2 projects: A service project that is deployed on TOMCAT A RUI project that invokes the service using an interface