You are on page 1of 22

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY

COIMBATORE-10
(Approved by AICTE, New Delhi & Affiliated to Anna University)

DEPARTMENT OF INFORMATION TECHNOLOGY

Sub Code
Subject
Semester

: IT2406
: SERVICE ORIENTED
ARCHITECTURE LAB
: VII

CONTENT
LIST OF EXPERIMENTS
SOFTWARE REQUIREMENTS
Ex:No:1
Ex:No:2
Ex:No:3
Ex:No:4
Ex:No:5
Ex:No:6
Ex:No:7

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

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, 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.->

End

SOFTWARE REQUIREMENTS
1. Microsoft Visual Studio 2010 ->
2. NetBeans IDE 7.2 ->

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

Back

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 Card 3 Connected

Groovy

PHP

Bundled servers

GlassFish Server Open Source Edition 4.0

Apache Tomcat 8.0.3

Next

Back

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

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 implementation The 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

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

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.

Microsoft .NET
Microsoft .NET is the Microsoft XML Web Services platform.
It provides built-in support for building and consuming standardsbased 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.

back

Ex.No:4 Java 2 Platform, Enterprise Edition


(J2EE)
The new APIs released by Sun, as part of J2EE 1.3, provide a top-tobottom, 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).

back

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.

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'.

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

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 1 Create the Web Service


Step 2 Consume the Web Service Source File
http://localhost/suppliers.asmx?WSDL

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 1 Create the Web Service
Step 2 Consume the Web Service Source File

http://localhost/suppliers.asmx?WSDL

You might also like