Upload
mindfire-solutions
View
280
Download
2
Tags:
Embed Size (px)
DESCRIPTION
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.
Citation preview
Web Service Basics
Presenter: Rasmita Dash, Mindfire SolutionsDate: 06/13/2014
Presenter: Rasmita Dash, Mindfire Solutions
About Me
MCTS 70-515: Web Applications Development with .NET 4
Contact Me: Email: [email protected]: mfs_rasmita
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?
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
Benefits of Web Service
Cross-platform Loosely coupled Stateless Firewall-friendly
Presenter:Rasmita Dash, Mindfire solutions
Need for a Web Service
Cross Platform boundaries or trust boundariesDistributed Computing High ScalabilityEasy DeploymentImproved Security
Presenter: Rasmita Dash, Mindfire Solutions
Web Service Components
Presenter: Rasmita Dash, Mindfire Solutions
Creating a Web Service in ASP.NET
Presenter: Rasmita Dash, Mindfire Solutions
Analyze the template generated by Visual studio
Presenter: Rasmita Dash, Mindfire Solutions
Analyze the template generated by Visual studio (Contd.)
Presenter: Rasmita Dash, Mindfire Solutions
Testing the Service
Presenter: Rasmita Dash, Mindfire Solutions
The test page
Presenter: Rasmita Dash, Mindfire Solutions
WSDL Document
Presenter: Rasmita Dash, Mindfire Solutions
Web Service Test pageRendered by ASP.NET using the aspx page located over “c:\[WinDir]\Microsoft. NET\Framework\[Version] \Config\DefaultWsdlHelpGenerator.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
DEMO
WSDLDocument
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 servicecode
Pictorial representation on How web Services work
Presenter: Rasmita Dash, Mindfire Solutions
Referenceshttp://msdn.microsoft.com/en-us/libraryhttp://www.c-sharpcorner.comhttp://oreilly.comhttp://www.codemag.com/Article/0307071http://openlandscape.net/2009/09/25/call-soap-xm-web-services-with-jquery-ajax
Presenter: Rasmita Dash, Mindfire Solutions
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
Thank You
Presenter: Rasmita Dash, Mindfire Solutions