You are on page 1of 23

Web Services

1 © 2017 APPS ASSOCIATESappsassociates.com


LLC
Confidentiality

The content of this document is proprietary, confidential information pertaining to Apps Associates’
products, services, solutions and methods. Information herein is intended for use by the client or
prospective client only and must not be shared with any third party without consent from Apps
Associates.

2 © 2019
2017 APPS ASSOCIATES LLC
Agenda

• Introduction to Web Services

• Getting Web services and details

• Testing Web Services

• Use case Scenario

3 © 2019
2017 APPS ASSOCIATES LLC
Introduction to Web Services
• Consider 2 different Web Applications hosted on 2 different servers:

App Server 1 App Server 2

Get
Get Products
Products Get Products

.jar

4 © 2019
2017 APPS ASSOCIATES LLC
Introduction to Web Services

•Web Services are any services made available over the web to provide
communication between two Applications or Systems.

•It uses a standardized XML messaging system. XML is used to encode all
communications to a web service.

•Using Web Services your web application’s function or message can be


published to the rest of the world.

5 © 2019
2017 APPS ASSOCIATES LLC
Introduction to Web Services

• As all communication is in XML, web services are not tied to any one
operating system or programming language—Java can talk with Perl;
Windows applications can talk with Unix applications.

• A web service is a collection of open protocols and standards used for


exchanging data between applications or systems. Software applications
written in various programming languages and running on various platforms
can use web services to exchange data over computer networks like the
Internet.

6 © 2019
2017 APPS ASSOCIATES LLC
Introduction to Web Services

• Web services conceptually are just specialized web applications:

HTTP request (SOAP body)

Client Server

HTTP response (SOAP body)

7 © 2019
2017 APPS ASSOCIATES LLC
Introduction to Web Services

To summarize, a complete web service is, therefore, any service that :

• Is available over the Internet or private (intranet) networks


• Uses a standardized XML messaging system
• Is not tied to any one operating system or programming language
• Is self-describing via a common XML grammar
• Is discoverable via a simple find mechanism

8 © 2019
2017 APPS ASSOCIATES LLC
Why Web Services ?

• In general, software applications are developed to be consumed by the human


beings, where a person sends a request to a software service which in-turn returns
a response in human readable format.
• In the modern era of technology if you want to build a software application you don't
need to build each and everything from scratch. There are lots of readymade
services available which you can plug into your application and you can start
providing those services in your application.
• For example you want to display weather forecast information you don't need to
collect, process and render the data in your application. You can buy the services
from the people who already well-established in processing and publishing such
kind of data.
• Web services allow us to do these kind of implementations.

9 © 2019
2017 APPS ASSOCIATES LLC
Components of a Web Service

The basic web services platform is XML + HTTP. All the standard web
services work using the following components:
• SOAP (Simple Object Access Protocol)
• UDDI (Universal Description, Discovery and Integration)
• WSDL (Web Services Description Language)

 XML to tag the data


 SOAP to transfer a message
 WSDL to describe the availability of service.

10 © 2019
2017 APPS ASSOCIATES LLC
Components of a Web Service (SOAP)

SOAP: (Simple Object Access Protocol)

• It is an XML-based communication protocol for exchanging information


between computers or applications.
• It is a format for sending messages.
• It is designed to communicate via Internet.
• It is platform & language independent.
• It is simple and extensible.
• It allows you to get around firewalls.

11 © 2019
2017 APPS ASSOCIATES LLC
Components of a Web Service (UDDI)

UDDI stands for Universal Description, Discovery, and Integration.

• UDDI is an XML-based standard for describing, publishing, and finding web


services.
• UDDI is seen with SOAP and WSDL as one of the three foundation standards
of web services.
• UDDI is an open industry initiative enabling businesses to discover each
other and define how they interact over the Internet.

12 © 2019
2017 APPS ASSOCIATES LLC
Components of a Web Service (WSDL)
WSDL stands for Web Services Description Language.
• WSDL is an XML-based language for describing web services and how to
access them.
• WSDL is the standard format for describing a web service.
• WSDL definition describes how to access a web service and what operations it
will perform.
• WSDL is pronounced as 'wiz-dull' and spelled out as 'W-S-D-L'.
• So basically, WSDL defines the following attributes of a web service:
Operations
Parameters
Return values
Communication protocols

13 © 2019
2017 APPS ASSOCIATES LLC
Getting Web Services

• We can get the web services from oracle repository i.e., Fusion OER
(https://www.oracle.com/webfolder/technetwork/docs/HTML/oer-redirect.html)

14 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• As a Web Service is something which doesn’t have an User Interface, We


can’t interact with it without having a special tool installed. The tool should
allow composing XML request via it’s own interface.
• One such tool we use is SOAP UI & It needs to be installed depending on
our computer and OS specifications.

( https://www.soapui.org/downloads/latest-release.html )

15 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

In Soap UI:
• Go to File > New Soap Project
• Enter the project Name and the WSDL URI location
• Click OK

16 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• Now let us create a customer in Oracle sales cloud using a Web Service
• So, the WSDL required for creating a customer should be given as the WSDL
while creating a New Soap Project
• https://ebdt-test.crm.us2.oraclecloud.com/foundationParties/OrganizationService?WSDL

17 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• The WSDL will load all the operations available in the Web Services

18 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• Look for the createOrganization operation and expand the request.

19 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• The Default request is shown in the request tab on the right which has all the
attributes that can be passed to the operation.
• We can remove all the unnecessary attributes and pass the bare minimum
fields required to create a customer.
• Also add authorization to your request so that it can access oracle cloud.
• Provide the username and password in the Authorization tab under basic
authorization.

20 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• Click on the submit button at the top to submit your request:

21 © 2019
2017 APPS ASSOCIATES LLC
Testing a Web Service

• Check the response of the request on the right side pane.


• The HTTP Response will be ‘200 OK’ and in the XML response the PartyID
of the created customer is returned.

22 © 2019
2017 APPS ASSOCIATES LLC
THANK YOU!

Rohit Ganti

Rohit.Ganti@appsassociates.com

+91-8790-731-564

23 © 2017 APPS ASSOCIATES LLC