Web Service

67 %
33 %
Information about Web Service
Education

Published on June 10, 2008

Author: Sunil_Rawat

Source: authorstream.com

Introduction to Web Services Srinath VasireddySupport ProfessionalDeveloper SupportMicrosoft Corporation : Introduction to Web Services Srinath VasireddySupport ProfessionalDeveloper SupportMicrosoft Corporation Agenda : 2 Agenda What is a Web service? Technologies used XML, SOAP, WSDL, DISCO, and UDDI Walkthrough creating a Web service Walkthrough creating a Web service client References Q&A What is a Web Service? : 3 What is a Web Service? A programmable application component that is accessible via standard Internet protocols Web page with functions Available for a variety of clients Examples: stock quotes, traffic conditions, calculators, news, weather, et cetera Technologies Used : 4 Technologies Used Standard way to represent data XML (and XML schemas) Common, extensible message format SOAP Common, extensible contract language Web Services Description Language (WSDL) Way to discover site services Disco Way to discover service providers Universal Description, Discovery, and Integration (UDDI) XML : 5 XML Extensible Markup Language Language for describing documents with structured data Industry standard XML Schemas – XSD XML based Language for describing data types For more information, read: http://msdn.microsoft.com/library/en-us/dnwebsrv/html/xmloverchap2.asp SOAP : 6 SOAP A simple, XML-based protocol for exchanging structured and type information on the Web Industry standard Lightweight and XML-based protocol Can support different protocols and formats: HTTP, SMTP, and MIME SOAP message For more information, read: http://msdn.microsoft.com/soap/ WSDL : 7 WSDL It is an XML document describing Web services Define data types (XSD) Define messages in terms of types Define bindings to transport protocol, message format SOAP 1.1, HTTP Get/Post, MIME Define services as collections of ports WSDL.exe For more information read: http://msdn.microsoft.com/library/en-us/dnwebsrv/html/wsdlexplained.asp DISCO : 8 DISCO Document Discovery A client finds a particular Web services by discovery Document discovering services at a particular URL Document is in XML format Document has .disco and .vsdisco extensions Disco.exe UDDI : 9 UDDI Universal Description, Discovery, and Integration Enables businesses to publish and discover information about who provides what services Specification for distributed Web service registries: white pages, yellow pages, and green pages Builds on HTTP, XML, and SOAP For more information, read: http://msdn.microsoft.com/library/en-us/dnexxml/html/xml12182000.asp http://www.uddi.org/about.html Web Services Platform : 10 Web Services Platform ASP.NET ATL Server .NET remoting Microsoft® SOAP Toolkit ASP.NET Web Service : 11 ASP.NET Web Service Leveraging existing ASP developers Easy to build, deploy, and administer as a Web application File extension is .asmx End point is represented by URL Creating a Web Service (1) : 12 Creating a Web Service (1) Open Microsoft Visual Studio® .NET Select the language Select the project type: ASP.NET Web Service Creating a Web Service (2) : 13 Creating a Web Service (2) .asmx and .asmx.cs Web.config Global.asax WebService1.vsdisco Creating a Web Service (3) : 14 Creating a Web Service (3) Inside Service1.asmx <%@ WebService Language="c#" Codebehind="Service1.asmx.cs" Class="WebService1.Service1" %> Creating a Web Service (4) : 15 Creating a Web Service (4) Inside Service1.asmx.cs Add WebService attribute’s Namespace property [WebMethod] public string HelloWorld() { return "Hello World"; } [WebService(Namespace="http://localhost/webservice1/")] public class Service1 : System.Web.Services.WebService Uncomment the following code: Creating a Web Service (5) : 16 Creating a Web Service (5) Compile the Web service Creating a Web Service (6) : 17 Creating a Web Service (6) Run the Web service Creating a Web Service Client (1) : 18 Creating a Web Service Client (1) Create a Microsoft Visual C#™ console application Creating a Web Service Client (2) : 19 Creating a Web Service Client (2) Add Web reference (1) Creating a Web Service Client (3) : 20 Creating a Web Service Client (3) Add Web reference (2) Creating a Web Service Client (4) : 21 Creating a Web Service Client (4) Proxy file is created: Reference.cs Creating a Web Service Client (5) : 22 Creating a Web Service Client (5) Client code using System; namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main(string[] args) { localhost.Service1 wsproxy = new localhost.Service1(); Console.WriteLine(wsproxy.HelloWorld()); } } } Creating a Web Service Client (6) : 23 Creating a Web Service Client (6) Run the Web service client Summary : 24 Summary What is a Web service? Technologies used XML, SOAP, WSDL, DISCO, and UDDI Walkthrough of creating a Web service Walkthrough of creating a Web service client Start building Web services today! References : 25 References Programming the Web with XML Web services Visual Studio .NET Help ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconProgrammableWebServices.htm XML and SOAP Serialization Visual Studio .NET Help ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconserialization.htm Web Services Community Go to http://msdn.microsoft.com/newsgroups/managed/default.asp On left frame, drill down to .NET Development > Framework > dotnet.framework.aspnet.webservices Slide 26: Thank you for joining us for today’s Microsoft Support WebCast. For information about all upcoming Support WebCasts and access to the archived content (streaming media files, PowerPoint slides, and transcripts), please visit: http://support.microsoft.com/webcasts/ We sincerely appreciate your feedback. Please send any comments or suggestions regarding the Support WebCasts to feedback@microsoft.com and include “Support WebCasts” in the subject line.

Add a comment

Related presentations

Related pages

Webservice – Wikipedia

Sanjiva Weerawarana, F. Curbera, F. Leymann: Web Services Platform Architecture. Prentice Hall PTR, Upper Saddle River/NJ 2005, ISBN 0-13-148874-0. ...
Read more

Web service - Wikipedia, the free encyclopedia

A Web service is a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web. In a Web ...
Read more

Web Services - MSDN - Microsoft

Web services extend the World Wide Web infrastructure to provide the means for software to connect to other software applications. Applications access Web ...
Read more

WEB.DE - E-Mail-Adresse kostenlos, FreeMail, De-Mail ...

Das beliebteste Internetportal Deutschlands mit Angeboten rund um Suche, Kommunikation, Information und Services.
Read more

Web-Service — Enzyklopaedie der Wirtschaftsinformatik

Web-Services sind plattformunabhängige Software-Komponenten zur Realisierung verteilter Anwendungen. Gemäß der Definition des Begriffs Web-Service durch ...
Read more

Web-Services - GI - Gesellschaft für Informatik e.V.

Zurück zu: Informatiklexikon. Web-Services Ein Web-Service entspricht der XML-basierten Darstellung einer Anwendung oder Software-Komponente. Web-Services ...
Read more

Web Services with ASP.NET - msdn.microsoft.com

Rob Howard Microsoft Corporation. February 22, 2001. Web Services are the underpinning of Microsoft's .NET strategy. The concepts and the innovations ...
Read more

Web Service - Golem.de

Web Service. Ein Web Service ist eine im Netz bereitgestellte Komponente, die eine Abstraktionsebene einer Anwendungslogik darstellt. Auf den Dienst kann ...
Read more

web-service4u

Web-Service4U. Hosting und Domains - Persönlich. Fair. Günstig. Home; AGB; Impressum; Datenschutzerklärung; FAQ; ... Design by IT-Service Kretzschmar ...
Read more

Webservice First - Ihr Intelligenter Kundenservice

Webservice First - Ihr webbasierter Kundenservice. Intelligente Self-Service-Lösung, die das Supportaufkommen verringert und die Kundenzufriedenheit erhöht.
Read more