presentation soa lab
Post on 02-Jun-2018
225 Views
Preview:
TRANSCRIPT
-
8/10/2019 Presentation SOA Lab
1/22
Sub Code : IT2406Subject : SERVICE ORIENTED
ARCHITECTURE LAB
Semester : VII
SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGYCOIMBATORE-10
(Approved by AICTE, New Delhi & Affiliated to Anna University)
DEPARTMENT OF INFORMATION TECHNOLOGY
-
8/10/2019 Presentation SOA Lab
2/22
CONTENT
LIST OF EXPERIMENTS
SOFTWARE REQUIREMENTS
Ex:No:1
Ex:No:2Ex:No:3
Ex:No:4
Ex:No:5Ex:No:6
Ex:No:7
-
8/10/2019 Presentation SOA Lab
3/22
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.->
Next
-
8/10/2019 Presentation SOA Lab
4/22
CONTD..
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, DeltaAirlines 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.->
End
-
8/10/2019 Presentation SOA Lab
5/22
SOFTWARE REQUIREMENTS
1. Microsoft Visual Studio 2010 ->
2. NetBeans IDE 7.2 ->
-
8/10/2019 Presentation SOA Lab
6/22
Microsoft Visual Studio is an integrated development
environment (IDE) from Microsoft. It is used to develop computer
programs for Microsoft Windows superfamily of operating
systems, as well as web sites, web applications and web services.
Visual Studio supports different programming languages C, C++
(via Visual C++), VB.NET (via Visual Basic .NET),ASP.NET, C#
(via Visual C#), C# .NET and F#.
It also supports XML/XSLT, HTML/XHTML, JavaScript and CSS.
Next
-
8/10/2019 Presentation SOA Lab
7/22
Back
-
8/10/2019 Presentation SOA Lab
8/22
NetBeans IDE is a free, open source IDE available for Windows, Mac, Oracle
Solaris, Oracle Linux, and other Linux distributions.
Supported technologies
NetBeans Platform SDK
Java SE
Java FX
Java EE
Java ME
HTML5
C/C++ Java Card3 Connected
Groovy
PHP
Bundled servers
GlassFish Server Open Source Edition 4.0
Apache Tomcat 8.0.3 Next
-
8/10/2019 Presentation SOA Lab
9/22
Back
-
8/10/2019 Presentation SOA Lab
10/22
Ex.No:1 What is a .NET Component?
A component is a special type of executable built from a .NET project.
After compilation the component is typically referenced by applications
needing the services provided by the component.
In many .NET Web environments, components run on the Web server
and provide data and other services.
Steps:
1.Create a component
2.Create a application to refer the component
Next
-
8/10/2019 Presentation SOA Lab
11/22
Ex.No:2 What is EJB Component?
The Enterprise JavaBeans (EJB) technology defines a model for the
development and deployment of reusable Java server components,
called EJB components.
An EJB component is a nonvisual server component with methods that
typically provide business logic in distributed applications.
EJB component implementationThe Java class that runs in the server
implements the beans business logic. The class must implement the
remote interface methods and additional methods for lifecycle
management.
Next
-
8/10/2019 Presentation SOA Lab
12/22
EJB Component Types
Stateful session beans
Stateless session beans
Entity beans
Stateless session beans
A stateless session bean manages tasks that do not require the keeping
of client session data between method calls.
Back
-
8/10/2019 Presentation SOA Lab
13/22
Ex.No:3 Web Services: All About Interoperability
Web Services are self-contained, modular applications that can be
described, published, located, and invoked over a network.
They are an emerging technology that are based on service-oriented
architecture (SOA) and enable new and existing applications to be
integrated using of XML as data format over standard network
protocols such as HTTP for transportation.
Web Services are based on "open" environment and standards, which
ensures that a Web Service can be located and used, no matter where it
is, what platform it runs on, or who developed it.
-
8/10/2019 Presentation SOA Lab
14/22
Microsoft .NET
Microsoft .NET is the Microsoft XML Web Services platform.
It provides built-in support for building and consuming standards-
based Web Services. It enables the creation and use of XML-based
applications, processes, and Web sites as Web Services.
Through just a single line of code and/or setting a value of an
attribute, it is possible to turn an application into a Web Service in
the .NET environment.
Furthermore, by default all inter-process communication is done
using the SOAP standard.
-
8/10/2019 Presentation SOA Lab
15/22
back
-
8/10/2019 Presentation SOA Lab
16/22
Ex.No:4 Java 2 Platform, Enterprise Edition
(J2EE)
The new APIs released by Sun, as part of J2EE 1.3, provide a top-to-
bottom, end-to-end solution for a Web Services-based architecture.
J2EE 1.3 simplifies integration with new technologies for Web
Services, such as Java Messaging Service ( JMS), J2EE Connector
Architecture ( JCA), Java API for XML Messaging (JAXM), Java
API for XML Processing (JAXP), Java API for XML Registries
(JAXR), and Java API for XML-based RPC (JAX-RPC).
-
8/10/2019 Presentation SOA Lab
17/22
back
-
8/10/2019 Presentation SOA Lab
18/22
Ex.No:5 WS-BPEL
BPEL is used as a server side programming language. This means that
companies will often either deploy BPEL as something to serve and track a
customer request or they will deploy a BPEL server as a nice easy to use
proxy to all their legacy systems.
In either case, a common chain of events will be as follows:
Web Service client (user) requests something from the server (perhaps via a
browser or another server)
Client request is received by the BPEL server.
-
8/10/2019 Presentation SOA Lab
19/22
Client request is identified as a new request and a new BPEL process is
used to serve that client
Client continues to interact with the BPEL process, making requests etc,
until the interaction is complete
BPEL process disappears and client goes about it's business
This automatic creation of BPEL process instances in response to client
requests is called 'create on demand'.
-
8/10/2019 Presentation SOA Lab
20/22
BPEL is an XML programming language. As a programming
language it has three basic components,
Programming logic - BPEL
Data types - XSD (XML Schema Definition)
Input/Output (I/O) - WSDL (Web Services Description
Language)
back
-
8/10/2019 Presentation SOA Lab
21/22
Ex.No:6
Create the application from which you want to access a Web service.
Add a Web reference for the Web service with which your
application will interact.
Access the methods of the Web service as you would any other
component.
The two lines of code in bold represent the code that is necessary to
access the Web service.
Step 1Create the Web Service
Step 2Consume the Web Service Source File
http://localhost/suppliers.asmx?WSDL
-
8/10/2019 Presentation SOA Lab
22/22
Ex.No:7
Create the application from which you want to access a Web service.
Add a Web reference for the Web service with which your application will
interact.
Access the methods of the Web service as you would any other component.
The two lines of code in bold represent the code that is necessary to access
the Web service.
Step 1Create the Web Service
Step 2
Consume the Web Service Source File
http://localhost/suppliers.asmx?WSDL
top related