web service basics

20
Web Service Basics Presenter: Rasmita Dash, Mindfire Solutions Date: 06/13/2014

Upload: mindfire-solutions

Post on 10-May-2015

274 views

Category:

Software


2 download

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.

TRANSCRIPT

Page 1: Web Service Basics

Web Service Basics

Presenter: Rasmita Dash, Mindfire SolutionsDate: 06/13/2014

Page 2: Web Service Basics

Presenter: Rasmita Dash, Mindfire Solutions

About Me

MCTS 70-515: Web Applications Development with .NET 4

Contact Me: Email: [email protected]: mfs_rasmita

Page 3: Web Service Basics

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?

Page 4: Web Service Basics

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

Page 5: Web Service Basics

Benefits of Web Service

Cross-platform Loosely coupled Stateless Firewall-friendly

Presenter:Rasmita Dash, Mindfire solutions

Page 6: Web Service Basics

Need for a Web Service

Cross Platform boundaries or trust boundariesDistributed Computing High ScalabilityEasy DeploymentImproved Security

Presenter: Rasmita Dash, Mindfire Solutions

Page 7: Web Service Basics

Web Service Components

Presenter: Rasmita Dash, Mindfire Solutions

Page 8: Web Service Basics

Creating a Web Service in ASP.NET

Presenter: Rasmita Dash, Mindfire Solutions

Page 9: Web Service Basics

Analyze the template generated by Visual studio

Presenter: Rasmita Dash, Mindfire Solutions

Page 10: Web Service Basics

Analyze the template generated by Visual studio (Contd.)

Presenter: Rasmita Dash, Mindfire Solutions

Page 11: Web Service Basics

Testing the Service

Presenter: Rasmita Dash, Mindfire Solutions

Page 12: Web Service Basics

The test page

Presenter: Rasmita Dash, Mindfire Solutions

Page 13: Web Service Basics

WSDL Document

Presenter: Rasmita Dash, Mindfire Solutions

Page 14: Web Service Basics

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

Page 15: Web Service Basics

DEMO

Page 16: Web Service Basics

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

Page 17: Web Service Basics
Page 18: Web Service Basics

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

Page 19: Web Service Basics

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

Page 20: Web Service Basics

Thank You

Presenter: Rasmita Dash, Mindfire Solutions