DAT 330 Building Web Services with SQL Server and SQLXML 3.0 Alexander Vaschillo Lead Program Manager WebData XML Group Microsoft Corporation.

Slides:



Advertisements
Similar presentations
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
Advertisements

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.
Inside Data Access with SQLXML: Architecture Guide Rolandas Gricius MCT, MCSE, MCSD Adapted From.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
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.
Stanford University EH&S A Service Oriented Architecture For Rich Internet Applications Sheldon M. Heitz.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
SQL Reporting Services Overview SSRS includes all the development and management pieces necessary to publish end user reports in  HTML  PDF 
SQL Server 2000 and XML Erik Veerman Consultant Intellinet Business Intelligence.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
DAT304 Leveraging XML and HTTP with Sql Server Irwin Dolobowsky Program Manager Webdata Group.
Trends in Database Development: XML,.NET, WinFS Alexander Vaschillo Microsoft Alexander Vaschillo Microsoft.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Integrating XML with Microsoft SQL Server ©NIITeXtensible Markup Language/Lesson 9/Slide 1 of 31 Objectives In this lesson, you will learn to: * Generate.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
Copyright © 2014, 2015 William R. Vaughn All rights reserved William R. Vaughn.
Chapter 1: Introduction to Web
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Introducing Reporting Services for SQL Server 2005.
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France.
Storage Manager Overview L3 Review of SM Software, 28 Oct Storage Manager Functions Event data Filter Farm StorageManager DQM data Event data DQM.
Slide 2 The Microsoft Office Project 2003 Software Development Kit Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation Uma.
AUTOMATION OF WEB-FORM CREATION - KINNERA ANGADI – MS FINAL DEFENSE GUIDANCE BY – DR. DANIEL ANDRESEN.
.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.
DEV339 Best Practices for Debugging Visual Studio.NET Applications Keith Pleas Architect, Guided Design
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
5/24/01 Leveraging SQL Server 2000 in ColdFusion Applications December 9, 2003 Chris Lomvardias SRA International
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Microsoft SQL Server 2000 Cheng Ji November 3, 2003.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
PHP PDO & PHP SOAP Introduce. Agenda What is PHP PDO and PHP SOAP? Setup PHP PDO to connect database, query database and close the connection. Setup SOAP.
COM+ And CORBA Interop With XML-Based Web Services Jay Schmelzer Partner Clarity Consulting, Inc
DAT 360: DTS in SQL Server 2000 Best Practices Euan Garden Group Manager, SQL Server Microsoft Corporation.
1 Web Services Web and Database Management System.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
Nfs or ftp server Server 1 Server 2 ClinCapture web app SAS script SAS REST notification service [SAS RNS] (can be run as standalone app) upload / download.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
DAT430 Extending Microsoft ® ADO.NET Building a Custom Data Factory API DAT430 Extending Microsoft ® ADO.NET Building a Custom Data Factory API Gert E.R.
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.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Developing SQL Server 2000 Reporting Services Applications Brian Welcker Group Program Manager SQL Server Reporting Services Microsoft Corporation.
Web Services An Introduction Copyright © Curt Hill.
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
SQLXML XML Technology For SQL Server Brian Moore Developer and Platform Strategy Group Microsoft Corporation.
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.
DAT 405 Extreme SqlXml Irwin Dolobowsky Program Manager – SqlXml Microsoft Corporation.
Dev399 SQLXML: XML Views and Relational Data Irwin Dolobowsky Program Manager Webdata Group Microsoft Corporation.
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.
DAT 400 Inside Data Access with SQLXML: Architecture Guide Alexander Vaschillo Lead Program Manager WebData XML Group Microsoft Corporation.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
Web services, WSDL, SOAP and UDDI
Tech·Ed North America /22/2019 3:15 AM
Eurostat Unit B3 – IT and standards for data and metadata exchange
Presentation transcript:

DAT 330 Building Web Services with SQL Server and SQLXML 3.0 Alexander Vaschillo Lead Program Manager WebData XML Group Microsoft Corporation

SQLXML Talks SQLXML: XML Technology for SQL Server SQLXML: XML Technology for SQL Server  DAT200, Alexander Vaschillo, Jul 2 8:30 Building Web Services with SQL Server and SQLXML 3.0 Building Web Services with SQL Server and SQLXML 3.0  DAT330, Alexander Vaschillo, Jul 2 18:15 Inside data access with SQLXML: Architecture guide Inside data access with SQLXML: Architecture guide  DAT400, Alexander Vaschillo, Jul 3 10:00

Agenda SQLXML Overview SQLXML Overview SQL Server 2000 Web Services Overview SQL Server 2000 Web Services Overview  What can be exposed  What does SQLXML 3.0 do for you How to create a Web Service How to create a Web Service  Setting up a Web Service  Available Options Support for Visual Studio.NET Support for Visual Studio.NET Demo Demo

The Two Worlds SQLServer RowSet SQL Relational world Language Data storage Data output XML world XMLFiles XPathXQuery XML/HTML XMLView SQLXML – Bringing worlds together

Query/Update Technologies FOR XML (raw, auto, nested, explicit) FOR XML (raw, auto, nested, explicit)  SQL language extension to retrieve XML instead of rowsets XML Views – XPath, XQuery XML Views – XPath, XQuery  Work with your relational database as if it was XML file (through annotated schema) Updategrams/Diffgrams Updategrams/Diffgrams  Update through XML View Bulkload Bulkload  Shred large XML files into existing tables

Data Access Methods HTTP Access via URL HTTP Access via URL  SQL Query  XPath Query  XML Templates ADO / OLEDB ADO / OLEDB.NET access through SQLXML Managed Classes.NET access through SQLXML Managed Classes Web Services Web Services

SQLXML 3.0 Introduces Web Services for SQL Server Introduces Web Services for SQL Server Turn your SQL Server into a Web Service in 15 minutes Turn your SQL Server into a Web Service in 15 minutes Released at Visual Studio.NET Launch, February 2002 Released at Visual Studio.NET Launch, February 2002 Localized to 8 languages at launch Localized to 8 languages at launch Integral part of Microsoft’s.NET vision Integral part of Microsoft’s.NET vision

Web Services Overview Web Services expose Stored Procedures and XML Templates Web Services expose Stored Procedures and XML Templates Messaging done according to SOAP 1.1 standard Messaging done according to SOAP 1.1 standard Variety of response options Variety of response options Can run on database server or mid-tier Can run on database server or mid-tier  Wherever IIS is Simple UI for configuration Simple UI for configuration  Even DBA’s can do it!

What can be exposed? XML Templates XML Templates  XML returned from template is simply returned from the Web Service Stored Procedures Stored Procedures  Relational data converted to XML  XML Data is returned  Output Parameters also returned UDF’s- Visible like a store procedure UDF’s- Visible like a store procedure

What does SQLXML do for you? Creates Web Services Description Language (WSDL) file Creates Web Services Description Language (WSDL) file  Describes Web Service  Indicates what Methods are available  Difficult to write by hand. WE DO IT FOR YOU! Parses SOAP requests Parses SOAP requests Returns proper SOAP response Returns proper SOAP response

How is it done? Admin creates a Web Service and adds Web Methods via a simple UI Admin creates a Web Service and adds Web Methods via a simple UI  Web Methods map to Stored Procedures and Templates  WSDL file is created Client retrieves WSDL via URL Client retrieves WSDL via URL  Client now knows the methods available Client now knows the methods available  Method names  Parameters  Return Values

How is it done (continued)? Client application sends SOAP encoded request (Procedure call) Client application sends SOAP encoded request (Procedure call)  POST to SOAP vName SQLXML parses request SQLXML parses request  Method Name  Parameters XML Template or Stored Procedure is called XML Template or Stored Procedure is called  Client has no idea that this is a template or stored procedure, or even that it’s SQL Server

How is it done (continued)? Proper SOAP encoded response is constructed and returned to the client Proper SOAP encoded response is constructed and returned to the client For methods mapping to XML Templates, results are already XML For methods mapping to XML Templates, results are already XML  Results are wrapped in SOAP envelope and returned For methods mapping to stored procedures, results are processed For methods mapping to stored procedures, results are processed  Results are converted to XML according to options chosen  XML is wrapped in SOAP envelope and returned

Architecture WebServer Virtual Directory SOAP VName WSDLWSDL Method Method Method XML Templates SQL Server 2000 SQL Server 2000 SP’sSP’s Config / Mappin g File File

Creating a Web Service Use the configuration tool to create a Virtual Directory (VDir) Use the configuration tool to create a Virtual Directory (VDir) Create a Virtual Name of type “SOAP” Create a Virtual Name of type “SOAP”  Name your Web Service  Give it a domain You Have a Web Service! Now to add some methods…

XML Template Methods Browse for an XML Template Browse for an XML Template  All templates available on the SQLXML tier Choose Web Method name Choose Web Method name Results always returned in “XML Objects” mode Results always returned in “XML Objects” mode

Stored Procedure Methods Select Stored Procedure from list Select Stored Procedure from list  Generated from login used for the VDir Choose Web Method name Choose Web Method name Select Output Formatting Select Output Formatting  RAW or NESTED Select Response Type Select Response Type  XML Objects  Dataset Objects  Single Dataset

Web Service Creation demo demo

Response Types All Responses are XML / SOAP All Responses are XML / SOAP  Response Type dictates what Visual Studio.NET De-Serializes the XML into  Other clients (Microsoft SOAP Toolkit) will just see XML Methods mapping to XML Templates have a fixed return type Methods mapping to XML Templates have a fixed return type  XML Objects

XML Objects Responses Visual Studio.NET recognizes an “array of objects” Visual Studio.NET recognizes an “array of objects” Each item in the array is de-serialized into an object Each item in the array is de-serialized into an object  XMLElement - Data  SQLMessage – Error Information Templates MUST use this response type Templates MUST use this response type

Dataset Objects Responses Visual Studio.NET recognizes an “array of dataset objects” Visual Studio.NET recognizes an “array of dataset objects” Each item in the array is de-serialized into an object Each item in the array is de-serialized into an object  Dataset - Data  SQLMessage – Error Information Only for Stored Procedures Only for Stored Procedures

SQLMessage Conveys Error information Conveys Error information Object Contains the following: Object Contains the following: Created directly from SQL Server Error Messages Created directly from SQL Server Error Messages  Class  Line Number  Message  Number  Procedure  Server  Source  State

Single Dataset Responses Visual Studio.NET recognizes a Dataset Visual Studio.NET recognizes a Dataset Retrieve results of a Stored Procedure and load into a Dataset in 1 line of code! Retrieve results of a Stored Procedure and load into a Dataset in 1 line of code! Dim Service As New MyHost.MyWebService() Dim ds As New System.Data.DataSet() Dim retval As Integer ds = Service.GetCustomerInfo(“ANTON”, retval)

Single Dataset Response Limitations No Error Information No Error Information  Either a dataset comes back or it doesn’t, no other messages Single Result Sets Only Single Result Sets Only  Use Dataset Objects mode for multiple result sets

Visual Studio.NET Integration SQLXML 3.0 Web Services designed for Visual Studio.NET SQLXML 3.0 Web Services designed for Visual Studio.NET In a Visual Studio.NET Project, “Add Web Reference” to your Web Service In a Visual Studio.NET Project, “Add Web Reference” to your Web Service  Proxy classes generated for your methods  Forget that you are not accessing local information  Visual Studio.NET takes care of the SOAP messaging and XML serialization Intellisence recognizes SPs and Templates and their parameters Intellisence recognizes SPs and Templates and their parameters

Visual Studio.NET Web Service Client demo demo

Visual Studio.NET Gotchas Value-Typed Parameters Value-Typed Parameters  No NULL values  No Missing/Empty Parameters Value-Typed Return Values Value-Typed Return Values  No NULL Values Data Munging in Dataset Only Mode Data Munging in Dataset Only Mode Special Characters in Table Names Special Characters in Table Names

Call to Action Web Services Toolkit Web Services Toolkit  Download from  Turn your SQL Server into a Web Service Today! Turn your SQL Server into a Web Service Today! Let us know what your think Let us know what your think

Additional Resources Web page Web page  Download SQLXML releases at: Download SQLXML releases at:  Contact us Contact us  PSS  news:microsoft.public.sqlserver.xml  us Documentation Documentation  SQL Server 2000 Documentation (Books Online)  Web Release documentation  Books

Books About SQLXML “Professional XML Databases” Various; Wrox Press; December, 2000 “Professional XML Databases” Various; Wrox Press; December, 2000 “Scripting XML and WML for Microsoft SQL Server 2000”, Tobias Martinsson; John Wiley & Sons; January, 2001 “Scripting XML and WML for Microsoft SQL Server 2000”, Tobias Martinsson; John Wiley & Sons; January, 2001 “Programming Microsoft SQL Server 2000 with XML” Graeme Malcolm; Microsoft Press; June, 2001 “Programming Microsoft SQL Server 2000 with XML” Graeme Malcolm; Microsoft Press; June, 2001 “Professional SQL Server 2000 XML” Various; Wrox Press; June, 2001 “Professional SQL Server 2000 XML” Various; Wrox Press; June, 2001 “XML and SQL Server 2000” John Griffin; New Riders Pub; July, 2001 “XML and SQL Server 2000” John Griffin; New Riders Pub; July, 2001 “Working With Microsoft SQL Server and XML” Sams Pub; January, 2002 “Working With Microsoft SQL Server and XML” Sams Pub; January, 2002

Resources from Microsoft Press For more information please visit the TechEd Bookshop. SQL & XML

Don’t forget to complete the on-line Session Feedback form on the Attendee Web site