Web Services & WCF ~ Ankit
Web services <ul><li>A web service is a collection of protocols and standards used for exchanging data between application...
<ul><li>class MyService </li></ul><ul><li>{ </li></ul><ul><li>public int Addition ( int operand1, int operand2); </li></ul...
Characteristics <ul><li>A Web Service is  accessible over the Web . </li></ul><ul><li>Web Services communicate using  plat...
Demo <ul><li>Writing a simple WebService in Visual Studio 2005 </li></ul><ul><li>Consuming WebServices </li></ul>
Technologies <ul><li>XML  (eXtensible Markup Language) </li></ul><ul><ul><li>markup language that underlies  most of the s...
 
SOAP <ul><li>Simple Object Access Protocol </li></ul><ul><li>SOAP is an open protocol specification defining a uniform way...
SOAP-Packet How stuff works? HTTP Packet HTTP Body HTTP Header TCP communication channel
How stuff works? SOAP-Request
How stuff works? SOAP-Response
How stuff works? Within Visual Studio
How stuff works? .Net Reflector Setting-up and creating SOAP envelope This method is for setting-up HTML request packet he...
How stuff works? What all you need to call a WebServices?
Advantages of Web services <ul><li>WebServices  communicate of over http protocol  and can easily cross network boundaries...
WS-* <ul><li>WS-Addressing </li></ul><ul><li>WS-Routing </li></ul><ul><li>WS-Secutiry </li></ul><ul><li>WS-AtomicTransacti...
SOA <ul><li>Service </li></ul><ul><ul><li>Small program interacted by well defines message exchanges </li></ul></ul><ul><u...
Thank You
Upcoming SlideShare
Loading in …5
×

Web services

1,596 views
1,451 views

Published on

My presentation on WebServices Basics. Here is the content:

Web services – Definition: A web service is a collection of protocols and standards used for exchanging data between applications or systems.
Characteristics
Demo: Writing a simple WebService in Visual Studio 2005 & Consuming WebServices
Technologies: XML (eXtensible Markup Language), SOAP (Simple Object Access Protocol), WSDL (Web services description language), UDDI (universal description, discovery, and integration)
SOAP: 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.
Drilling inside SoapHttpClientProtocol class
Advantages of Web services
SOA – Service Oriented Architecture, Four Tenets

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,596
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Web services

  1. 1. Web Services & WCF ~ Ankit
  2. 2. Web services <ul><li>A web service is a collection of protocols and standards used for exchanging data between applications or systems. </li></ul>WebServices are published, described and located over Internet.
  3. 3. <ul><li>class MyService </li></ul><ul><li>{ </li></ul><ul><li>public int Addition ( int operand1, int operand2); </li></ul><ul><li>public int Subtraction ( int operand1, int operand2); </li></ul><ul><li>public int Multiplication( int operand1, int operand2); </li></ul><ul><li>} </li></ul>Web services
  4. 4. Characteristics <ul><li>A Web Service is accessible over the Web . </li></ul><ul><li>Web Services communicate using platform-independent and language-neutral Web protocols. </li></ul><ul><li>A Web Service shares schemas and contracts/interface that can be called from another program. </li></ul><ul><li>A Web Service is registered and can be located through a Web Service Registry. </li></ul><ul><li>Web Services support loosely coupled connections between systems. </li></ul>
  5. 5. Demo <ul><li>Writing a simple WebService in Visual Studio 2005 </li></ul><ul><li>Consuming WebServices </li></ul>
  6. 6. Technologies <ul><li>XML (eXtensible Markup Language) </li></ul><ul><ul><li>markup language that underlies most of the specifications used for Web services.   </li></ul></ul><ul><li>SOAP (Simple Object Access Protocol) </li></ul><ul><ul><li>(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. </li></ul></ul><ul><li>WSDL (Web services description language) </li></ul><ul><ul><li>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.  </li></ul></ul><ul><li>UDDI (universal description, discovery, and integration) </li></ul><ul><ul><li>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. </li></ul></ul>
  7. 8. SOAP <ul><li>Simple Object Access Protocol </li></ul><ul><li>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. </li></ul>PORT 80 or HTP
  8. 9. SOAP-Packet How stuff works? HTTP Packet HTTP Body HTTP Header TCP communication channel
  9. 10. How stuff works? SOAP-Request
  10. 11. How stuff works? SOAP-Response
  11. 12. How stuff works? Within Visual Studio
  12. 13. How stuff works? .Net Reflector Setting-up and creating SOAP envelope This method is for setting-up HTML request packet header.
  13. 14. How stuff works? What all you need to call a WebServices?
  14. 15. Advantages of Web services <ul><li>WebServices communicate of over http protocol and can easily cross network boundaries. </li></ul><ul><li>Web services support only the data types defined in the XSD type system, limiting the number of objects that can be serialized. This makes them interoperable across platforms , and are ideal for heterogeneous environments. </li></ul><ul><li>Highly reliable due to the fact that Web services are always hosted in IIS </li></ul><ul><li>Provides extensibility by allowing us to intercept the SOAP messages during the serialization and deserialization stages. </li></ul><ul><li>Easy-to-create and deploy. </li></ul>
  15. 16. WS-* <ul><li>WS-Addressing </li></ul><ul><li>WS-Routing </li></ul><ul><li>WS-Secutiry </li></ul><ul><li>WS-AtomicTransaction </li></ul><ul><li>WS-Eventing </li></ul><ul><li>WS-Transfer </li></ul>WSE - Microsoft implementation for most of these specifications
  16. 17. SOA <ul><li>Service </li></ul><ul><ul><li>Small program interacted by well defines message exchanges </li></ul></ul><ul><ul><li>Agile, Reliable, Stable, Interoperable, Secure </li></ul></ul><ul><li>Four Tenets </li></ul><ul><ul><li>Boundaries are Explicit </li></ul></ul><ul><ul><li>Services are Autonomous </li></ul></ul><ul><ul><li>Services share schema and contract, not class </li></ul></ul><ul><ul><li>Service compatibility is based upon policy </li></ul></ul>
  17. 18. Thank You

×