Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura...

45
Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA Session - 2F

Transcript of Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura...

Page 1: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Web Services Creation and Consumption in AllFusion® 2E

Paul Castleton - Manager, DevelopmentLaura Houchin - Senior Consultant

Computer Associates USASession - 2F

Page 2: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Session Abstract

This session will provide an overview of how selected action diagram statements from AllFusion 2E programs can be wrappered and deployed as Web Service components, to be called and consumed from other applications. Furthermore, AllFusion 2E has the ability to consume outside Web Service components as well…

Page 3: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Agenda:

Accessing Web Services

AllFusion Web Service consumption

Install steps

“Screenshot demo”

Page 4: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Why Web Services?

Business logic that can be invoked through standard internet protocols

Self-contained

Self-describing

Page 5: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Service Oriented Architecture

Broker

Pu

blis

h

Find

BindProvider Requestor

Page 6: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Types of Web Services

Business Information- Stock quotes

- Currency conversion

- Geographical data

Business Integration- Reservation system

- Credit check

- Product catalogue

Page 7: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Web Services / SOA- Service and message-

centric

- Loosely coupled

- Cross-domain

IT infrastructure- Application-centric

- Tightly coupled

- Isolated silos

- Dependencies on: Software infrastructure

Hardware infrastructure

HR Web App

SAP

Sales WebApp

Peoplesoft

Order Processing

Domino

Exchange

Database

Process an OrderLook-up Customer

information

Apply for a Mortgage

New Dynamic Business Paradigm – SOA

Page 8: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Needed: True root cause analysis

- web service fails

- why?

- Root cause…

- Application logic?

- ERP, mail, others?

- Servers?

- Database?

- Network?

- Hardware?

- All of the above?

New Business Paradigm Needs End-to-End Management

HR Web App

SAP

Sales WebApp

Peoplesoft

Order Processing

Domino

Exchange

Database

Process an Order Look-up Customer information

Apply for a Mortgage

Page 9: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Web Services Benefits

Provider Benefits- Reduce operating costs

- Create a new revenue channel

- New life to legacy applications

- No distribution costs or time lag

- No variation in user version and configuration

Page 10: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Web Services Benefits

Benefits to Requestors- Programmatic access to wealth of information

- Simply use Web services: no install, configuration, maintenance

- Choice of providers

Benefits to Both- Built on Open standards

- JIT integration: service requestors have to agree only on interface and not on implementation

Page 11: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

XML(Format/“Language”)

SOAP(Invocation)

UDDI(Registration/Lookup)

WSDL(Definition)

HTTP[FTP or SMTP]

(Transport)

Web Services Technology Stack

Key Web service core technologies

“Foundation”Technologies

Page 12: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Popular Stack

Format

Message

Transport

Service Definition

Registry

XML…

SOAP, XML-RPC…

HTTP, TCP/IP, SMTP

WSDL, DAML-S…

UDDI, ebXML…

Generic Examples

Page 13: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

AllFusion 2E: Web Services Support

Run Time

Web Service(s)

Network

x xx

2E Application

Page 14: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

JAVA

JAVA

AllFusion 2E: Web Services Support

COBOL xRPG x W

eb S

ervice(s)

RPGILE

COBOLILE

Run Time

Page 15: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

AllFusion Joe: WS Consumption

AllFusion® Joe

Web Service

WSDL

WS Client Stubs(Java Jar file)

Analyse

Gen

erate

Development Time

(Can invoke)

Page 16: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

AllFusion 2E: Generate WS Proxy

WS Client Stubs(Java Jar file)

2E r8.1 ToolYGENWSPXY (*CMD) Analyse

Create

WS Proxy + Array + FieldModel Definitions

(Similar to EXCUSRPGM)

RPGLESRC+

Development Time

Compile WSPXY(RPG ILE *OBJ)

(From Joe)

Page 17: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

YGENWSPXY will create a 2E function definition in the model.The function type is new: “Web Service Proxy” WSPXY).WSPXY is a similar to an EXCUSRPGM, i.e. It does NOT have an Action Diagram.YGENWSPXY will automatically generate the source for the WSPXY function definition.NOTE: At release r8.1, YGENWSPXY will generate RPG ILE source.

AllFusion 2E: Generate WS Proxy

Page 18: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

AllFusion 2E: WS Support

2E ApplicationRun Time

Web Service(s)

WS StubsWS Proxy(WSPXY)

xx

Network

Page 19: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Install Notes: install “Restore YCA structure”

Download third party jar files

Initialise Web Option

Install/configure AllFusion Joe r4.0

Page 20: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Generate Web Service Proxy

mdllib/YWSPDEFFILAdvantage 2E WSP: Default 2E File for WS Proxies

mdllib/YWSPPRDPTH

Advantage 2E WSP: Install path in the IFS

mdllib/YWSPUSRPTH

Advantage 2E WSP: User data path in the IFS

Page 21: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

“Screenshot demo”

Page 22: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 23: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 24: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 25: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 26: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 27: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 28: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 29: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 30: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 31: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 32: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option: Required 3rd party jar files

Page 33: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

YGENWSPXY Data Areas

YWSPDEFFIL = default file for proxy functions (ships as blank)

YWSPPRDPTH = default IFS install path /YCA/Advantage2EWSP/ProdData/

YWSPUSRPTH = default IFS user data path /YCA/Advantage2EWSP/UserData/

Page 34: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 35: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 36: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 37: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 38: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 39: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 40: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 41: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 42: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 43: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 44: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

EJB Option:

Page 45: Web Services Creation and Consumption in AllFusion ® 2E Paul Castleton - Manager, Development Laura Houchin - Senior Consultant Computer Associates USA.

Q&A

CA Support Connecthttp://supportconnect.ca.com

Edge user grouphttp://edgeusergroup.org