.NET Mobile Application Development XML Web Services.

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
Web Services Web Services are the basic fundamental building blocks of invoking features that can be accessed by an application program. The accessibility.
1 Understanding Web Services Presented By: Woodas Lai.
RPC Robert Grimm New York University Remote Procedure Calls.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
G O B E Y O N D C O N V E N T I O N WORF: Developing DB2 UDB based Web Services on a Websphere Application Server Kris Van Thillo, ABIS Training & Consulting.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Windows Communication Foundation and 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.
Remote Method Invocation Chin-Chih Chang. Java Remote Object Invocation In Java, the object is serialized before being passed as a parameter to an RMI.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
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.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
.NET Mobile Application Development Remote Procedure Call.
Generation of WEB SERVICES Using PROGRAM SLICING RAVINDRA KUMAR SUDIP AKURA AMIT KUMAR BALKARAN SINGH SIDHU
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
A Cross-Platform Component Based Ecommerce Framework in.NET Vishwak Rajgopalan Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Mitchell.
Chapter 9 Web Services Architecture and XML. Objectives By study in the chapter, you will be able to: Describe what is the goal of the Web services architecture.
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
VS.NET Syllabus By Peter Huang.
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
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.
Distributed Communication via ASP.Net Web Services and.Net Remoting By Richard King.
Web Services: An Introduction Al Kassam Briyante Software Corp
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
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.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Web Services based e-Commerce System Sandy Liu Jodrey School of Computer Science Acadia University July, 2002.
.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.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
1 Introduction to Web Application Introduction to Web Services.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
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.
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.
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.
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.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
EGEE is a project funded by the European Union under contract IST Introduction to Web Services 3 – 4 June
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
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.
Windows Communication Foundation and Web Services
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
WEB SERVICES.
Windows Communication Foundation and Web Services
Web services, WSDL, SOAP and UDDI
The future of distributed systems architecture
Lecture 4: RPC Remote Procedure Call CDK: Chapter 5
Introduction to Web Services
Distributed System using Web Services
Chapter 42 Web Services.
Distributed System using Web Services
Chengyu Sun California State University, Los Angeles
Presentation transcript:

.NET Mobile Application Development XML Web Services

Introduction  In the previous session we examined Remote Procedure Call as a mechanism for allowing distributed software components to interact across the network  In this session we will examine >XML Web services, a simple form of cross-platform RPC >Creating and consuming Web services in.NET

XML Web Services  Web services >provide a simple form of cross-platform RPC >are objects hosted by Web server >enable interaction via textual XML messages >support use of user-defined types as arguments / return values >are not designed to be called by end users, only by other applications  Web services do not >offer a user interface >run continuously - objects created on demand (i.e. single call semantics) >preserve state across calls – stateless components

Web Service Fundamentals  Web services are based on open standards  XML >All interactions are textual messages  Web Services Description Language (WSDL) >XML description of Web service interface >Used by consumers to create proxies  Simple Object Access Protocol (SOAP) >XML encoding of data types >Used to serialize arguments and return values >Operates over http protocol  Web services are supported by many environments >e.g. Java,.NET, COM, etc

Web Service Architecture  Client uses WSDL to create proxy during development  At runtime, proxy used to interact with Web service  Proxy handles marshalling and other low-level details

Web Services and Serialization  Arguments / return values for Web services are serialized to XML .NET Web services use the XMLSerializer class to perform serialization. This class >provides simpler form of serialization than the full SOAP serialization used by.NET Remoting >only serializes public data members and simple-user defined types >does not transfer code with the serialized instance ­receiver cannot call methods, properties or events of this type

Supported Data Types in.NET Web Services  Basic types >bools, ints, floats, strings, dates & times  Enumerations  Arrays and simple collections >of supported types only  User-defined types >public data members and readable properties based on public members only  DataSet instances  XMLNode instances >portions of XML documents

Creating a.NET Web Service  Create dedicated IIS virtual directory >Use VS ASP.NET Web Service project type  Create C# class to implement service >Each remotely callable method must be tagged with [WebMethod] attribute >Simplest Web service is collection of stateless methods >Compiled to.asmx class  Create WSDL  Deploy WSDL and.asmx files to Web server  Everything in grey is done automatically by Visual Studio

Consuming a Web Service  Find Web service using known URL, discovery document or UDDI registry >‘Add Web Reference’ in Visual Studio  Retrieve WSDL for Web service >Used to create proxy before compilation >What happens if Web service interface changes?  Implement client logic and use proxy to invoke Web service  Everything in grey is done automatically by Visual Studio

Web Service Proxies  Created in.NET as hidden source code class in Web References folder  Contains >synchronous and asynchronous versions of Web methods defined by Web service >simple definitions of other types (public data members only) used, if needed  Bound to a specific Web service URL >Customizing the hidden source class constructor allows proxies to Web services of the same type to be constructed at runtime

Asynchronous Interaction  Web services offer two forms of asynchronous method invocation  One-Way Web service methods >Tagged with [OneWay] attribute >Call to one-way method via proxy returns immediately (fire-and-forget) >Return values are not possible; void methods only  Asynchronous method invocation >Standard feature of.NET >Simplified in Web services; generated proxy has asynchronous versions of all calls >Uses callback method to obtain return values

Example: Creating a.NET Web Service  Simple Web service to calculate cumulative interest  Single Web method required >Accepts two parameters ­Amount of loan (int) ­Length of loan (int) >Returns LoanDetails instance which contains the total amount payable ­Definition of LoanDetails type does not exist at client before proxy is built  Interest rate on loan is fixed and known only to Web service

Example: Consuming a Web Service  Simple Windows application for entering loan amount and period  Uses LoanCalculator Web service to retrieve LoanDetails instance with total loan amount  Note difference in members/properties in the LoanDetails type created by the proxy and that in the Web service.

 In this session we have discussed >XML Web services >Creating and using Web services in.NET  In the next session we will consider messaging and communication from mobile devices Summary

Reading and Resources Reading  MacDonald, Microsoft.NET Distributed Applications: Integrating XML Web Services and.NET Remoting, Microsoft Press, 2003 Chapter 5, pp139 – 174 Resources  Web Services Developer Centre >  Designing.NET Web Services > xhttp://msdn.microsoft.com/webservices/building/frameworkandstudio/designing/default.asp x  Indigo, the next generation of Web Services in Windows Longhorn >