Web Service Basics

1,110 views

Published on

Web services are open standard ( XML, SOAP, HTTP etc.) based Web applications that interact with other web applications for the purpose of exchanging data. Anyone having basic knowledge on Web apps would find this helpful.

Published in: Software, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,110
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
49
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Web Service Basics

  1. 1. Web Service Basics Presenter: Rasmita Dash, Mindfire Solutions Date: 06/13/2014
  2. 2. Presenter: Rasmita Dash, Mindfire Solutions About Me MCTS 70-515: Web Applications Development with .NET 4 Contact Me: Email: rasmita.dash@mindfiresolutions.com Skype: mfs_rasmita
  3. 3. Agenda Presenter: Rasmita Dash, Mindfire Solutions  What is a Web Service?  Why we need a Web Service?  Web Service Components  Creating a Web Service in ASP.NET using VS  Analyze the template generated by VS  Test the Web service  Demo  Call the service from a Client App  Cross-domain service call from ASP.NET Ajax  How a Web service actually works?
  4. 4. What is a Web Service? A Web service is a piece of software somewhere on the network providing some service that visitors, or even other Web sites, can take advantage of. “A software system designed to support interoperable machine-to-machine interaction over a network” --From W3C definition. Presenter: Rasmita Dash, Mindfire Solutions
  5. 5. Benefits of Web Service Cross-platform Loosely coupled Stateless Firewall-friendly Presenter:Rasmita Dash, Mindfire solutions
  6. 6. Need for a Web Service Cross Platform boundaries or trust boundaries Distributed Computing High Scalability Easy Deployment Improved Security Presenter: Rasmita Dash, Mindfire Solutions
  7. 7. Web Service Components Presenter: Rasmita Dash, Mindfire Solutions
  8. 8. Creating a Web Service in ASP.NET Presenter: Rasmita Dash, Mindfire Solutions
  9. 9. Analyze the template generated by Visual studio Presenter: Rasmita Dash, Mindfire Solutions
  10. 10. Analyze the template generated by Visual studio (Contd.) Presenter: Rasmita Dash, Mindfire Solutions
  11. 11. Testing the Service Presenter: Rasmita Dash, Mindfire Solutions
  12. 12. The test page Presenter: Rasmita Dash, Mindfire Solutions
  13. 13. WSDL Document Presenter: Rasmita Dash, Mindfire Solutions
  14. 14. Web Service Test page Rendered by ASP.NET using the aspx page located over “c: [WinDir]Microsoft. NETFramework[Version] ConfigDefaultWsdlHelpGenerator.aspx”. To change the test page, place place an aspx page in your service root directory & add “<webServices> <wsdlHelpGenerator href="MyWsdlHelpGenerator.aspx"/> </webServices>” to service web.config under “<system.web>” element. Presenter: Rasmita Dash, Mindfire Solutions
  15. 15. DEMO
  16. 16. WSDL Document Client queries registry to locate service Registry refers client to WSDL document Client consuming Web Service WSDL provides data to interact With Service Client access WSDL document Client requests service Client sends response Web service code Pictorial representation on How web Services work Presenter: Rasmita Dash, Mindfire Solutions
  17. 17. References http://msdn.microsoft.com/en-us/library http://www.c-sharpcorner.com http://oreilly.com http://www.codemag.com/Article/0307071 http://openlandscape.net/2009/09/25/call-soap- xm-web-services-with-jquery-ajax Presenter: Rasmita Dash, Mindfire Solutions
  18. 18. http://www.linkedin.com/company/mindfire-solutions http://twitter.com/mindfires Presenter: Rasmita Dash, Mindfire Solutions http://www.mindfiresolutions.com https://www.facebook.com/MindfireSolutions
  19. 19. Thank You Presenter: Rasmita Dash, Mindfire Solutions

×