Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Sia webservices
1.
2. TOPIC :WEB SERVICES(XML,SOAP,WSDL,API)
Presented By : Saad Munir Khan Roll No:1123
Presented By : Abdul Manan Roll No:1141
Presented By : Waseem Roll No: 1189
Presented By : Bushra Kausar Roll No: 1165
Presented By : Shahida Roll No: 1181
Presented By : Afifa Ramzan Roll No: 1209
Presented By : Zain Aslam Roll No: 1231
BS(IT) MORNING SECTION “A” SEMESTER (“7th”)
4. What Is Web Services?
DEFINITION:
WEB SERVICES (SOMETIMES CALLED APPLICATION SERVICES) ARE SERVICES (USUALLY
INCLUDING SOME COMBINATION OF PROGRAMMING AND DATA, BUT POSSIBLY INCLUDING
HUMAN RESOURCES AS WELL) THAT ARE MADE AVAILABLE FROM A BUSINESS'S WEB
SERVER FOR WEB USERS OR OTHER WEB-CONNECTED PROGRAMS.
4
5. What Is Web Services?(CONT.)
Definition By IBM:
“A Web service is an interface that describes a collection of operations that are network accessible through
standardized XML messaging”
5
6. What Is Web Services?(CONT.)
Microsoft: XML Web Services:
“.. Expose useful functionality to Web users through a standard Web protocol”
“.. Provide a way to describe their interfaces in enough detail to allow a user to build a client application
to talk to them”
“.. Are registered so that potential users can find them easily”
6
7. Why Web Services?
From business standpoint
Integration
Within an organization
Between companies
Allows time/cost efficiencies
Purchase orders
Answering inquiries
Processing shipment requests
7
8. Web Service Architecture
Service-Oriented Architecture
Service
Registry
Service
Requestor
Service
Provider
Find Publish
Bind
9. XML Leveraging Features II
XML Schemas:
Alternative to DTDs for describing document structure
( A DTD defines the actual elements, attributes, and element
relationships that are valid in documents.)
(DTD : Document Type Definition)
Written in XML
Simple types
Complex types
9
10. XML Leveraging Features II
Simple Types:
Allows atoms of Data(Elements or Attributes values) that cannot be divided further .
Hence only elements that do not have child Elements or attributes are of simple types.
<xs:element name="xxx" type="yyy"/>
where xxx is the name of the element and yyy is the data type of the element
<xs:element name="lastname" type="xs:string"/>
<xs:element name="age" type="xs:integer"/>
<xs:element name="dateborn" type="xs:date"/>
XML Schema has a lot of built-in data types. The most common types are:
xs:String
xs: Decimal
xs: Integer
xs: Boolean
xs: Date
xs: Time
10
11. XML Leveraging Features II(Complete).
Complex Types:
Can contain Other Elements and Attributes.
<xs:element name="employee" type="fullpersoninfo"/>
<xs:complexType name="personinfo">
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="fullpersoninfo">
<xs:complexContent>
<xs:extension base="personinfo">
<xs:sequence>
<xs:element name="address" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
In the example above the "employee" element must contain, in sequence, the following elements: "firstname", "lastname",
"address", "city", and "country".
11
13. SOAP(Simple Object access Protocol)Cont.
Web service messaging and invocation(Invoking a Web service refers to the actions that a client
application performs to use the Web service.)
Definition:
“It is A Protocol in Which Exchange of Structured Information.”
Structure mean(Header And Body).
13
14. SOAP History
In 1998
I. The term SOAP Coined at Microsoft.
In 1999
I. SOAP 1.0 Released in December .
II. Submitted to IETF.
In 2000
I. SOAP 1.1 submitted to W3C with IBM.
II. IBM releases a java SOAP with implementation.
III. Sun start work on WEB Services.
In 2001
I. SOAP 1.2 released By XML Protocol working Group at W3C.
II. Currently now 80+ SOAP implementation available Including Apple.
14
15. A SOAP fault is an error in
a SOAP (Simple Object Access Protocol)
communication resulting from incorrect
message format, header-processing
problems, or incompatibility between
applications. ... A message that includes a
fault element is known as a fault message
15
17. SOAP
SOAP (Envelope):
The SOAP envelope indicates the start and the end of the message so that the receiver knows when
an entire message has been received.
SOAP (Header):
The optional Header element offers a flexible framework for specifying additional application-level
requirements.
SOAP (Body):
The body must be contained within the envelope and must follow
any headers that might be defined for the message.
17
19. WSDL
Web Services Definition Language
Predecessor Includes :
CORBA
(CORBA stands for Common Object Request Broker Architecture. The original idea was
to create a single universal standard for how objects across different platforms, programming
languages, network protocols can communicate with each other in a seamless manner)
Some More of Information:
SOAP Contract Language (Microsoft).
First submitted to W3C in Sep 2000
Current version is 1.1
19
20. WSDL
Define a web service in WSDL by
Writing an XML document conforming to the WSDL specs
Describes three fundamental properties
What a service does
Operations (methods) provided by the service
How a service is accessed
Data format and protocol details
Where a service is located
Address (URL) details
20
21. Tmodel(The tModel is an abstraction for a technical specification of a service type; it
organizes the service type's information and makes it accessible in the registry database.
Another UDDI data structure, the binding Template organizes information for specific
instances of service types)
21
23. APIAn API (Application Programming Interface) is the means by which third parties can write code
that interfaces with other code. A Web Service is a type of API, one that almost always operates over
HTTP (though some, like SOAP, can use alternate transports, like SMTP).
Difference Between API And WEB Services
API:
An application programming interface (API) is a set of routines, data structures, object
classes and/or protocols provided by libraries and/or operating system services in order to
support the building of applications
WEB Services:
A Web service (also Web Service) is defined by the W3C as "a software system
designed to support interoperable machine-to-machine interaction over a network"
23