9. Web Services. 2 Microsoft Objectives “Web Services are poised to change the future of software development...” WebServices.

Slides:



Advertisements
Similar presentations
Session 6 Module 2 Calling a Web Service from an ASP.NET Web Page.
Advertisements

Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Lecture 12: Web Services MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET Objectives “Web Services are objects callable across a network.
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
.NET Remoting. .Net Remoting Replaces DCOM (Distributed Component Object Model – a proprietary Microsoft technology for communication among software components.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
ASP.Net, web services--- asynchronous and synchronous and AJAX By Thakur Rashmi Singh.
Introduction to Web Services
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Extending Web Applications with Web Services Mike Taulty Developer & Platform Group Microsoft Ltd
Apache Axis: A Set of Java Tools for SOAP Web Services.
XML Web Services ASP.NET. Overview of Web Services (Page 1) Web Service – Part or all of a Web application that is publicly exposed so that other applications.
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Creating & Consuming Web Services MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
.Net Remoting. 2 Distributed Computing under.Net In.Net, there are three levels of access to distributed computing machinery: In.Net, there are three.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
CS590VC – Tutorial 9 Calling Web Services from Second life.
Distributed Communication via ASP.Net Web Services and.Net Remoting By Richard King.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
Lecture 15 Introduction to Web Services Web Service Applications.
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
1 UCN / IT Distributed Programming Web Services Purpose Examples of Web Services Architecture Web Services in.Net.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
Web Services Brenton Lovett Wizard Information Services.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
.Net and Web Services Security CS795. Web Services A web application Does not have a user interface (as a traditional web application); instead, it exposes.
1.NET Web Forms Web Services © 2002 by Jerry Post.
Computer Science 101 Web Services. Alsos Search for Niels Bohr.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
XML Web Service. Overview of XML Web Service ASP.NET XML Web services enable you to remotely access the properties and methods of classes across a network.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
1 Web Services Web and Database Management System.
Introducing ASP+ Scott Mitchell
1 CS 3870/CS 5870: Note 20 Web Service. 2 What is Web Service? Providing functionality online to other applications, Web and Windows applications. The.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Module 9: Using XML Web Services in a C# Application.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
1 CS 3870/CS 5870: Note 13 Web Service. 2 What is Web Service? Providing functionality online to other Web applications SOAP Simple Object Access Protocol.
.NET Mobile Application Development XML Web Services.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
Applied Architecture & Styles. Not all problems can be solved by following a simple, uniform design solution. Most will require some invention or innovation.
OE-NIK HP Advanced Programming Web services Standards and protocols Using web services Using web services with asynchronous calls.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Jim Fawcett CSE775 – Distributed Objects Spring 2003
CS 3870/CS 5870 Web Service.
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
ASP.NET Web Forms and Web Services
Web Services CO5027.
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
Web Server Administration
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Quiz Points 4 Rules Raise your hand if you know the question
Chapter 42 Web Services.
Computer Science 101 Web Services.
Jim Fawcett CSE791 – Distributed Objects Spring 2002
A Little Bit of Active Server Pages (ASP)
Presentation transcript:

9. Web Services

2 Microsoft Objectives “Web Services are poised to change the future of software development...” WebServices

3 Microsoft Web services? “Web services are web apps that return data, not presentation. Since applications are typically about accessing data, web services are poised to become the next evolutionary step in distributed software development...” Why? –cross-platform application development –legacy system integration obj Web server obj XML

4 Microsoft Overview Web services involve many technologies: –WSDL to learn about web service –to call: proxy objects, SOAP, XML, HTTP and.ASMX pages obj Web server obj client app proxy method call HTTP request SOAP msg (XML). asmx web service method call WSDL

5 Microsoft Example Google A great search engine – –but what if I want my own GUI?

6 Microsoft Google web service Google offers a web service that performs searches for you Why? –clients can build custom GUIs –google.com can make money! // ask google to search for us... google = new GoogleSearchService(); result = google.doGoogleSearch("4a8/TvZQFHID0WIWnL1CMmMx0sNqhG8H", txtSearch.Text, 0, 10, false, "", false, "", "", ""); // display resulting URLs... foreach (ResultElement re in result.resultElements) lstURLs.Items.Add(re.URL);

7 Microsoft Working with web services Two steps: 1.build a web service 2.build clients to use it

8 Microsoft (1) Building a web service Start by creating a project of type “ASP.NET Web Service”

9 Microsoft A web service is… One or more objects that respond to web-based method calls –there is no GUI design to a web service –only raw classes with methods… public class Service1 : System.Web.Services.WebService {. }

10 Microsoft Example Looks like C#, but keep in mind these are web-based methods –client could be calling from any platform –parameters passed using XML public class Service1 : System.Web.Services.WebService { [WebMethod] public int Add(int x, int y) { return x + y; } [WebMethod] public string[] Attendees() { > } attribute inherit

11 Microsoft (2) Building a client Start by creating a client… –WinForm, WebForm, console-based, anything you want! –for fun, let's use VB…

12 Microsoft Reference the component As usual, we need to reference component –this will activate IntelliSense –this will make sure we call it correctly –this will enable underlying XML + SOAP communication How? –project references, right-click, Add web reference… –type URL for web service, e.g. service name class name web server

13 Microsoft Program against component Treat web service like any other class! –use new to create instances –make method calls –pass parameters Private Sub Button1_Click(...) Handles Button1.Click Dim i, j, k As Integer i = CInt(TextBox1.Text) j = CInt(TextBox2.Text) Dim obj As localhost.Service1 obj = New localhost.Service1() k = obj.Add(i, j) MessageBox.Show("Sum = " + k.ToString()) End Sub

14 Microsoft Underlying execution… Here's what the call to Add() actually looks like: Web server obj client app proxy obj.Add(i, j); HTTP request: Service1.asmx asmx web service obj.Add(10, 20);

15 Microsoft Summary Pretty powerful stuff! Lots of technology be used underneath: –XML for parameter-passing –SOAP as protocol –HTTP –ASP.NET –IIS

16 Microsoft References Books: –Y. Shohoud, "Real World XML Web Services: for.NET and VB.NET Developers" Web sites: –

17 Microsoft Lab? Work on lab #6, "Web Services"…