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

What's hot (20)

PDF
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
PPTX
The ASP.NET Web API for Beginners
Kevin Hazzard
 
PPTX
NGINX MRA Fabric Model Release and Ask Me Anything Part 4
NGINX, Inc.
 
PPTX
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Red Hat Developers
 
PPTX
Azure functions serverless
Udaiappa Ramachandran
 
PDF
Architecting &Building Scalable Secure Web API
SHAKIL AKHTAR
 
PPTX
Azure Automation and Update Management
Udaiappa Ramachandran
 
PDF
Webinar - Big Data: Let's SMACK - Jorg Schad
Codemotion
 
PPTX
Amazon Webservices for Java Developers - UCI Webinar
Craig Dickson
 
PPTX
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
Panagiotis Kanavos
 
PPTX
Deep-dive building solutions on the SharePoint Framework
Waldek Mastykarz
 
PPTX
Data stores: beyond relational databases
Javier García Magna
 
PDF
Introduction to Android M
amsanjeev
 
PDF
Managing your camels in the cloud with CI/CD
Christian Posta
 
PPTX
App fabric introduction
Dennis van der Stelt
 
PDF
TabTale Architecture Overview
Assaf Gannon
 
PPTX
Owin & katana
Fabian Vilers
 
PDF
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Gary Arora
 
PPTX
PHX DevOps Days: Service Mesh Landscape
Christian Posta
 
PPTX
Azure Web App services
Alexey Bokov
 
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
The ASP.NET Web API for Beginners
Kevin Hazzard
 
NGINX MRA Fabric Model Release and Ask Me Anything Part 4
NGINX, Inc.
 
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Red Hat Developers
 
Azure functions serverless
Udaiappa Ramachandran
 
Architecting &Building Scalable Secure Web API
SHAKIL AKHTAR
 
Azure Automation and Update Management
Udaiappa Ramachandran
 
Webinar - Big Data: Let's SMACK - Jorg Schad
Codemotion
 
Amazon Webservices for Java Developers - UCI Webinar
Craig Dickson
 
The server side story: Parallel and Asynchronous programming in .NET - ITPro...
Panagiotis Kanavos
 
Deep-dive building solutions on the SharePoint Framework
Waldek Mastykarz
 
Data stores: beyond relational databases
Javier García Magna
 
Introduction to Android M
amsanjeev
 
Managing your camels in the cloud with CI/CD
Christian Posta
 
App fabric introduction
Dennis van der Stelt
 
TabTale Architecture Overview
Assaf Gannon
 
Owin & katana
Fabian Vilers
 
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Gary Arora
 
PHX DevOps Days: Service Mesh Landscape
Christian Posta
 
Azure Web App services
Alexey Bokov
 

Viewers also liked (7)

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

Similar to Getting Started with Web Services (20)

PPT
Web Services - Lectures and architecture.ppt
memonmukhtiar
 
PPT
Detailed information on webservice by websoles
NAVEEN KUMAR SHARMA
 
PPT
Web services Tutorial /Websoles Strategic Digital Solutions
Ratnesh Pandey
 
PPT
Best Web services tutorial | Websoles Strategic Digital Solutions
Shubham Kumar Singh
 
PPTX
Soap UI - Getting started
Qualitest
 
PPTX
Introduction to SoapUI day 1
Qualitest
 
PPTX
3 web services bb
Shahid Riaz
 
PPT
Web servicesoverview
Prabhat gangwar
 
PPTX
API-Testing-SOAPUI-1.pptx
amarnathdeo
 
PPTX
nptl cc video.pptx
MunmunSaha7
 
PPT
Mule webservices in detail
Shahid Shaik
 
PPTX
Web services for banks
Sreekanth Narendran
 
ODP
Web service Introduction
Madhukar Kumar
 
PPT
Web servicesoverview
thisismusthafa
 
PPTX
Web Services
Nibha Jain
 
PDF
Week2 cloud computing week2
Ankit Gupta
 
PPT
Webservices
Gerard Sylvester
 
PPTX
Автоматизация тестирования API для начинающих
COMAQA.BY
 
PPTX
Web services
Akshay Ballarpure
 
Web Services - Lectures and architecture.ppt
memonmukhtiar
 
Detailed information on webservice by websoles
NAVEEN KUMAR SHARMA
 
Web services Tutorial /Websoles Strategic Digital Solutions
Ratnesh Pandey
 
Best Web services tutorial | Websoles Strategic Digital Solutions
Shubham Kumar Singh
 
Soap UI - Getting started
Qualitest
 
Introduction to SoapUI day 1
Qualitest
 
3 web services bb
Shahid Riaz
 
Web servicesoverview
Prabhat gangwar
 
API-Testing-SOAPUI-1.pptx
amarnathdeo
 
nptl cc video.pptx
MunmunSaha7
 
Mule webservices in detail
Shahid Shaik
 
Web services for banks
Sreekanth Narendran
 
Web service Introduction
Madhukar Kumar
 
Web servicesoverview
thisismusthafa
 
Web Services
Nibha Jain
 
Week2 cloud computing week2
Ankit Gupta
 
Webservices
Gerard Sylvester
 
Автоматизация тестирования API для начинающих
COMAQA.BY
 
Web services
Akshay Ballarpure
 
Ad

More from DataNext Solutions (9)

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

Recently uploaded (20)

PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Digital Circuits, important subject in CS
contactparinay1
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 

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