© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.

Slides:



Advertisements
Similar presentations
Web Service Architecture
Advertisements

Session 6 Module 2 Calling a Web Service from an ASP.NET Web Page.
Siebel Web Services Siebel Web Services March, From
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Tuesday, June 10, 2003 Web Services Brief Overview & Security Assertion Coordinator Pattern by Mohammad Abushadi & Riaz Ahmed for Security Group CSE -
Matthew Kubicina CIS 764 Kansas State University.
WEB SERVICES. FIRST AND FOREMOST - LINKS Tomcat AXIS2 -
XML Web Services Monash University Semester 1, March 2006.
© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Presentation 10 SOAP on the Microsoft Platform (.NET)
Introduction to WSDL presented by Xiang Fu. Source WSDL 1.1 specification WSDL 1.1 specification – WSDL 1.2 working draft WSDL.
CIS 375—Web App Dev II SOAP.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
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.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic 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.
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 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 25 How.NET and Web Services Work How.NET and Web Services Work.
Lecture 15 Introduction to Web Services Web Service Applications.
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.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
2004/12/02Slide Number 1 of 15 Exposure Time Calculator (ETC) as a Web Service Donald McLean 2004 Technology Open House.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senn’s Information Technology, 3 rd Edition Chapter 12 Creating Web-Enabled.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
Web Services BOF This is a proposed new working group coming out of the Grid Computing Environments Research Group, as an outgrowth of their investigations.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
1 Web Services Web and Database Management System.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Kemal Baykal Rasim Ismayilov
CSIT 220 (Blum)1 Remote Procedure Calls Based on Chapter 38 in Computer Networks and Internets, Comer.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
An Introduction to Web Services Web Services using Java / Session 1 / 2 of 21 Objectives Discuss distributed computing Explain web services and their.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
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.
Developing Web Services with the Eclipse Web Tools Platform David Gallardo.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
Web Services An Introduction Copyright © Curt Hill.
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 Presented by Sarath Chandra Dorbala.
In this session, you will learn to: Understand managed code Create managed database objects Define the Hypertext Transfer Protocol endpoints Implement.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
A Web Services Journey on the .NET Bus
ASP.NET Web Forms and 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
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Universal Description, Discovery and Integration (UDDI)
A Little Bit of Active Server Pages (ASP)
Presentation transcript:

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University of the West Indies Session 6 – Building Enterprise-scale Web- based Applications – Part V : Web Services Spring 2009

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Objectives At the end of this session the student shall be able to: Describe a web service Create a simple web service

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott An ASP.NET application comprises of (MacDonald 2007, p. 130) :

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Web services Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without intimate knowledge of each other's IT systems behind the firewall.

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Web services contd Web services use a variety of technologies ( ): Extensible markup language (XML) – to describe the data Simple object access protocol SOAP (SOAP) – to transport the data Web Service definition language (WSDL) Describes the capabilities of the Web Service Universal description, discovery and integration (UDDI) – to list the available services Hypertext Transfer Protocol (HTTP) – rules for transferring files over the Internet

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Creating a Web Service (Singh 2002) As a simple example let us create a Calculator Web Service which: Provides a description of the services offered Multiplies two integers Click here to get the two files required for our example: Click here Service.asmx (the web service) and multiply.cs (our consumer)

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott What is the first step when creating a Web Service? Create a virtual directory that will be used to store your Web Service (Control Panel | Administrative Tools | Internet Information Services) For our example call the virtual directory Calculator

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott The Second step is to create the actual service that you want to provide Our Web Service is stored in the file S ervice.asmx (the.asmx extension is used by Web Services): The WebService page directive defines the Web Service The name space of the Web Service is specified using [WebService(Namespace=" /Calculator/")] Each method provided by the Web Service begins with [WebMethod]

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott The third step is to publish the service Since we have already created a virtual directory and copied service.asmx into it, we have already published our service To test our service simply type rvice.asmx rvice.asmx This returns a web page with a description of the services that are offered

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Supposed someone want to use our Calculator Service? Anyone wanting to use our service will need to write a Web Service consumer, either: A Web-based Service Consumer, or A Windows Application-Based Web Service Consumer For simplicity we will create a Windows Application-Based Web Service Consumer Building a Web-based Service Consumer is also easy

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Next, we have to write proxy for the Web Service that is being consumed The WSDL utility is used (at the command prompt) WSDL e.asmx?WSDL This creates a proxy (an intermediary between our application and the Web Service) Calculator.cs is created which contains the proxy code We now need to create a DLL for the proxy (Calculator.dll) csc /target:library Calculator.cs

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott What does the proxy do? The proxy takes care of all the communication between our application and the Web Service This includes the use of the SOAP and WSDL protocols

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Compiling the consumer Now that the dll for the proxy has been created all that is left to be done is to compile the consumer with the proxy: csc /reference:Calculator.dll multiply.cs

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Running the application To run the newly created multiply application which utilises the calculator web service simply type: > multiply 2 3 The result returned is 2 * 3 = 6

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Conclusion In this session The term Web Service was defined A simple Calculator Web service was created

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott References Platt, D., Introducing Microsoft.NET, Third Edition, Microsoft Press, 2003 Ruvalcaba, Z., Build Your Own ASP.NET Website Using C# And VB.NET, Chapter 1 – Introduction to.NET and ASP.NET, Available online at Ruvalcaba, Z., Build Your Own ASP.NET Website Using C# And VB.NET, Chapter 2 – ASP.NET Basics, Available online at Singh, S,.NET Web Services Tutorial, Available online at W3Schools, Web Services Tutorial, nd. Available online at