® IBM Software Group © 2006 IBM Corporation EGL / SOA – Creating and Consuming EGL Web Services This Learning Module shows how to utilize the RBD tooling.

Slides:



Advertisements
Similar presentations
® IBM Software Group © 2006 IBM Corporation Securing Your Application With WebSphere Security You will need to develop Login procedures for your web applications.
Advertisements

Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
® IBM Software Group © 2006 IBM Corporation Additional AJAX Examples and Workshops This learning module provides additional AJAX use cases and examples.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Presentation 4: IBM Rational Software Architect Example James Martin CpE 691, Spring 2010 February 18, 2010.
® IBM Software Group © 2006 IBM Corporation BIRT Integration with EGL Damian Madden – Jon Sayles.
® IBM Software Group © 2006 IBM Corporation EGL Calling Java This Learning Module shows how to use EGL to call Java classes, methods and access class variables.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
® IBM Software Group © 2006 IBM Corporation JSF Menu Component How to create and use JSF Menu components to add custom static and programmatic (dynamic)
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 3 of 4 – Creating the U.I. Layer These slides walk you through the process of.
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
® 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.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
® IBM Software Group © 2006 IBM Corporation EGL Calling RPG Programs This Learning Module shows how to use EGL to call RPG programs, running on System.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
® IBM Software Group © 2006 IBM Corporation Display contents of a Data Table in Excel right from the browser – No POI needed This section describes how.
IBM Proof of Technology Discovering the Value of SOA with WebSphere Process Integration © 2005 IBM Corporation SOA on your terms and our expertise WebSphere.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
® IBM Software Group © 2006 IBM Corporation JavaScript – and EGL and.JSP Pages This learning module describes the use of JavaScript in your EGL and.JSP.
® IBM Software Group © 2013 IBM CorporationLast Update: August 2013 Workshops RDz Workbench – Using the Data Source Explorer Workshops.
® IBM Software Group © 2006 IBM Corporation JSF Tree Control This Learning Module describes the use of the JSF Tree Control – for hierarchical organization.
® IBM Software Group © 2006 IBM Corporation EGL Programming – Data Parts and Assignment Statements – 4 – Arrays These slides walk you through the terms.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Dynamic Content Web Pages – for EGL/JSF Developers This unit introduces you to the technical.
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.
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
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.
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
1 © 2008 IBM Corporation Unit  EGL and Services Overview  Creating and Consuming Local Services  Setting up for Web Services  Creating and consuming.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
So – You want to learn how to put a BLOG article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Internet “101” for EGL/JSF Developers This unit introduces you to the technical concepts.
® IBM Software Group © 2008 IBM CorporationLast Update: 6/1/2008 BIRT Integration with EGL Damian Madden – Jon Sayles.
® IBM Software Group © 2011 IBM Corporation RDz Workbench – Debugging z/OS COBOL Applications Batch COBOL Debugging Workshop Jon Sayles, Rational System.
® IBM Software Group © 2006 IBM Corporation JSF Progress Bar This Learning Module shows how to integrate EGL/JSF functionality into a run-time progress.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
® IBM Software Group Appendix C - Code Reuse - Program Templates - Code Snippets - Code Templates.
® 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.
® IBM Software Group © 2006 IBM Corporation Individual Cell Coloring – in a JSF dataTable Control You may need to programmatically (using EGL) change the.
® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed.
® IBM Software Group © 2006 IBM Corporation EGL Programming Model These slides walk you through the concepts and vocabulary the make up the Enterprise.
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
® IBM Software Group © 2006 IBM Corporation JSF File Upload Control This Learning Module describes the use of the JSF File Upload component – for allowing.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – RBD Tooling – for Web Development This unit introduces you to the aspects of the RBD tooling.
® IBM Software Group © 2006 IBM Corporation The EGL Workbench (Eclipse) This section introduces you to the Eclipse IDE (integrated development environment).
INT-9: Implementing ESB Processes with OpenEdge ® and Sonic ™ David Cleary Principal Software Engineer.
® 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 © 2006 IBM Corporation JSF Panel – Section Controls This Learning Module shows how to develop server-side EGL applications with dynamic.
® IBM Software Group © 2006 IBM Corporation JSF Rich Text Area Component This Learning Module describes the use of the JSF Rich Text Area component – for.
® IBM Software Group © 2009 IBM CorporationLast Update: 5/27/2009 Setup Guide for the RUI EGL Distance Learning Course RBD v7.5.1 Workstation.
® IBM Software Group © 2006 IBM Corporation Dependent Combo-Box U.I. Development This Learning Module walks you through the options and development techniques.
® IBM Software Group © 2006 IBM Corporation Rational Business Developer – Version 7.1 Foundation Training and Class Setup Instructions.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Spell Checker web service (you build a web client that interacts with the service) The client uses a servlet class and a JSP page. The user passes information.
® IBM Software Group software © 2011 IBM Corporation Rational Business Developer v8 Services.
® IBM Software Group © 2006 IBM Corporation EGL.CSV (Excel) File Reading and Writing This section describes how to access.CSV (Excel Spreadsheet) files.
® IBM Software Group © 2009 IBM Corporation BIRT Integration with EGL v P. Michael Virga.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
1 © 2008 IBM Corporation Topic EGL Calls to Remote Programs (Overview)  EGL Calls to Remote Programs (Overview)  Calling RPG program  Calling a CL program.
® IBM Software Group © 2006 IBM Corporation Create EGL/JSF HelloWorld Pages This learning module walks you through the process of creating two simple “hello.
Writing simple Java Web Services using Eclipse
EGL and IBM i Connectivity, Calling things, JDBC properties
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
Rich UI Inter-Program Communication
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
EGL / SOA – Concepts and Creating/Consuming Local Services
Presentation transcript:

® IBM Software Group © 2006 IBM Corporation EGL / SOA – Creating and Consuming EGL Web Services This Learning Module shows how to utilize the RBD tooling and EGL language to create WSDL files and Web services – and consume them (call the Web Services) as part of a Service Oriented Architecture

2 EGL Web Services – Conceptual View may  To create a Web Service as opposed to a Local Service, you may want to architect a separate project for your Web Services. You can think of this as a “service” project – and you can think of calls to the web services as coming from “client” projects Service Project Service Project Web Service Web Service EGL Code EGL Code Generated Java Generated Java Deployment Descriptor Deployment Descriptor WSDL WSDL Client Project Client Project Client process Client process Service Variable Service Variable Call to the Web service Call to the Web service Deployment Descriptor Deployment Descriptor WSDL (copy) WSDL (copy) EGL Interface EGL Interface Common EAR File N ote – in our example we will use the same project, but as a best practice, you might consider a separate Service Project

3 EGL Services – Steps for Creating and Consuming Web Services  Here are the steps we’ll take together, to create a new EGL Web project (from scratch) and use it as our Web Service project. WebSphere***Notes 1.Start Tomcat – or WebSphere (see ***Notes) 2.Customize your project’s Build File 3.Create and generate a Web Service  Code the service  Generate the service 4.Generate the WSDL for your Service 5.Test the WSDL Using Web Services Explorer 6.Consume the Web Service  (If using a 3 rd Party WSDL) Import or copy the WSDL to your Client/Project  Add a WSDL entry in the services descriptor file for all Web Services  Generate the services descriptor file  In the client process - code a variable of type –Add a Bindservice property with the appropriate bindkey  Code the call to the ServiceVar.function – passing parameters 1. (From the Servers Tab) Start Tomcat (or WebSphere)

4   2. Customize Your Project’s Build-File  Next – you need to select the serverType you will be publishing the Web Server to  Open EGLWeb.eglbld  Un-check Show only specified options  Scroll down to find the serverType option  Use the combo-box to select the serverType for your project  WEBSPHERE  TOMCAT  From Project Explorer:  Generate your Project  Select the serverType

5   3. Create a new EGL Web Service services  (If not already done) Create a new EGL package in your EGLServiceProject under \EGLSource\ named: services ZipService  Create a new Service, in the \services\ package named: ZipService  Check: Create as web service See ***Notes

6   3. Create a new EGL Web Service – continued caTestbk  Create a new function in ZipService named: caTestbk You can either try typing the above function in (using Content Assist), or you can copy/paste in the code – found in the Notes section. Save the Web service Ctrl/S  Press Ctrl/S to save and validate the Service

7   4. Generate the WSDL for Your Web Service Generate the Web service -  Generate the Web service - From Project Explorer - Select EGLWeb - Right-Click and select Generate \WebContent\WEB-INF\wsdl\ After successfully generating the WSDL, you can open it in the Content Area – it’s located under: \WebContent\WEB-INF\wsdl\ unless***Notes  Close ZipService.WSDL – unless you are using WebSphere ***Notes  Next we will test the Web Service, then we will work in the Client Project and call this Web Service from both a batch program and your updatecustomer2 web page. But if you are using WebSphere – before continuing please read the Slide Notes – as you may need to customize the WSDL “end-points” – the port# for the WSDL address. ***Notes

8   5. Test the Web Service – Interactively  RBD offers a nifty interactive Web Services test facility called the Web Services Explorer. You can use this tool to test your Web Service functionality effectively, before embedding calls to it from your service client. ZipService.wsdl \WebContent\WEB-INF\wsdl\ From Project Explorer – find: ZipService.wsdl you just generated under \WebContent\WEB-INF\wsdl\  Right-click over ZipService.wsdl  Select Web Services  Test with Web Services Explorer ***Notes – please review if you do NOT see the Web Services option shown here

9   5. Test the Web Service – Interactively  This opens the Web Services Explorer – and specifically, it opens your ZipService in the Navigator – and all of the services functions are exposed as Actions for you to test.  Click caTestbk  Enter a zipCode:  Click Go  Note that returns: 0  Less than returns: -1 *** Your Application Server must be still be started *** Close the Explorer

10 Steps for Creating and Consuming Web Services – Client Project  Review of the steps. By following the previous instructions you have created the Service Project, Service and deployed it as a Web Service. 1.Start Tomcat (see ***Notes) 2.Customize your project’s Build File 3.Create and generate a Web Service  Code the service  Generate the service 4.Generate the WSDL for your Service 5.Test the WSDL Using Web Services Explorer 6.Consume the Web Service (If using a 3 rd Party WSDL…next workshop) –Import or copy the WSDL to your Client/Project –Add a WSDL entry in the services descriptor file for all Web Services (If you’ve created an EGL Web Service…this workshop) –Create an EGL Client Interface to the WSDL  Generate the services descriptor file  In the client process - code a variable of type –Add a Bindservice property with the appropriate bindkey  Code the call to the ServiceVar.function – passing parameters  Note – we are not using a 3 rd Party WSDL in this workshop, so we begin with the step to create an EGL Client Interface to the WSDL

11  6. Create an EGL Client Interface to the WSDL (from Project Explorer)  Right-click over ZipService.wsdl > Create EGL Client Interface…  Select: EGL Services > Create EGL Client Interface…  Click Next >

12  6. Create an EGL Client Interface to the WSDL From New EGL Interface IZipService  Rename the EGL source file name: IZipService IZipService  Rename the Interface name: IZipService  Click Next and then Finish ***Notes See ***Notes

13   Debug the Program and Web Service Call To test the Web Service we will call it from an existing EGL program  localServiceTest.egl  Open localServiceTest.egl USING CONTENT ASSIST! (please )  Add the following lines of code USING CONTENT ASSIST! (please )  Declare an iZipService variable  iZipService.caTestbk - int Invoke iZipService.caTestbk - return an int   Add a breakpoint Because we are going to …

14   Debug the Program and Web Service Call localServiceTest.egl Debug EGL Program  From Project Explorer, right-click over localServiceTest.egl then Debug EGL Program  Step Into all of the statements in the program. ***Notes  When prompted for the Interface Mapping, click OK ***Notes

15 Optional Workshop – Call the Web Service From a Web Page  Recall that you have an updatecustomer page that allows customers to update their state and zip code. We can invoke the ZipService as a Web Service, and test for California/Zips updatecustomer JSP Page updatecustomer JSFHandler … Edits done server/side locally … Invoke zipService Remote Process zipService.caTestbk(…) AppServer AppServer

16   Call the Web Service  Open updatecustomer2.egl USING CONTENT ASSIST!  Add the following lines of code – USING CONTENT ASSIST! (please ) Declare a Web Service variable  Declare a Web Service variable  when iZipService’s Add the when to your case statement, that references the “CA” state, and calls iZipService’s caTestbk caTestbk function Alternatively, use the complete ***Notes source code in the slide ***Notes

17   Call the Web Service  From Project Explorer, run allcustomers2.jsp on the Server  Select a customer  Try to update their State with an invalid Zip Code