Internet Programming - Webservice
Internet Programming - Webservice
Internet Programming-Creating
XML Web Services
XML Web services allow integration of applications
developed in different languages and running on
different platforms. An application that implements
XML Web service uses an interface that ensures the
data provided by XML Web service is in XML format.
Resides on the Web server. Whenever a client needs
information from the server that hosts the Web service,
the clients sends a request to the server. This client
request format is complaint with the XML Web service.
The XML Web service processes the request and sends
a response back to the client.
XML web services use standards protocols such as
Simple Object Access Protocol(SOAP), Universal
Description Discovery and Integration(UDDI), Web
Service Definition Language(WSDL), for communication
between the client and Web server.
Internet Programming-Creating
XML Web Services
Internet Programming-Creating
XML Web Services
XML Web services directories: Web service providers publish the information
about their Web services at centralized locations. The Universal Description
Discovery and Integration(UDDI) provides guidelines to publish information such
as:
XML Web service discovery: allows the client to locate the documents that
describe a particular XML Web service using WSDL.
XML Web services description: helps describe XML Web services, formats of
messages, and services supported by an XML web services
XML Web services wire formats: use the wire format to provide
communication over disparate systems. Using XML web service wire formats,
such as HTTP-GET, HTTP-POST, and SOAP, you can ensure interoperability on
networks and enable universal communication. HTTP-POST enables you to send
parameters to an XML web service. HTTP-GET protocol enable you to send URLencoded parameters as name-value pairs to an XML web services. SOAP
protocol allow you to exchange the structured information among applications on
the Web.
Internet Programming-Creating
XML Web Services
Directory
XML Web
Service
Client
UDDI
Discovery
Description
XML Web
Service
Wire
Format
The above figure, an XML Web service, an XML Web service client searches
for an XML Web service in UDDI with the help of directory service. In case it
is found, link to the URL if the discovery document is established. After a
URL is retrieved, the client requests for the discovery document with the
help of discovery service. The Web server returns the requested discovery
document to the client. After a discovery document is retrieved, the client
requests for the description of a particular Web service from the server with
the help of the description service. The Web server then requests for the
XML web service using wire formats. The service response is returned back
to the client
Internet Programming-Creating
XML Web Services
Implementing Web Service Standards
Are a set of specifications formulated and accepted by the
leading enterprises that provide and avail XML web services.
Internet Programming-Creating
XML Web Services
Role of SOAP
is an XML-based standard protocol of XML Web
service. It is an XML standard used to enable
communication between XML Web services and its
clients in a distributed environment. SOAP specifies
that one application can request for the service of
another application that resides at a remote system.
Uses XML-based data to encode messages and
transfers then over the Internet using HTTP or SMTP.
It servers as a flexible communication layer between
XML Web services. The features of SOAP are:
It
It
It
It
Internet Programming-Creating
XML Web Services
Role of WSDL
Is a standard XML based language that
defines how XML Web services are
described when they are published in a
registry. XML Web services information is
published in registries as WSDL document
Is a XML file that enclosed the interface
schema for the XML Web service
Provides information about accessing
published XML Web services to clients
Internet Programming-Creating
XML Web Services
Role of UDDI
The service providers use these UDDI registries to publish their XML web services.
Types of discoveries
Static discovery: discovery document can be located on a Web Server. You can
access the files through the .asmx page. The document contains the necessary
information for describing the services that are located on the server
Dynamic discovery: application does not have information about the location of the
XML Web service but knows about the Web service provider.
Service
Provider
Service
Client
UDDI
Registry
Finds services
with the
Registry