6.2 XML Web Services Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India.

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

Web Service Architecture
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.
31242/32549 Advanced Internet Programming Advanced Java Programming
1 Understanding Web Services Presented By: Woodas Lai.
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.
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
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)
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.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
What are Xml Web Services? 1.A Web Service simply an application that exposes a Web- accessible API. 2.Web services are a new, standard platform for building.
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
Secure Systems Research Group - FAU Web Services Standards Presented by Keiko Hashizume.
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.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
CIS 451: Web Services Dr. Ralph D. Westfall March, 2009.
Introduction to .NET Rui Ye.
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.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Web Services & WCF ~ Ankit. Web services A web service is a collection of protocols and standards used for exchanging data between applications or systems.
Distributed Communication via ASP.Net Web Services and.Net Remoting By Richard King.
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 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 Standards. Introduction A web service is a type of component that is available on the web and can be incorporated in applications or used.
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 Services Web and Database Management System.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Kemal Baykal Rasim Ismayilov
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.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
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.
DEV332 Programming for the Middle Tier in Visual Basic.NET Billy Hollis Author / Consultant.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
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.
Software Architecture Patterns (3) Service Oriented & Web Oriented Architecture source: microsoft.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Java Web Services Orca Knowledge Center – Web Service key concepts.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Sabri Kızanlık Ural Emekçi
A Web Services Journey on the .NET Bus
WEB SERVICES.
Web Services Primer Overview of 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.
Implementing a service-oriented architecture using SOAP
Wsdl.
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Introduction to Web Services
Distributed System using Web Services
Distributed System using Web Services
WCF Data Services and Silverlight
Presentation transcript:

6.2 XML Web Services Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India

6.3 Agenda What is an XML Web service? What is an XML Web service? What does an XML Web service do? What does an XML Web service do? XML Web Services in.NET XML Web Services in.NET WSDL, DISCO and UDDI WSDL, DISCO and UDDI Developing XML Web Services Developing XML Web Services Securing XML Web services Securing XML Web services Web Service Exception Web Service Exception Web Service and.NET Remoting Web Service and.NET Remoting Web Service and BizTalk Web Service and BizTalk

6.4 What is an XML Web Service? A programmable application component accessible via standard Web protocols Open Internet Protocols XML Web service SOAP SOAP - XML Web service consumers can send and receive messages using XML SOAP - XML Web service consumers can send and receive messages using XML WSDL XML Web services Description Language WSDL - XML Web services are defined in terms of the formats and ordering of messages WSDL - XML Web services are defined in terms of the formats and ordering of messages Built using open Internet protocols Built using open Internet protocols XML and HTTP UDDI Universal Description, Discovery and Integration UDDI - Provides a directory of services on the Internet UDDI - Provides a directory of services on the Internet

6.5 What Does an XML Web Service Do? Expose functionality as a service and allow applications to share data Expose functionality as a service and allow applications to share data Can be called across platforms and operating systems and regardless of programming language Can be called across platforms and operating systems and regardless of programming language

6.6 XML Web Services in.NET Data Schema Services InvocationWebXML XSD WSDL SOAP ApplicationConceptsFrameworkObjects Classes Methods Calls The.NET Framework provides a bi-directional mapping

6.7 Web Service Description Language (WSDL) and SOAP "TypeLib for SOAP" "TypeLib for SOAP" Uniform representation for services Uniform representation for services  Transport Protocol neutral  Access Protocol neutral (not only SOAP) Describes how to call an XML Web service Describes how to call an XML Web service

6.8 DISCO DISCO is a proprietary file format placed at the root of a Web directory DISCO is a proprietary file format placed at the root of a Web directory Visual Studio generates the DISCO for your XML Web service when you generate your service Visual Studio generates the DISCO for your XML Web service when you generate your service Easy discovery model for HTTP Easy discovery model for HTTP

6.9 Universal Description, Discovery and Integration (UDDI) Registry (Directory) for Web Services Registry (Directory) for Web Services UDDI itself is a Web service – can be programmatically accessed UDDI itself is a Web service – can be programmatically accessed Businesses can publish to registry and query registry Businesses can publish to registry and query registry May point to WSDL files May point to WSDL files Initiative driven by Microsoft, IBM, Compaq, Intel, Sun, Oracle and 250+ other companies Initiative driven by Microsoft, IBM, Compaq, Intel, Sun, Oracle and 250+ other companies

6.10 Web Services (In Practice) Discovery Let me talk to you (SOAP) Design-Time or Dynamic Runtime HTML or XML with link to WSDL How do we talk? (WSDL) XML with service descriptions XML/SOAP BODY Find a Service Link to DISCO or WSDL document XML Web service Client UDDI WebService

6.11 Visual Studio.NET and XML Web Services Visual Studio.NET creates XML Web Services for you Visual Studio.NET creates XML Web Services for you Generates the plumbing Generates the plumbing  i.e., SOAP, DISCO, WSDL, etc… Automates the creation of the project files Automates the creation of the project files

6.12 Creating an XML Web Service Create standard function Create standard function  Right click project  Select add  Add XML Web service  Name service file  Define function  Use template function in.asmx file [WebMethod] Public string HelloWorld() { return “Hello World”; }

6.13 Creating An XML Web Service Demo XML Web Services 101 XML Web Services 101 Create a simple XML Web service Create a simple XML Web service

6.14 Consuming Web Services Demo XML Web Services Clients XML Web Services Clients Create ASP.NET page to use XML Web service Create ASP.NET page to use XML Web service

6.15 Generating Web Service proxy using “wsdl.exe” Utility to generate code for xml web service clients and xml web services using ASP.NET from WSDL contract files, XSD schemas and.discomap discovery documents. Utility to generate code for xml web service clients and xml web services using ASP.NET from WSDL contract files, XSD schemas and.discomap discovery documents. Allow greater control in generating the proxy class. Allow greater control in generating the proxy class.  Specify the language (C#, VB.NET, or JS)  Specify the namespace for greater interoperability  Specify the web service url from a configuration file  Specify the protocol  Specify the proxy server if needed

6.16 Returning Data from an XML Web Service SQL Server Customers DataAdapter XML Web service DataSet IIS Access Orders XML DataSet Generic Client.NET Client DataAdapter

6.17 Consuming Data from an XML Web Service Demo Using ADO.NET DataSets Using ADO.NET DataSets

6.18 Web Service Exception try{ // do something... // do something...} catch(Exception e) { // clean up code... // clean up code... throw new SoapException(...); throw new SoapException(...);}

6.19 Designing an XML Web Service Group related operations and data into one method Group related operations and data into one method Decide on: Decide on:  Arguments and return data  Whether to use existing classes or create new ones  Security Use output caching to improve performance Use output caching to improve performance Define your input and output data structures using XSD schemas Define your input and output data structures using XSD schemas Separate XML Web service from underlying business logic Separate XML Web service from underlying business logic

6.20 Web Service Façade (Architectural Patterns) Re-architect an existing client/server or fat client architecture into a 3 tiered application environment Re-architect an existing client/server or fat client architecture into a 3 tiered application environment Web enable an existing client/server or fat client architecture Web enable an existing client/server or fat client architecture Provide integration with external business partners. Provide integration with external business partners. Provide integration with internal business systems. Provide integration with internal business systems.

6.21 Web Service Façade (Architectural Patterns) (cont’d) Insulate existing user applications from changes in APIs, servers, or vendors of data and services. Insulate existing user applications from changes in APIs, servers, or vendors of data and services. Integrating a “silo” application -- unlock an existing application so it can participate in a larger business process. Integrating a “silo” application -- unlock an existing application so it can participate in a larger business process. Aggregate back-end systems so they’re exposed as one business process. Aggregate back-end systems so they’re exposed as one business process. Integrating application running on in heterogeneous environments (Linux, Solaris, AS400, etc) with applications running on Windows. Integrating application running on in heterogeneous environments (Linux, Solaris, AS400, etc) with applications running on Windows.

6.22 Securing XML Web Services Authentication Authentication  Standard user account mechanisms Authorization Authorization  Custom code  Configuration settings in Web.config Encryption Encryption  SSL  Watch out for performance hit  IPSec WS-Security WS-Security  Integrated security for Web Services  Global XML Web Services Architecture (GXA)

6.23 Web Service and.NET Remoting Using Web Services Using Web Services  Leverage the Web application model and the power of the ASP.NET HTTP Runtime  Exact type fidelity between.NET computers is not a concern and only some types of arguments can be passed Using.NET Remoting, you can: Using.NET Remoting, you can:  Publish or consume services in any type of application domain (ex. console, Windows, IIS, Web Service, etc.)  Preserve full managed-code type-system fidelity in binary formatted communications.  Pass objects by reference and return to a particular object in a particular application domain

6.24 Web Service and.NET Remoting (cont’d) Using.NET Remoting (cont’d): Using.NET Remoting (cont’d):  Control activation characteristics and object lifetimes directly.  Implement and use third-party channels or protocols to extend communication to meet your specific needs  Participate directly in the communication process to create the functionality you need  Potential performance benefits by being able to select the most optimal form of communication.

6.25 Web Services and BizTalk BizTalk Orchestration addresses the following issues with Web Services BizTalk Orchestration addresses the following issues with Web Services  Interaction among XML Web Services  Transaction management and exception handling  Concurrency  Interaction with non-XML Application

6.26 XML Web Services Summary Enable cross-platform communication Enable cross-platform communication Provide flexible mechanism for sharing information Provide flexible mechanism for sharing information Easy to create in.NET and Visual Studio.NET Easy to create in.NET and Visual Studio.NET

6.27 Resources What is an XML Web service? A simple overview of XML Web services What is an XML Web service? A simple overview of XML Web services XML Web Service Basics us/dnwebsrv/html/webservbasics.asp?frame=true XML Web Service Basics us/dnwebsrv/html/webservbasics.asp?frame=true XML Web Services Specifications - A simple explanation of XML Web services with a few links px XML Web Services Specifications - A simple explanation of XML Web services with a few links px Programmable XML Web Services - The basic building blocks for the Microsoft.NET Framework bplatform.htm Programmable XML Web Services - The basic building blocks for the Microsoft.NET Framework bplatform.htm

6.28 Resources Web Server Platform - A more detailed definition of XML Web services and how they impact.NET Applications tform.htm Web Server Platform - A more detailed definition of XML Web services and how they impact.NET Applications tform.htm XML Web Services Development Center – Latest up-to- date information (SDKs, specs, whitepapers, etc.) XML Web Services Development Center – Latest up-to- date information (SDKs, specs, whitepapers, etc.) Web Services Development Kit (WSDK) – GXA Technology Preview Web Services Development Kit (WSDK) – GXA Technology Preview default.asp default.asp Microsoft UDDI Developer Information Microsoft UDDI Developer Informationhttp://uddi.microsoft.com/developer/default.aspx

6.29 In-Depth Training on XML Web Services Direct from Microsoft 2524A: Developing XML Web Services (Visual C#.NET Beta 2) 2524A: Developing XML Web Services (Visual C#.NET Beta 2) 2524B: Developing XML Web Services Using Microsoft Visual Studio.NET 2524B: Developing XML Web Services Using Microsoft Visual Studio.NET

6.30