Example: stock market

2011 Practical Web services for RPG - LISUG

IBM Power Systems Practical Web services for RPG. IBM Integrated Web services for i Tim Rowe 2011 IBM Corporation IBM Power Systems Presentation RPG Web Service Business Logic Integrated Web services for IBM i Project Intro to SOA/WS on IBM i Web services coding for RPG considerations Create, Deploy and Testing an RPG Web service Consuming Web services with RPG on IBM i 2 2011 IBM Corporation 1. IBM Power Systems Web services Made Easy An IBM i Project 3 2011 IBM Corporation IBM Power Systems Web services Made Easy An IBM i Project IBM Integrated Web services for i An Easy Step to starting with SOA on System i.

5 © 2011 IBM Corporation IBM Power Systems 9 What is …..? … a service? A repeatable business task – e.g., check customer credit; open new account … service ...

Tags:

  Services, Practical, Practical web services for rpg

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of 2011 Practical Web services for RPG - LISUG

1 IBM Power Systems Practical Web services for RPG. IBM Integrated Web services for i Tim Rowe 2011 IBM Corporation IBM Power Systems Presentation RPG Web Service Business Logic Integrated Web services for IBM i Project Intro to SOA/WS on IBM i Web services coding for RPG considerations Create, Deploy and Testing an RPG Web service Consuming Web services with RPG on IBM i 2 2011 IBM Corporation 1. IBM Power Systems Web services Made Easy An IBM i Project 3 2011 IBM Corporation IBM Power Systems Web services Made Easy An IBM i Project IBM Integrated Web services for i An Easy Step to starting with SOA on System i.

2 Simplify the process of externalizing RPG/COBOL business logic as a service. Externalize various RPG/COBOL business tasks as services . Abstracts the hidden complexities of Web services for IBM i. Provide RPG/COBOL Developer easy to use Web interface, not requiring additional tools or skills 4 2011 IBM Corporation 2. IBM Power Systems Introducing - IBM Integrated Web services Server on i Key Features of IBM i Web services server Integrated into IBM i WS-Basic Profile Compliant Developed for RPG/COBOL. Open Source Technology Removes Complexities of Web services for IBM. i Developer Easy to Use - Web Admin Interface IBM i Web services Test Client Externalizes IBM i Program Objects Tracing WS-Message & Program Objects Scripting Support 5 2011 IBM Corporation IBM Power Systems IBM Integrated Web services server for i Merged the Development Process and Deployment Server 2 Steps to Create a Web services server on IBM i 7 Steps to Deploy an RPG/COBOL Service Built on IBM Integrated Web Application Server for I.

3 Note: 2 Methods returned for every procedure or program XML - Automated Data (Including Data Structures). Standard Serialized objects. Embedded Axis 2 Engine into IBM i NO External tools NO Additional products 6 2011 IBM Corporation 3. IBM Power Systems How do I get to it Yea, its in IBM i 5722SS1 30 Qshell V5R4!!!! 5722SS1 33 Portable App Solutions Environnent 5722DG1 *BASE IBM HTTP Server for i5/OS. Group PTF SF99114 Level 29. 5722JV1 8 J2SE 32 bit Group PTF SF99291 Level 27. IBM i GA Cum Group PTF SF99115 Level 22. Group PTF SF99562 Level 17. IBM i GA Cum Group PTF SF99368 Level 10. Group PTF SF99572 Level 6.

4 7 2011 IBM Corporation IBM Power Systems Introduction to Web services and SOA. 8 2011 IBM Corporation 4. IBM Power Systems What is ..? a service? service oriented architecture (SOA)? A repeatable An IT architectural business task , style that supports check customer integrating your credit; open new business as linked account services "SOA impacts every aspect of IT and business.. 9 2011 IBM Corporation IBM Power Systems Web services Overview Definition: Self-Contained with well-defined interfaces that provide functionality that is accessible over the Internet/Intranet Key Technologies: XML, WSDL, SOAP, UDDI.

5 10 2011 IBM Corporation 5. IBM Power Systems SOA Is Like Musical Notes . Each musical notes represents a business service Checking Tracking Checking Inventory Shipment Credit Opening Placing an Account Order SOA allows for flexible composition of music 11 2011 IBM Corporation IBM Power Systems Web services are a good start . Turn this into this (web services ). Service Service Service Service Service Service Service = Interface = Application = Interface = Service Rich business Decouples the The number and Business applications abstractions describe interfaces from complexity of the and their interfaces the application the business interfaces is become reusable interface applications reduced 12 2011 IBM Corporation 6.

6 IBM Power Systems IWS & Android on IBM i IWS Enables Android Applications 13 2011 IBM Corporation IBM Power Systems RPG Coding Considerations 14 2011 IBM Corporation 7. IBM Power Systems RPG Best Practices Quick Reference Use Free Form Utilize ILE Techniques Procedures Binding Directories Service Programs Exports Hints & Tips Centralize Declarations Expand Naming Conventions Write Indicatorless Code Use Structured Programming Techniques Use Comments Avoid Obsolescence 15 2011 IBM Corporation IBM Power Systems What is a RPG Service? Function Get information Perform action Properties Encapsulated Reusable Stateless Event driven Loosely coupled Modular 16 2011 IBM Corporation 8.

7 IBM Power Systems Properties Comparison Review Service Service Traditional Sub Routine Encapsulated Global data Access through interface Access directly Reusable Reuse by copy Write once use everywhere Maintain everywhere Stateless Stateful Information not retained Information retained in job Event driven No required order Application driven Loosely coupled Fixed order Callable from anywhere Tightly coupled Tied to application 17 2011 IBM Corporation IBM Power Systems Embedding Web services information with RPG on IBM i 18 2011 IBM Corporation 9. IBM Power Systems Example: RPG Find Customer RPG Find Customer 19 2011 IBM Corporation IBM Power Systems V5R4 - Enablement 20 2011 IBM Corporation 10.

8 IBM Power Systems Binding RPG Business Logic to Program/Service Program Service Info embedded with RPG or COBOL program objects (PCML). For IBM i & need to recompile specifying: CRTRPGMOD PGMINFO(*PCML *MODULE). CRTCBLMOD PGMINFO(*PCML *MODULE). For V5R4 recompile specifying following option in the source: For RPG. H PGMINFO(*PCML:*MODULE). For COBOL. PROCESS OPTIONS PGMINFO(PCML MODULE). Service Information can alternatively be generated in IFS. Restrictions: Program objects must be Stateless'. Further Information - 21 2011 IBM Corporation IBM Power Systems Externalizing Web services with RPG on IBM i (Demo) - Simplification and Ease of Use 22 2011 IBM Corporation 11.

9 IBM Power Systems Web Admin: Install Web Service Access Web Admin http://hostname:2001/HTTPA dmin Click on the Create New Web services Server link 23 2011 IBM Corporation IBM Power Systems And now for Breaking News . 24 2011 IBM Corporation 12. IBM Power Systems Web Integration New Feature In the past, any user wanting to use Web Admin they were required to have *ALLOBJ and *IOSYSCFG special authority! System Security policy just does not allow this! New Permissions' Support integrated!!! - Now a *USER granted permission' can use the GUI. - Group profiles are now supported 25 2011 IBM Corporation IBM Power Systems Web Integration New Features Developers can use Web Admin No longer need *ALLOBJ special authority Administrators can grant users Permission'.

10 Empowering the User Group Profile support Two Permissions Available Operator Start & Stop servers Developer All functions Integrated GUI interface now available to Developers and Operators without compromising your system security 26 2011 IBM Corporation 13. IBM Power Systems Creating a Web Service Create Web Service Wizard HTTP Server IAS Web Server Axis 2 runtime CreateCust Data Definition RPG runtime Based on PCML. PCML data definition CreateCust WSDL. FindCust Data Definition Based on PCML. PCML data definition FindCust WSDL. Java IBM i Operating System 27 2011 IBM Corporation IBM Power Systems Create Web Service Integrated in IBM i Where the Web Service runs Web Server - part of the IBM i operating system HTTP servers IAS server Runs on Axis2 runtime engine Create the Web Service artifact Based on a compiled RPG object Uses the imbedded PCML object Creates a java artifact Creates necessary RPG environment User profile, library list Runs the specified RPG program 28 2011 IBM Corporation 14.


Related search queries