0% found this document useful (0 votes)
14 views14 pages

06 - Web Services

Uploaded by

abhishek040599
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views14 pages

06 - Web Services

Uploaded by

abhishek040599
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Web Services

Web Services

§ Are software components that provide well-defined


units of application functionality
§ Are typically made available on Web servers
§ Are independent of the client’s platform, operating
system, and programming language
§ Use message-based communication as opposed to
remote invocation
§ Have published descriptions of the interface
§ Allows clients to import the descriptions that specify
the structure of the invoking and response messages
Web Services Continued

§ Are based on industry standards and protocols such


as:
§ XML for representing the messages
§ Simple Object Access Protocol (SOAP) for formatting
the message
§ Web Services Description Language (WSDL) for
describing the service
Simple Object Access Protocol (SOAP)

§ Is a message-based protocol for exchanging data


among applications
§ Is based on XML
§ Is transport layer–independent
§ Web services typically use HTTP
§ Is used in Web services to format the message to
the service and the response from the service
SOAP Message

§ Is an XML document
with the following
required elements
§ SOAP Envelope
§ SOAP Body
§ Contains the request or
response message
§ May also contain an
optional SOAP Header
element
§ Can be used to convey
credentials and other
security information
SOAP Message Continued

§ Example: SOAP messages


Web Services Description Language (WSDL) Document

§ Is a document in XML that describes for a Web


service:
§ What the service does (the operations and their inputs
and outputs)
§ How to compose the request message
§ How and where to send the message
§ Provides details on how clients interact with the Web
service
Components of a WSDL File

§ Type

§ Message

§ PortType

§ Binding

§ Service
Types

§ Consists of definitions of the data structures used in


request and response messages
§ Are expressed in the form of XSDs
§ May import external XSD files
Message

§ Consists of definitions of the structure of the request


and reply message for each operation
§ The part element specifies the data contained in the
message
§ Might also reference a fault message
PortType

§ Consists of definitions of one or more operations


associated with the Web service
§ Specifies the request and response message
associated with each operation
§ Might include a fault message
Binding

§ Consists of the specification of how the service is


accessed
§ Transport to be used
§ Message invocation style (RPC or document)
Binding Continued

§ RPC invocation specifies a message style that


references the names and types of the inputs and
outputs of the method
§ Resembles a remote procedure call
§ Reduces the overhead of processing the Web service
call
§ Document invocation specifies a more abstract
message structure
§ Types are abstract and are defined in the types
element
§ Is not as coupled to the actual method implementation
§ Better encapsulates the implementation and allows for
modification of the implementation without affecting the
Web service calls
Service

§ Consists of a specification of:


§ The actual Web location of the service
§ The previously-defined binding(s)
§ Associates the definition of the service with an actual
implementation

You might also like