Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.

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.
© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Web Services and AIXM. Introduction Subramanyam “Subbu” Nadavala Contractor, L-3 Communications FAA Air Traffic Organization (ATO) Information Technology.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
Introduction to Web Services
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
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.
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.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
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.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Web Services February 14 th, Outline Overview of web services Create a web service with MS.Net Requirements for project Phase II.
Creating & Consuming Web Services MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
February 24 th -25 th 2004 Daragh Byrne – EPCC Additional.NET Concepts.
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.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
Developing Reporting Solutions with SQL Server
Web Services Week 2 Aims: Getting started with creating simple C# applications within Visual Studio.NET Objectives: –An introduction to the syntax of C#.NET.
Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 25 How.NET and Web Services Work How.NET and Web Services Work.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
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.
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.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
.NET Fundamentals ASP.NET Web Services December 11, 2003.
.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.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
1 Web Service Description Language (WSDL) 大葉大學資工系.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
1 Introduction to Web Application Introduction to Web Services.
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.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
Establishing a foundation for web services Ashraf Memon.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
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.
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.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
Lesson 15 Web Services. What Are Web Services Web services are programmable and reusable, much like component software, except that they are more easily.
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.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Web Services (Chapter 23 in [1]). 2 Outline Introduction Introduction.NET Web Services Basics.NET Web Services Basics Simple Object Access Protocol (SOAP)
6.2 XML Web Services Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Creating,Publishing,Testing and Describing a Web Service
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
WEB SERVICES.
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 Services Introduction
The future of distributed systems architecture
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Quiz Points 4 Rules Raise your hand if you know the question
Chapter 42 Web Services.
A Little Bit of Active Server Pages (ASP)
Presentation transcript:

Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming web services Introduction to role of underlying protocols (WSDL, SOAP)

About web services A web service is a class that resides on a web server, whose methods and member variables may be accessed over the Internet Underlying communication between web service and consuming application is via XML The consuming application can create objects from a proxy of the web service class

Proxy? Something authorized represent another E.g. an ambassador A proxy class is a representation of the web service class

Web service described by description language WSDL (an xml schema) Client application uses WSDL to create a proxy class hence instantiate object Data exchanged via SOAP (simple object access protocol)

Creating a web service in Visual Studio.NET From IDE main menu select ‘File->New->Project’Visual C# Projects [ASP.NET Web Service] You inherit from the super class… System.Web.Services.WebService And all web accessible methods should be public and prefixed with… [WebMethod]

namespace HelloWorld { public class Service1 : System.Web.Services.WebService { //Some auto generated code [WebMethod] public string HelloWorld() { return "Hello World"; }

The Web Service Assembly Builds to a directory on ISS web server. – Includes –Bin directory containing dll –a file with the suffix.asmx.

Testing your Web Service Can test the web service via –Debug->Start –or by typing the URL for it’s asmx file directly into a web Browser From the subsequent test web page can [Invoke] the method The output will be in XML, for example… Hello World

Consuming XML Web Service Consuming – i.e. using the web service Web services can be consumed by –Client side Windows Applications –Server side Web Applications –Other web services

Consuming with Visual Studio.NET Create a new project (e.g. Windows Application) From main menu select… Project->Add Web Reference … takes URL of web service Visual Studio uses the Web Service’s WSDL to create a proxy class Hence you use this class to instantiate Web Service object WebReference1.Service1 myws=new WebReference1.Service1();

Exercise 6.1 –Create your first XML Web Service Exercise 6.2 –Consuming your first XML Web Service Exercise 6.3 –Extend web service