SlideShare uma empresa Scribd logo
1 de 41
Md Ashraful Haque
Introduction
 In present days, the ability to seamlessly exchange information between internal
business units, customers, and partners is vital for success
 Yet most organizations employ a variety of disparate applications that store and
exchange data in dissimilar ways and therefore cannot "talk" to one another
productively
 Web services have evolved as a practical, cost-effective solution for uniting
information distributed between critical applications over operating system, and
language barriers that were previously impossible
2
 In last few years the use of smartphones and tablets has been increased
enormously, changing the scenario of mobile phone usage
 The applications associated with this smartphones and tablets are the most
attractive tools which provides a touch and click interface to the users
 According to Nielsen Media Research
• In 2014, the mobile users spent 89% of their time on media through the mobile
Application
Contd… 3
 Now-a-days Android operating system has become a predominant platform in the
market of application development. (Shanmugapriya et al., 2011)
 Several companies as part of OHA (Open Handset Alliances) developing millions
of Android applications
 e-learning to m-learning, e-commerce to m-commerce
 In this shifting from web-based application to mobile application, web services
act as the intermediate interface
Contd… 4
Web service overview
 Web service is a standardized technology that
• Exposes information, functionalities and business logic of a existing web-
server/web page application over the Internet
• Allows other system/application to access these information, functionalities
and business logic by calling the web methods
• provides program-to-program interface between the systems/application
• Uses some open standards or protocols like SOAP, WSDL and UDDI
5
o Device A request some data from
other system B over the network
o System B exposes the data using a
web service through the network
o System A gets the response data as
a result
 Web services communicate between different systems/applications
Contd…
WEB SERVICE
6
 Web services are independent of programming language and platform (Kao,
2001)
Contd… 7
Architecture of web services
 Web services Architecture is defined by SOA (Service Oriented
Architecture)
• SOA concept refers to a architecture based on some distinct services
• Interaction between these services exist
 According to SOA there are three components in a web services-
• Service roles/actors
• Service operations
• Standards/Protocols
8
SERVICE
REQUESTOR
SERVICE PROVIDER
SERVICE
REGISTRY
XML
XML
SERVICE RESPONSE
SERVICE REQUEST
BIND/INTERACT
PUBLISH
(WSDL)
FIND/LOCATE
(WSDL+UDDI)
SOAP
SOAP
 The service actor are-
o Service provider
o Service Requestor
o Service Registry
 The operations performed
o Publish
o Find/Locate
o Bind/Interact
Contd… 9
 Standards/protocols of web service
 SOAP (Simple Object Access Protocol)
• It is XML-based messaging protocol, where XML (eXtensible Markup Language)
provides tags to each element of the message
• The basic communication between the systems are served by SOAP Request and SOAP
Response
• Also known as Communication Protocol
Contd… 10
Contd…
• Framework of SOAP-
o Has components like
envelop, header, body
o The message elements are
encapsulated in the SOAP
envelop
11
Contd…
 WSDL(Web Services Description Language)-
• The service description is specified in the WSDL file
• XML-document format
• Provides location (URL) of the service and description of the service to a client
application
12
Contd…
 UDDI (Universal Description, Discovery and Integration)
• XML-based standard for publishing, finding and registering web services
• It acts as a centralised registry that enables the clients to locate the web services.
• Closely resembles online “Phone Directory” (Dustdar, et al., 2005)
• Provide two basic information
o Service description along with the way to encode it
o Query and update APIs of the registry
13
Introducing the Android Application
 Android Platform
• Open source software stack for mobile application development
• Google initiated android project with Open Handset Alliance including 30 companies
(Knutsen, 2009)
• Linux based kernel and runs its application on Dalvik Virtual Machine
• Several version has released till today, the latest version released is Lollipop
(Android 5.0) and Android M is the upcoming release.
14
Contd…
 Advantages of Android Platform
• Open source software
• Android integration in any device
• Devices can be easily customizable
• No external review required
15
Contd…
 Architecture of android platform
o Four layers and five sections
16
Importance of web services in android
Applications
 Using and implementing functionalities of existing web-based systems/applications
 Access data from remote database server easily
 Client users can access the web service in an emergency situation if health related web
services are available
 User get information on touch and click using a web service through the application
17
Developing a web service in java
Programming language
 Creating a web service that will access a remote database server
 Creating a web service class and web methods
 Creating Database Source Name (DSN)
 Accessing database in java
 Deploy and Testing the web service
18
Contd…
 Creating web service class and web methods
• A web service consists of a set of web service class and web methods
• Web service classes encapsulate all the web methods used in the service
• Web methods are the actual implementation of exposing the functionality of a
system over the network
19
Contd..
o @WebService (serviceName = “test”)
o @WebMethod(operationName=“loginid”
)
o @WebParam (name =“username”)
20
Contd…
 Creating Database Source Name (DSN)
• Database source name provides connectivity to a database through an
ODBC driver
• DSN contains database name, database
driver, directory and other information
• Once a DSN is created, one can use the
DSN in an web service to invoke
information from the database
21
Contd…
 Accessing the database in Java
• Java provides a set of classes that connects the database by loading the ODBC
driver
22
Contd…
 Deploying and Testing web service
• To make the web service available to any client application, the service have to be
deployed
• The web service has been deployed to the Glassfish server so that the service can
be available over the Internet
• The web service can be tested by tester in the browser
23
Contd…
Web method is
tested by click
on the loginid
button
Service
description file
24
Contd…
 The WSDL file
o URL to access the web
service
o Method or the operation
o Data types used in method
parameter and return types
25
Contd…
Parameter Provided
Method returns a value
26
Contd…
o The SOAP request and
SOAP response.
27
Consuming the web service in Android
applications
 An android application can be developed as client application for consuming the
web service
Android application creates a
request to the web service,
the web service responses to
the application with desired
result
28
Contd…
 Key points of Android Application for consuming a web service are-
 Creating layout files in XML
 Creating activity class files in JAVA
 Accessing the web service inside the application
 Internet Permission in the manifest file
29
Contd...
 Creating Layout file in XML-
• Framework of each activity of an application is defined in the layout file
• Just a XML file with tags
• It can define different elements such as
o Form widgets- Buttons, Progress Bar, TextView etc
o Text fields- EditText, Password, Date, E-mail etc
o Layout- Linear, Relative etc
30
Contd…
Referring a linear
layout
Referring a textview
within the
application
Referring a text editor
in the application
Referring a button
to be clicked
31
Contd…
 Creating the activity class file in java
• most important files in the application written in java programming language
• ultimately converted in Dalvik executable file and runs the application
• Inherits the base classes of android like Activity Class, ActionBarActivity Class etc
• Implements and overrides the necessary methods such as onCreate(), onClick() etc
32
Contd…
• performing the following functionality-
o Defines the XML-layout elements and provide reference of the XML elements
into java
o sets the content view of the application as per the XML-layout file
33
Contd…
o Sets tasks in application after the button is clicked
34
Contd…
 Accessing the web service inside the application
• Most important part of the application that actually calls the web method
• Add a third party library KSOAP2 (http://ksoap2.sourceforge.net) to the library
of Android project that is optimized for Android
35
Contd…
• Firstly defines the namespace of the web service, name of the web method, SOAP-
Action and the URL of the web service description
36
Contd…
• SOAP request is fired based upon the specified web method of the web service
and properties are added as per the requirement
• SOAP envelop is created and version of the SOAP is declared
37
Contd…
• Passing the request to the envelop
• Connecting to the web service using the URL and invoking the web method with
request
• The response of the request is stored as String
38
Contd…
 Internet permission in the manifest file
• the application needs a permission for accessing the Internet
39
Current Technology
 RESTful-based web service
• has gained wide acceptance across worldwide in last few years
• It is being used as a simpler alternative to SOAP and WSDL-based web services
(Zur et. al, 2005)
• REST stands for Representational State Transfer, defines a set of architectural
principles for developing web services
• It typically communicate over HTTP with the same HTTP principle CRUD
(create, Read, update, Delete)
40
Conclusions-
 Companies/organisations are developing web services to integrate the existing
functionalities and resources of multiple systems/applications
 e-commerce companies like Flikart, Amazon, Snapdeal, Myntra, Paytm expanding
themselves through mobile application version
 Web services can be developed for the agricultural information system so that any
client application can access those facilities easily
 Further studies on RESTful web services for Android application can be done
41

Mais conteúdo relacionado

Mais procurados

Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Servicesphanleson
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introductionjam c
 
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICEINVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICEijsc
 
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...ijwscjournal
 
JISC IE Architecture - external trends and their potential impact
JISC IE Architecture - external trends and their potential impactJISC IE Architecture - external trends and their potential impact
JISC IE Architecture - external trends and their potential impactAndy Powell
 
SharePoint 2010
SharePoint 2010SharePoint 2010
SharePoint 2010nplowman
 
Service Oriented Architecture Luqman
Service Oriented Architecture LuqmanService Oriented Architecture Luqman
Service Oriented Architecture LuqmanLuqman Shareef
 
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...InSync2011
 
Cloud computing by Luqman
Cloud computing by LuqmanCloud computing by Luqman
Cloud computing by LuqmanLuqman Shareef
 
Financial Services Component Library
Financial Services Component LibraryFinancial Services Component Library
Financial Services Component LibraryMike Walker
 

Mais procurados (13)

Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Services
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
 
Web Services
Web ServicesWeb Services
Web Services
 
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICEINVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
 
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
SOME INTEROPERABILITY ISSUES IN THE DESIGNING OF WEB SERVICES : CASE STUDY ON...
 
Web Services ppt
Web Services pptWeb Services ppt
Web Services ppt
 
JISC IE Architecture - external trends and their potential impact
JISC IE Architecture - external trends and their potential impactJISC IE Architecture - external trends and their potential impact
JISC IE Architecture - external trends and their potential impact
 
Web services
Web servicesWeb services
Web services
 
SharePoint 2010
SharePoint 2010SharePoint 2010
SharePoint 2010
 
Service Oriented Architecture Luqman
Service Oriented Architecture LuqmanService Oriented Architecture Luqman
Service Oriented Architecture Luqman
 
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...
New & Emerging _ Mick Andrew _ Adding mobile and web 2.0 UIs to existing appl...
 
Cloud computing by Luqman
Cloud computing by LuqmanCloud computing by Luqman
Cloud computing by Luqman
 
Financial Services Component Library
Financial Services Component LibraryFinancial Services Component Library
Financial Services Component Library
 

Destaque

Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junho
Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junhoCâmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junho
Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junhoPartido Socialista Valpaços
 
Computerworld Big Data Forum 2015
Computerworld Big Data Forum 2015Computerworld Big Data Forum 2015
Computerworld Big Data Forum 2015Steven Sit
 
COUN5004 Svy Rsch Human Dev Prof Coun
COUN5004 Svy Rsch Human Dev Prof CounCOUN5004 Svy Rsch Human Dev Prof Coun
COUN5004 Svy Rsch Human Dev Prof CounTamela McGhee
 
7 Langkah Mudah Membeli Rumah
7 Langkah Mudah Membeli Rumah7 Langkah Mudah Membeli Rumah
7 Langkah Mudah Membeli RumahHalo Money
 
Dp seminar
Dp seminarDp seminar
Dp seminardpmeena
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web servicesNikmesoft Ltd
 
Webservice for android ppt
Webservice for android pptWebservice for android ppt
Webservice for android pptsantosh lamba
 
Slip form Construction Technology
Slip form Construction TechnologySlip form Construction Technology
Slip form Construction TechnologyDarshit
 
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?Barbara Braehmer
 

Destaque (13)

The Pantry
The PantryThe Pantry
The Pantry
 
Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junho
Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junhoCâmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junho
Câmara Municipal de Valpaços - Ata 11 2015 reunião de câmara de 3 de junho
 
Certificate_2
Certificate_2Certificate_2
Certificate_2
 
Como manejar la ansiedad
Como manejar la ansiedadComo manejar la ansiedad
Como manejar la ansiedad
 
Computerworld Big Data Forum 2015
Computerworld Big Data Forum 2015Computerworld Big Data Forum 2015
Computerworld Big Data Forum 2015
 
COUN5004 Svy Rsch Human Dev Prof Coun
COUN5004 Svy Rsch Human Dev Prof CounCOUN5004 Svy Rsch Human Dev Prof Coun
COUN5004 Svy Rsch Human Dev Prof Coun
 
7 Langkah Mudah Membeli Rumah
7 Langkah Mudah Membeli Rumah7 Langkah Mudah Membeli Rumah
7 Langkah Mudah Membeli Rumah
 
Dp seminar
Dp seminarDp seminar
Dp seminar
 
IDENTIDAD CULTURAL
IDENTIDAD CULTURALIDENTIDAD CULTURAL
IDENTIDAD CULTURAL
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web services
 
Webservice for android ppt
Webservice for android pptWebservice for android ppt
Webservice for android ppt
 
Slip form Construction Technology
Slip form Construction TechnologySlip form Construction Technology
Slip form Construction Technology
 
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?
Kosteneinsparungen durch Social Media Recruiting – (Wie) Geht das?
 

Semelhante a Development of Web Services for Android Applications

IBM Social Business Toolkit
IBM Social Business ToolkitIBM Social Business Toolkit
IBM Social Business ToolkitVan Staub, MBA
 
Android OS and its Features
Android OS and its FeaturesAndroid OS and its Features
Android OS and its FeaturesHarshad Lokhande
 
Displaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptxDisplaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptxsanaiftikhar23
 
Week2 cloud computing week2
Week2 cloud computing week2Week2 cloud computing week2
Week2 cloud computing week2Ankit Gupta
 
Cs 1023 lec 14 webservice (week 4)
Cs 1023 lec 14 webservice (week 4)Cs 1023 lec 14 webservice (week 4)
Cs 1023 lec 14 webservice (week 4)stanbridge
 
Cloud description
Cloud descriptionCloud description
Cloud descriptionthanuambika
 
nptl cc video.pptx
nptl cc video.pptxnptl cc video.pptx
nptl cc video.pptxMunmunSaha7
 
Chap 5 software as a service (saass)
Chap 5 software as a service (saass)Chap 5 software as a service (saass)
Chap 5 software as a service (saass)Raj Sarode
 
WEB 2.0 For Interns(Surya)
WEB 2.0 For Interns(Surya)WEB 2.0 For Interns(Surya)
WEB 2.0 For Interns(Surya)guest71e24d
 
Sears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligenceSears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligencehrpiza
 
Sears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligenceSears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligencehrpiza
 
20141210 - Microservice Container
20141210 - Microservice Container20141210 - Microservice Container
20141210 - Microservice ContainerJamie (Taka) Wang
 
Beyond sparql linked data, software, services and applications. Keynote at D...
Beyond sparql  linked data, software, services and applications. Keynote at D...Beyond sparql  linked data, software, services and applications. Keynote at D...
Beyond sparql linked data, software, services and applications. Keynote at D...John Domingue
 
Unit 3-SOA Technologies
Unit 3-SOA TechnologiesUnit 3-SOA Technologies
Unit 3-SOA Technologiesssuser3a47cb
 
Service-Finder presentation at ESTC2008
Service-Finder presentation at ESTC2008Service-Finder presentation at ESTC2008
Service-Finder presentation at ESTC2008servicefinder
 
Realizing Service Finder at ESTC 2008
Realizing Service Finder at ESTC 2008Realizing Service Finder at ESTC 2008
Realizing Service Finder at ESTC 2008Emanuele Della Valle
 
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017MNAssociationEnterpriseArchitectsCloudFoundryJuly2017
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017Andrew Ripka
 

Semelhante a Development of Web Services for Android Applications (20)

IBM Social Business Toolkit
IBM Social Business ToolkitIBM Social Business Toolkit
IBM Social Business Toolkit
 
Android OS and its Features
Android OS and its FeaturesAndroid OS and its Features
Android OS and its Features
 
Displaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptxDisplaying google maps in mobileapplication.pptx
Displaying google maps in mobileapplication.pptx
 
Week2 cloud computing week2
Week2 cloud computing week2Week2 cloud computing week2
Week2 cloud computing week2
 
Cs 1023 lec 14 webservice (week 4)
Cs 1023 lec 14 webservice (week 4)Cs 1023 lec 14 webservice (week 4)
Cs 1023 lec 14 webservice (week 4)
 
Cloud description
Cloud descriptionCloud description
Cloud description
 
nptl cc video.pptx
nptl cc video.pptxnptl cc video.pptx
nptl cc video.pptx
 
Chap 5 software as a service (saass)
Chap 5 software as a service (saass)Chap 5 software as a service (saass)
Chap 5 software as a service (saass)
 
CS-802 Act-1.ppt
CS-802 Act-1.pptCS-802 Act-1.ppt
CS-802 Act-1.ppt
 
Web services
Web servicesWeb services
Web services
 
WEB 2.0 For Interns(Surya)
WEB 2.0 For Interns(Surya)WEB 2.0 For Interns(Surya)
WEB 2.0 For Interns(Surya)
 
Sears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligenceSears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligence
 
Sears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligenceSears web30e connectionartificialintelligence
Sears web30e connectionartificialintelligence
 
20141210 - Microservice Container
20141210 - Microservice Container20141210 - Microservice Container
20141210 - Microservice Container
 
Beyond sparql linked data, software, services and applications. Keynote at D...
Beyond sparql  linked data, software, services and applications. Keynote at D...Beyond sparql  linked data, software, services and applications. Keynote at D...
Beyond sparql linked data, software, services and applications. Keynote at D...
 
Unit 3-SOA Technologies
Unit 3-SOA TechnologiesUnit 3-SOA Technologies
Unit 3-SOA Technologies
 
TUG Presentation - 1/25/17
TUG Presentation - 1/25/17TUG Presentation - 1/25/17
TUG Presentation - 1/25/17
 
Service-Finder presentation at ESTC2008
Service-Finder presentation at ESTC2008Service-Finder presentation at ESTC2008
Service-Finder presentation at ESTC2008
 
Realizing Service Finder at ESTC 2008
Realizing Service Finder at ESTC 2008Realizing Service Finder at ESTC 2008
Realizing Service Finder at ESTC 2008
 
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017MNAssociationEnterpriseArchitectsCloudFoundryJuly2017
MNAssociationEnterpriseArchitectsCloudFoundryJuly2017
 

Último

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 

Último (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 

Development of Web Services for Android Applications

  • 2. Introduction  In present days, the ability to seamlessly exchange information between internal business units, customers, and partners is vital for success  Yet most organizations employ a variety of disparate applications that store and exchange data in dissimilar ways and therefore cannot "talk" to one another productively  Web services have evolved as a practical, cost-effective solution for uniting information distributed between critical applications over operating system, and language barriers that were previously impossible 2
  • 3.  In last few years the use of smartphones and tablets has been increased enormously, changing the scenario of mobile phone usage  The applications associated with this smartphones and tablets are the most attractive tools which provides a touch and click interface to the users  According to Nielsen Media Research • In 2014, the mobile users spent 89% of their time on media through the mobile Application Contd… 3
  • 4.  Now-a-days Android operating system has become a predominant platform in the market of application development. (Shanmugapriya et al., 2011)  Several companies as part of OHA (Open Handset Alliances) developing millions of Android applications  e-learning to m-learning, e-commerce to m-commerce  In this shifting from web-based application to mobile application, web services act as the intermediate interface Contd… 4
  • 5. Web service overview  Web service is a standardized technology that • Exposes information, functionalities and business logic of a existing web- server/web page application over the Internet • Allows other system/application to access these information, functionalities and business logic by calling the web methods • provides program-to-program interface between the systems/application • Uses some open standards or protocols like SOAP, WSDL and UDDI 5
  • 6. o Device A request some data from other system B over the network o System B exposes the data using a web service through the network o System A gets the response data as a result  Web services communicate between different systems/applications Contd… WEB SERVICE 6
  • 7.  Web services are independent of programming language and platform (Kao, 2001) Contd… 7
  • 8. Architecture of web services  Web services Architecture is defined by SOA (Service Oriented Architecture) • SOA concept refers to a architecture based on some distinct services • Interaction between these services exist  According to SOA there are three components in a web services- • Service roles/actors • Service operations • Standards/Protocols 8
  • 9. SERVICE REQUESTOR SERVICE PROVIDER SERVICE REGISTRY XML XML SERVICE RESPONSE SERVICE REQUEST BIND/INTERACT PUBLISH (WSDL) FIND/LOCATE (WSDL+UDDI) SOAP SOAP  The service actor are- o Service provider o Service Requestor o Service Registry  The operations performed o Publish o Find/Locate o Bind/Interact Contd… 9
  • 10.  Standards/protocols of web service  SOAP (Simple Object Access Protocol) • It is XML-based messaging protocol, where XML (eXtensible Markup Language) provides tags to each element of the message • The basic communication between the systems are served by SOAP Request and SOAP Response • Also known as Communication Protocol Contd… 10
  • 11. Contd… • Framework of SOAP- o Has components like envelop, header, body o The message elements are encapsulated in the SOAP envelop 11
  • 12. Contd…  WSDL(Web Services Description Language)- • The service description is specified in the WSDL file • XML-document format • Provides location (URL) of the service and description of the service to a client application 12
  • 13. Contd…  UDDI (Universal Description, Discovery and Integration) • XML-based standard for publishing, finding and registering web services • It acts as a centralised registry that enables the clients to locate the web services. • Closely resembles online “Phone Directory” (Dustdar, et al., 2005) • Provide two basic information o Service description along with the way to encode it o Query and update APIs of the registry 13
  • 14. Introducing the Android Application  Android Platform • Open source software stack for mobile application development • Google initiated android project with Open Handset Alliance including 30 companies (Knutsen, 2009) • Linux based kernel and runs its application on Dalvik Virtual Machine • Several version has released till today, the latest version released is Lollipop (Android 5.0) and Android M is the upcoming release. 14
  • 15. Contd…  Advantages of Android Platform • Open source software • Android integration in any device • Devices can be easily customizable • No external review required 15
  • 16. Contd…  Architecture of android platform o Four layers and five sections 16
  • 17. Importance of web services in android Applications  Using and implementing functionalities of existing web-based systems/applications  Access data from remote database server easily  Client users can access the web service in an emergency situation if health related web services are available  User get information on touch and click using a web service through the application 17
  • 18. Developing a web service in java Programming language  Creating a web service that will access a remote database server  Creating a web service class and web methods  Creating Database Source Name (DSN)  Accessing database in java  Deploy and Testing the web service 18
  • 19. Contd…  Creating web service class and web methods • A web service consists of a set of web service class and web methods • Web service classes encapsulate all the web methods used in the service • Web methods are the actual implementation of exposing the functionality of a system over the network 19
  • 20. Contd.. o @WebService (serviceName = “test”) o @WebMethod(operationName=“loginid” ) o @WebParam (name =“username”) 20
  • 21. Contd…  Creating Database Source Name (DSN) • Database source name provides connectivity to a database through an ODBC driver • DSN contains database name, database driver, directory and other information • Once a DSN is created, one can use the DSN in an web service to invoke information from the database 21
  • 22. Contd…  Accessing the database in Java • Java provides a set of classes that connects the database by loading the ODBC driver 22
  • 23. Contd…  Deploying and Testing web service • To make the web service available to any client application, the service have to be deployed • The web service has been deployed to the Glassfish server so that the service can be available over the Internet • The web service can be tested by tester in the browser 23
  • 24. Contd… Web method is tested by click on the loginid button Service description file 24
  • 25. Contd…  The WSDL file o URL to access the web service o Method or the operation o Data types used in method parameter and return types 25
  • 27. Contd… o The SOAP request and SOAP response. 27
  • 28. Consuming the web service in Android applications  An android application can be developed as client application for consuming the web service Android application creates a request to the web service, the web service responses to the application with desired result 28
  • 29. Contd…  Key points of Android Application for consuming a web service are-  Creating layout files in XML  Creating activity class files in JAVA  Accessing the web service inside the application  Internet Permission in the manifest file 29
  • 30. Contd...  Creating Layout file in XML- • Framework of each activity of an application is defined in the layout file • Just a XML file with tags • It can define different elements such as o Form widgets- Buttons, Progress Bar, TextView etc o Text fields- EditText, Password, Date, E-mail etc o Layout- Linear, Relative etc 30
  • 31. Contd… Referring a linear layout Referring a textview within the application Referring a text editor in the application Referring a button to be clicked 31
  • 32. Contd…  Creating the activity class file in java • most important files in the application written in java programming language • ultimately converted in Dalvik executable file and runs the application • Inherits the base classes of android like Activity Class, ActionBarActivity Class etc • Implements and overrides the necessary methods such as onCreate(), onClick() etc 32
  • 33. Contd… • performing the following functionality- o Defines the XML-layout elements and provide reference of the XML elements into java o sets the content view of the application as per the XML-layout file 33
  • 34. Contd… o Sets tasks in application after the button is clicked 34
  • 35. Contd…  Accessing the web service inside the application • Most important part of the application that actually calls the web method • Add a third party library KSOAP2 (http://ksoap2.sourceforge.net) to the library of Android project that is optimized for Android 35
  • 36. Contd… • Firstly defines the namespace of the web service, name of the web method, SOAP- Action and the URL of the web service description 36
  • 37. Contd… • SOAP request is fired based upon the specified web method of the web service and properties are added as per the requirement • SOAP envelop is created and version of the SOAP is declared 37
  • 38. Contd… • Passing the request to the envelop • Connecting to the web service using the URL and invoking the web method with request • The response of the request is stored as String 38
  • 39. Contd…  Internet permission in the manifest file • the application needs a permission for accessing the Internet 39
  • 40. Current Technology  RESTful-based web service • has gained wide acceptance across worldwide in last few years • It is being used as a simpler alternative to SOAP and WSDL-based web services (Zur et. al, 2005) • REST stands for Representational State Transfer, defines a set of architectural principles for developing web services • It typically communicate over HTTP with the same HTTP principle CRUD (create, Read, update, Delete) 40
  • 41. Conclusions-  Companies/organisations are developing web services to integrate the existing functionalities and resources of multiple systems/applications  e-commerce companies like Flikart, Amazon, Snapdeal, Myntra, Paytm expanding themselves through mobile application version  Web services can be developed for the agricultural information system so that any client application can access those facilities easily  Further studies on RESTful web services for Android application can be done 41

Notas do Editor

  1. Kernal-fundament part of os manages i/o request, sytem calls to translate them into data processing instruction Linux kernel- handle wide array of device drivers, basic system functionalities powermanagement, process management, memory management Libraries- a set of libraries sqlite database that data openGL- grahics library, Dalvik virtual machine-like JVM runs its own process Appl. Framework- provide high level
  2. Fuctionalities of existing web based application used in android application
  3. Glass fish server is a application server  for java. It woks middle-tier of a server oriented architecture
  4. The ksoap2-android project provides a lightweight and efficient SOAP client library for the Android platform JAR (Java Archive) aggregate of many Java class files and associated metadata and resources (text, images, etc.) into one file to distribute application software or libraries on the Java platform.