SlideShare a Scribd company logo
ASTCORPORATION
RECOGNIZED.SPECIALIZED. PREFERRED.
Getting Started with Web Services
Zeeshan Baig
05/8/2015
2
• Over 15 years of Experience with Oracle
Products
• Working at AST Middleware practice for
about 3 years
• Oracle ACE
• Blog: www.baigzeeshan.com
• Twitter: @baigsorcl
• LinkedIn: www.linkedin.com/in/baigzeeshan
About Me
3
 What is a Web Service?
 Web Services Message Formats
 Web Services Standards
 How to Create Web Services
 Testing Tools
 Security
 Q & A
Disclaimer: All Images used in presentation are property of respected owners and used for educational purpose only
Agenda
4
Quote
5
What is a Web Service?
6
In Simple words
“A Framework for a conversation
between 2 devices”
What is a Web Service?
7
• Communicate using open protocols
• Uses specific Message Format
• Hides complexities between devices
What Web Services do?
8
• Service Provider
– Provides Services to rest of the world
– Could provide data in different formats
• Requestor
– Requestor will be aware of type of web
service
– Don’t need to know complexities behind
Service
How it works?
9
Examples of Web Services
10
 Yahoo Weather API
• https://developer.yahoo.com/weather/
Examples of Web Services - 1
11
 Flight Aware
• http://flightaware.com/commercial/flightxml/
Examples of Web Services - 2
12
 OANDA Currency Exchange
• https://www.oanda.com/rates/test-drive
Examples of Web Services - 3
13
• Integrate with other systems
• Create Reusable components
• Publish functions and messages to
rest of the world
• Your Java based application can
send data to your .NET application
• EBS system data can be leverage by
Cloud based applications
Benefits of using Web Service
14
Demo Public Web Services
15
Message Formats
16
• XML • JSON
Message Formats
17
• XML stands for Extensible Markup Language.
• XML was designed to describe data.
• XML is a software- and hardware-independent tool
for carrying information
• Learn more about XML at
– http://www.w3schools.com/xml/
XML Overview
18
• Plain Text
John
Doe
Anna
Smith
Peter
Jones
• XML Document
<employees>
<employee>
<firstName>John</firstName>
<lastName>Doe</lastName>
</employee>
<employee>
<firstName>Anna</firstName>
<lastName>Smith</lastName>
</employee>
<employee>
<firstName>Peter</firstName>
<lastName>Jones</lastName>
</employee>
</employees>
XML Overview
19
• Syntax rules of XML are very
simple and logical
• All XML Elements Must Have a
Closing Tag </>
• XML Tags are Case Sensitive
• XML Documents Must Have a
Root Element <employees>
• Data resides under elements
tags
• XML Document
<employees>
<employee>
<firstName>John</firstName>
<lastName>Doe</lastName>
</employee>
<employee>
<firstName>Anna</firstName>
<lastName>Smith</lastName>
</employee>
<employee>
<firstName>Peter</firstName>
<lastName>Jones</lastName>
</employee>
</employees>
XML Syntax
20
XML Overview
21
• JSON: JavaScript Object Notation.
• Lightweight
• Transportation Independent
• JSON is an easier-to-use alternative to XML.
• JSON is "self-describing" and easy to understand.
• Learn more about JSON at
– http://www.w3schools.com/json
JSON Overview
22
• Plain Text
John
Doe
Anna
Smith
Peter
Jones
• JSON Document
{
"employees":
[
{"firstName":"John",
"lastName":"Doe"},
{"firstName":"Anna",
"lastName":"Smith"},
{"firstName":"Peter",
"lastName":"Jones"}
]
}
JSON Overview
23
• JSON syntax is derived from
JavaScript object notation
syntax:
• Data is in name/value pairs
• Data is separated by commas
• Curly braces hold objects
• Square brackets hold arrays
• JSON Document
{
"employees":
[
{"firstName":"John",
"lastName":"Doe" },
{"firstName":"Anna",
"lastName":"Smith"},
{"firstName":"Peter",
"lastName":"Jones"}
]
}
JSON Syntax
24
Web Services Standards
25
•SOAP •REST
Web Services Standards
26
• SOAP
– Simple Object Access Protocol
– Relies on XML message Format
– Requires WSDL Document
– Requires Contract
– Enterprise Standard
Types of Web Services
27
• REST
– Representational State Transfer
– HTTP Bases verbs
– GET, PUT, POST, DELETE
– Simple familiar
– Programmer friendly
– No Contract
– Mobile
Types of Web Services
28
SOAP vs REST - 1
29
SOAP vs REST - 2
30
Tools
31
• Any Development Tool to build Web
Services
– JDeveloper
– Eclipse
– Microsoft Visual Studio
• SOAP UI for testing
• REST Console (Chrome Extension)
• Web Browser
• Oracle HTTP Analyzer
• Oracle Enterprise Manager
Tools
32
• Inbound and Outbound data from
Cloud based application to on
premise apps
• Resolve Compatibility issues for
example legacy java application to
use modern feature
• Payment gateways (Visa,
MasterCard)
• Schedule of data movement from
.NET application to SOA based
application
Real world Use Cases
33
1. Create XML Schema
2. Create WSDL Document
3. Implement Logic
4. Deploy Web Service to server
5. Create Proxy client
6. Call it using Proxy client
Creating SOAP Based Web Services
34
Creating SOAP Based Service
35
1. Create Implementation Logic
2. Add Jersey Libraries to Project
3. Add REST annotations
4. Deploy
5. Call
Creating REST Web Services
36
Creating REST based services
37
Testing Tools
38
Testing Web Services using SOAP UI
39
Security
40
• Enable Encryption - lets the traffic go in a
non-human readable format (SSL)
• Enable Authentication – Allows to pass user
name and password with every request
• API Keys - String that's issued to a developer
by a web service provider that the
developer then includes in their web service
requests.
• Security Tokens - may be a physical device
that an authorized user of computer
services is given to ease authentication
Web Service Security
41
• Know we are familiar with Web Services
• Web Services is a framework to communicate
between 2 devices
• We know XML and JSON message Formats
• SOAP and REST are main standards
• Difference between SOAP and REST
• Tools to develop and test Services
• Real world examples
Summary
42
Question & Answer

More Related Content

PPTX
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
PDF
Altitude SF 2017: Granular, Precached, & Under Budget
PPTX
Azure Web Apps Advanced Security
PPTX
A (XPages) developers guide to Cloudant - MeetIT
PPTX
Micro Services in .NET Core and Docker
PPTX
ASP.NET: Present and future
PDF
Infra for startup
PPTX
Azure staticwebapps
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
Altitude SF 2017: Granular, Precached, & Under Budget
Azure Web Apps Advanced Security
A (XPages) developers guide to Cloudant - MeetIT
Micro Services in .NET Core and Docker
ASP.NET: Present and future
Infra for startup
Azure staticwebapps

What's hot (20)

PDF
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
PPTX
The ASP.NET Web API for Beginners
PPTX
NGINX MRA Fabric Model Release and Ask Me Anything Part 4
PPTX
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
PPTX
Azure functions serverless
PDF
Architecting &Building Scalable Secure Web API
PPTX
Azure Automation and Update Management
PDF
Webinar - Big Data: Let's SMACK - Jorg Schad
PPTX
Amazon Webservices for Java Developers - UCI Webinar
PPTX
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
PPTX
Deep-dive building solutions on the SharePoint Framework
PPTX
Data stores: beyond relational databases
PDF
Introduction to Android M
PDF
Managing your camels in the cloud with CI/CD
PPTX
App fabric introduction
PDF
TabTale Architecture Overview
PPTX
Owin & katana
PDF
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
PPTX
PHX DevOps Days: Service Mesh Landscape
PPTX
Azure Web App services
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
The ASP.NET Web API for Beginners
NGINX MRA Fabric Model Release and Ask Me Anything Part 4
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Azure functions serverless
Architecting &Building Scalable Secure Web API
Azure Automation and Update Management
Webinar - Big Data: Let's SMACK - Jorg Schad
Amazon Webservices for Java Developers - UCI Webinar
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
Deep-dive building solutions on the SharePoint Framework
Data stores: beyond relational databases
Introduction to Android M
Managing your camels in the cloud with CI/CD
App fabric introduction
TabTale Architecture Overview
Owin & katana
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
PHX DevOps Days: Service Mesh Landscape
Azure Web App services
Ad

Viewers also liked (7)

PDF
Connecting to Web Services on Android
PDF
مقدمة عن بايثون / جانقو
PDF
بناء تطبيقات ويب 2.0. دروس مستفادة و نصائح موجهة
PDF
خدمات الويب (Web Services) و كيف تنشئها
PDF
Preparing your web services for Android and your Android app for web services...
PPTX
Webservice for android ppt
PDF
Web Services
Connecting to Web Services on Android
مقدمة عن بايثون / جانقو
بناء تطبيقات ويب 2.0. دروس مستفادة و نصائح موجهة
خدمات الويب (Web Services) و كيف تنشئها
Preparing your web services for Android and your Android app for web services...
Webservice for android ppt
Web Services
Ad

Similar to Getting Started with Web Services (20)

PPTX
WebServices
PDF
Week2 cloud computing week2
PPTX
nptl cc video.pptx
PPTX
Soap UI - Getting started
PPTX
Introduction to SoapUI day 1
PPTX
Portal and Intranets
PDF
RESTful web
PPTX
how to connect your app to the activity stream with x-pages
PDF
Sviluppare app per office
PPTX
PDF
Collector Web Services
PPTX
SharePoint & jQuery Guide - SPSTC 5/18/2013
PPTX
3 web services bb
PPTX
No need to leave Connections. Bring your Domino applications into the Activit...
DOC
PPTX
mobile computing XML_and_Mobile_Applications[1].pptx
PPT
Adobe Flash Platform for the Enterprise
PPT
Introduction to HTML
PDF
Api Penetration Testing and web app pentesting
PPTX
Displaying google maps in mobileapplication.pptx
WebServices
Week2 cloud computing week2
nptl cc video.pptx
Soap UI - Getting started
Introduction to SoapUI day 1
Portal and Intranets
RESTful web
how to connect your app to the activity stream with x-pages
Sviluppare app per office
Collector Web Services
SharePoint & jQuery Guide - SPSTC 5/18/2013
3 web services bb
No need to leave Connections. Bring your Domino applications into the Activit...
mobile computing XML_and_Mobile_Applications[1].pptx
Adobe Flash Platform for the Enterprise
Introduction to HTML
Api Penetration Testing and web app pentesting
Displaying google maps in mobileapplication.pptx

More from DataNext Solutions (9)

PPTX
Cloud Computing Basics
PDF
Build your Business Services using ADF Task Flows
PPT
Talking Services with Oracle ADF and Oracle SOA Suite
PPT
Oracle SOA Suite for High availability Enterprises
PPT
Working with Portlets in ADF and Webcenter
PDF
Getting Started with Oracle APEX
PDF
The Challenges Oracle Forms Migration to ADF
PDF
A guide to ADF fusion development
PDF
Oracle ADF Task Flows for Beginners
Cloud Computing Basics
Build your Business Services using ADF Task Flows
Talking Services with Oracle ADF and Oracle SOA Suite
Oracle SOA Suite for High availability Enterprises
Working with Portlets in ADF and Webcenter
Getting Started with Oracle APEX
The Challenges Oracle Forms Migration to ADF
A guide to ADF fusion development
Oracle ADF Task Flows for Beginners

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Spectroscopy.pptx food analysis technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Electronic commerce courselecture one. Pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Per capita expenditure prediction using model stacking based on satellite ima...
MIND Revenue Release Quarter 2 2025 Press Release
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
Building Integrated photovoltaic BIPV_UPV.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectroscopy.pptx food analysis technology
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Assigned Numbers - 2025 - Bluetooth® Document
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation theory and applications.pdf

Getting Started with Web Services

  • 1. ASTCORPORATION RECOGNIZED.SPECIALIZED. PREFERRED. Getting Started with Web Services Zeeshan Baig 05/8/2015
  • 2. 2 • Over 15 years of Experience with Oracle Products • Working at AST Middleware practice for about 3 years • Oracle ACE • Blog: www.baigzeeshan.com • Twitter: @baigsorcl • LinkedIn: www.linkedin.com/in/baigzeeshan About Me
  • 3. 3  What is a Web Service?  Web Services Message Formats  Web Services Standards  How to Create Web Services  Testing Tools  Security  Q & A Disclaimer: All Images used in presentation are property of respected owners and used for educational purpose only Agenda
  • 5. 5 What is a Web Service?
  • 6. 6 In Simple words “A Framework for a conversation between 2 devices” What is a Web Service?
  • 7. 7 • Communicate using open protocols • Uses specific Message Format • Hides complexities between devices What Web Services do?
  • 8. 8 • Service Provider – Provides Services to rest of the world – Could provide data in different formats • Requestor – Requestor will be aware of type of web service – Don’t need to know complexities behind Service How it works?
  • 9. 9 Examples of Web Services
  • 10. 10  Yahoo Weather API • https://developer.yahoo.com/weather/ Examples of Web Services - 1
  • 11. 11  Flight Aware • http://flightaware.com/commercial/flightxml/ Examples of Web Services - 2
  • 12. 12  OANDA Currency Exchange • https://www.oanda.com/rates/test-drive Examples of Web Services - 3
  • 13. 13 • Integrate with other systems • Create Reusable components • Publish functions and messages to rest of the world • Your Java based application can send data to your .NET application • EBS system data can be leverage by Cloud based applications Benefits of using Web Service
  • 14. 14 Demo Public Web Services
  • 16. 16 • XML • JSON Message Formats
  • 17. 17 • XML stands for Extensible Markup Language. • XML was designed to describe data. • XML is a software- and hardware-independent tool for carrying information • Learn more about XML at – http://www.w3schools.com/xml/ XML Overview
  • 18. 18 • Plain Text John Doe Anna Smith Peter Jones • XML Document <employees> <employee> <firstName>John</firstName> <lastName>Doe</lastName> </employee> <employee> <firstName>Anna</firstName> <lastName>Smith</lastName> </employee> <employee> <firstName>Peter</firstName> <lastName>Jones</lastName> </employee> </employees> XML Overview
  • 19. 19 • Syntax rules of XML are very simple and logical • All XML Elements Must Have a Closing Tag </> • XML Tags are Case Sensitive • XML Documents Must Have a Root Element <employees> • Data resides under elements tags • XML Document <employees> <employee> <firstName>John</firstName> <lastName>Doe</lastName> </employee> <employee> <firstName>Anna</firstName> <lastName>Smith</lastName> </employee> <employee> <firstName>Peter</firstName> <lastName>Jones</lastName> </employee> </employees> XML Syntax
  • 21. 21 • JSON: JavaScript Object Notation. • Lightweight • Transportation Independent • JSON is an easier-to-use alternative to XML. • JSON is "self-describing" and easy to understand. • Learn more about JSON at – http://www.w3schools.com/json JSON Overview
  • 22. 22 • Plain Text John Doe Anna Smith Peter Jones • JSON Document { "employees": [ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"} ] } JSON Overview
  • 23. 23 • JSON syntax is derived from JavaScript object notation syntax: • Data is in name/value pairs • Data is separated by commas • Curly braces hold objects • Square brackets hold arrays • JSON Document { "employees": [ {"firstName":"John", "lastName":"Doe" }, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"} ] } JSON Syntax
  • 26. 26 • SOAP – Simple Object Access Protocol – Relies on XML message Format – Requires WSDL Document – Requires Contract – Enterprise Standard Types of Web Services
  • 27. 27 • REST – Representational State Transfer – HTTP Bases verbs – GET, PUT, POST, DELETE – Simple familiar – Programmer friendly – No Contract – Mobile Types of Web Services
  • 31. 31 • Any Development Tool to build Web Services – JDeveloper – Eclipse – Microsoft Visual Studio • SOAP UI for testing • REST Console (Chrome Extension) • Web Browser • Oracle HTTP Analyzer • Oracle Enterprise Manager Tools
  • 32. 32 • Inbound and Outbound data from Cloud based application to on premise apps • Resolve Compatibility issues for example legacy java application to use modern feature • Payment gateways (Visa, MasterCard) • Schedule of data movement from .NET application to SOA based application Real world Use Cases
  • 33. 33 1. Create XML Schema 2. Create WSDL Document 3. Implement Logic 4. Deploy Web Service to server 5. Create Proxy client 6. Call it using Proxy client Creating SOAP Based Web Services
  • 35. 35 1. Create Implementation Logic 2. Add Jersey Libraries to Project 3. Add REST annotations 4. Deploy 5. Call Creating REST Web Services
  • 38. 38 Testing Web Services using SOAP UI
  • 40. 40 • Enable Encryption - lets the traffic go in a non-human readable format (SSL) • Enable Authentication – Allows to pass user name and password with every request • API Keys - String that's issued to a developer by a web service provider that the developer then includes in their web service requests. • Security Tokens - may be a physical device that an authorized user of computer services is given to ease authentication Web Service Security
  • 41. 41 • Know we are familiar with Web Services • Web Services is a framework to communicate between 2 devices • We know XML and JSON message Formats • SOAP and REST are main standards • Difference between SOAP and REST • Tools to develop and test Services • Real world examples Summary