Top Banner
IT2406 - SERVICE ORIENTED IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY ARCHITECTURE LABORATORY by by M.B.Bose M.B.Bose AP / IT AP / IT
16

IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

Jan 18, 2016

Download

Documents

Julius Cooper
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

IT2406 - SERVICE ORIENTEDIT2406 - SERVICE ORIENTED

ARCHITECTURE ARCHITECTURE LABORATORYLABORATORY

by by M.B.BoseM.B.Bose

AP / IT AP / IT

Page 2: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

AIM :AIM :

Service-oriented architecture (SOA) is a software design and software architecture design pattern based on distinct pieces of software providing application functionality as services to other applications.

 

Page 3: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

ObjectiveObjectiveService-orientation, as a means of

separating things into independent and logical units, is a very common concept.

Once applied to technology architecture, though, service-orientation is concerned with a specific part of our service-oriented world: business automation.

This is what makes SOA so valuable. By shaping automation logic through service-orientation, existing investments can be leveraged, business intelligence can be accurately expressed, and inherent automation agility can be achieved.

Page 4: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

LIST OF EXPERIMENTS LIST OF EXPERIMENTS 1. Develop at least 5 components such as Order Processing,

Payment Processing, etc., using .NET component technology.

2. Develop at least 5 components such as Order Processing, Payment Processing, etc., using     EJB component technology.

3. Invoke .NET components as web services.

4. Invoke EJB components as web services.

5. Develop a Service Orchestration Engine (workflow) using WS-BPEL and implement service composition. For example, a business process for planning business travels will invoke several services. This process will invoke several airline companies (such as American      Airlines, Delta Airlines etc. ) to check the airfare price and buy at the lowest price.

6. Develop a J2EE client to access a .NET web service.

7. Develop a .NET client to access a J2EE web service.

Page 5: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

SYLLABUS

 

IT2406 SERVICE ORIENTED ARCHITECTURE LABORATORY

L T P C

0 0 3 2 1. Develop at least 5 components such as Order Processing, Payment

Processing, etc., using .NET component technology.

2. Develop at least 5 components such as Order Processing, Payment Processing,etc., using EJB component technology.

3. Invoke .NET components as web services.

4. Invoke EJB components as web services.

5. Develop a Service Orchestration Engine (workflow) using WS-BPEL and implement service composition. For example, a business process for planning business travels will invoke several services. This process will invoke several airline companies (such as American Airlines, Delta Airlines etc. ) to check the airfare price and buy at the lowest price.

6. Develop a J2EE client to access a .NET web service. 7. Develop a .NET client to access a J2EE web service.

Page 6: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

REQUIREMENTSREQUIREMENTS

1. Hardware – Pentium PC Desktops.

2. Software – .NET & J2EE

Page 7: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

1. Develop at least 5 components such as Order Processing, 1. Develop at least 5 components such as Order Processing, Payment Processing, etc., using .NET component Payment Processing, etc., using .NET component technology.technology.

.NET means "Top level domain originally for network providers“.

The .NET framework is a software development framework from Microsoft. It provides a controlled programming environment where software can be developed, installed and executed on Windows-based operating systems.

5 components such as Order Processing, Payment Processing, etc., using .NET component technology.

1.Computers 2. Computers details 3. Customer 4. Invoice 5. Order class

Page 8: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

2.2. Develop at least 5 components such as Order Develop at least 5 components such as Order Processing, Payment Processing etc., using EJB Processing, Payment Processing etc., using EJB component technology.component technology.

Enterprise JavaBeans (EJB) is an architecture for setting up program components, written in the Java programming language, that run in the server parts of a computer network that uses the client/server model.

Enterprise JavaBeans is built on the JavaBeans technology for distributing program components (which are called Beans, using the coffee metaphor) to clients in a network.

Enterprise JavaBeans offers to control change at the server

reusable in multiple applications.

Page 9: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

5 components such as Order Processing, 5 components such as Order Processing, Payment Processing etc., using EJB component Payment Processing etc., using EJB component technology.technology.

1.Catlogue ◦ The Catalogue component is going to return the menu

in string form .Which wil be directly printed in servlet page

2.Itemdb ◦ This component stores every product in a menu form

with there prices. Also provide methods to translate between product code and prices.

3.customername ◦ This component stores name and address. Also provide

methods to translate between name and address. 4.payment

◦ Handles a simple payment type string which stores VISA/MasterCard

5. Menu◦ Prints the Menu from catalogue component

Page 10: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

3.3. Invoke .NET components as web servicesInvoke .NET components as web services

1. Open Visual Studio .net editor

2. Click on File->New->Website -> Asp.net Webservice

3. Add web methods.

4. Build -> Build Solution.

5. Debug -> start without debugging.

Page 11: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

6. Open Visual Studio .net editor

7. Click on File->New->Website -> Asp.net Website

8. Design view -> design your page. (add a button where we to write code that invokes web method)

9. Code view -> add this line -> localhost.service Mycalc = new localhost.service();

10. mycalc is just a reference name – userdefined.

11. To invoke the web methods use the reference name. Say if u have add as a web method u can invoke add using [myclac.add()]

12. to make this work , initially in Solution Explorer -> right click on C:\...\website.. -> select add web reference -> now a dialogue box opens.

Page 12: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

4. Invoke EJB components as web services.4. Invoke EJB components as web services. I.STEPS FOR CREATING SERVER SIDE PROJECT: 1.OPEN File->New->NewProject->Web->Web App..click

next The addserver project will be created in right side.Right

click it and choose the following. Give the web service name as addweb. After this in left side ,the design window choose the add

operation. Give the following in the opened window for creating

operation◦ Name->add

Then right click on add addserver and perform Deploy Operation…after that right click on.

Addweb and do test web service to see the SOAP request and response message.

Page 13: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

5. Develop a Service Orchestration Engine 5. Develop a Service Orchestration Engine (workflow) using WS-BPEL and implement (workflow) using WS-BPEL and implement service composition. service composition. For example, a business process for planning For example, a business process for planning business travels will invoke several services. business travels will invoke several services. This process will invoke several airline This process will invoke several airline companies (such as American Airlines, Delta companies (such as American Airlines, Delta Airlines etc. ) to check the airfare price and buy Airlines etc. ) to check the airfare price and buy at the lowest price.at the lowest price.  BPEL (Business Process

Execution Language) is an XML-based language that enables task-sharing in a distributed computing or grid computing environment. 

Page 14: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

6. Develop a J2EE client to access a .NET web 6. Develop a J2EE client to access a .NET web serviceservice

1. Create a new Web Application 2. Create the Web Service 3. Call the Java Web Service from a .Net Client

Page 15: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.

7.7. Develop a .NET client to access a J2EE web Develop a .NET client to access a J2EE web service.service.   Create a web application project. Add web service to the project. Add operations to the web service. Implementing the web methodes. Deploy and test the web service.

Page 16: IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.