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

Post on 26-Mar-2015

219 views 3 download

Tags:

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

Web Services Creation and Consumption in AllFusion® 2E

Paul Castleton - Manager, DevelopmentLaura Houchin - Senior Consultant

Computer Associates USASession - 2F

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…

Agenda:

Accessing Web Services

AllFusion Web Service consumption

Install steps

“Screenshot demo”

Why Web Services?

Business logic that can be invoked through standard internet protocols

Self-contained

Self-describing

Service Oriented Architecture

Broker

Pu

blis

h

Find

BindProvider Requestor

Types of Web Services

Business Information- Stock quotes

- Currency conversion

- Geographical data

Business Integration- Reservation system

- Credit check

- Product catalogue

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

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

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

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

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

Popular Stack

Format

Message

Transport

Service Definition

Registry

XML…

SOAP, XML-RPC…

HTTP, TCP/IP, SMTP

WSDL, DAML-S…

UDDI, ebXML…

Generic Examples

AllFusion 2E: Web Services Support

Run Time

Web Service(s)

Network

x xx

2E Application

JAVA

JAVA

AllFusion 2E: Web Services Support

COBOL xRPG x W

eb S

ervice(s)

RPGILE

COBOLILE

Run Time

AllFusion Joe: WS Consumption

AllFusion® Joe

Web Service

WSDL

WS Client Stubs(Java Jar file)

Analyse

Gen

erate

Development Time

(Can invoke)

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)

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

AllFusion 2E: WS Support

2E ApplicationRun Time

Web Service(s)

WS StubsWS Proxy(WSPXY)

xx

Network

Install Notes: install “Restore YCA structure”

Download third party jar files

Initialise Web Option

Install/configure AllFusion Joe r4.0

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

EJB Option:

“Screenshot demo”

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option: Required 3rd party jar files

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/

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

EJB Option:

Q&A

CA Support Connecthttp://supportconnect.ca.com

Edge user grouphttp://edgeusergroup.org