IT2406 - SERVICE ORIENTED IT2406 - SERVICE ORIENTED ARCHITECTURE LABORATORY ARCHITECTURE LABORATORY by by M.B.Bose M.B.Bose AP / IT AP / IT
Jan 18, 2016
IT2406 - SERVICE ORIENTEDIT2406 - SERVICE ORIENTED
ARCHITECTURE ARCHITECTURE LABORATORYLABORATORY
by by M.B.BoseM.B.Bose
AP / IT 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.
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.
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.
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.
REQUIREMENTSREQUIREMENTS
1. Hardware – Pentium PC Desktops.
2. Software – .NET & J2EE
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
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.
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
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.
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.
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.
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.
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
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.