Web Services & WCF: Ankit
Web Services & WCF: Ankit
Web Services & WCF: Ankit
~ Ankit
Web services
A web service is a collection of protocols
and standards used for exchanging data
between applications or systems.
class MyService
{
public int Addition ( int operand1, int operand2);
public int Subtraction ( int operand1, int operand2);
public int Multiplication( int operand1, int operand2);
}
Characteristics
1. A Web Service is accessible over the Web.
2. Web Services communicate using platform-independent and
language-neutral Web protocols.
3. A Web Service shares schemas and contracts/interface that can
be called from another program.
4. A Web Service is registered and can be located through a Web
Service Registry.
5. Web Services support loosely coupled connections between
systems.
Demo
Writing a simple WebService in Visual
Studio 2005
Consuming WebServices
Technologies
XML (eXtensible Markup Language)
markup language that underlies most of the specifications used for Web
services.
SOAP (Simple Object Access Protocol)
(Simple Object Access Protocol), is a network, transport, and
programming language and platform neutral protocol that allows a client
to call a remote service. The message format is XML.
WSDL (Web services description language)
An XML-based interface and implementation description language. The
service provider uses a WSDL document in order to specify the
operations a Web service provides.
UDDI (universal description, discovery, and integration)
Both a client-side API and a SOAP-based server implementation that can
be used to store and retrieve information on service providers and Web
services.
SOAP
Simple Object Access
Protocol
SOAP is an open protocol
specification defining a
uniform way of
performing RPCs using
HTTP as the underlying
communications protocol
with XML for the data
serialization.
PORT 80 or HTP
How stuff works?
SOAP-Packet
HTTP Packet
HTTP Header
HTTP Body
SOAP-Request
How stuff works?
SOAP-Response
How stuff works?
This method is
for setting-up
HTML request
packet header.