Current Popular IT I Pertemuan 7 Matakuliah: T0403/Current Popular IT I Tahun: 2008.

Slides:



Advertisements
Similar presentations
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Advertisements

Web Service Architecture
Siebel Web Services Siebel Web Services March, From
Current Popular IT I Pertemuan 13 Matakuliah: T0403/Current Popular IT I Tahun: 2008.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
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.
Presentation 7: Part 1: Web Services Introduced. Outline Definition Overview of Web Services Examples Next Time: SOAP & WSDL.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
J2ME Web Services Specification.  With the promise to ease interoperability and allow for large scale software collaboration over the Internet by offering.
A New Computing Paradigm. Overview of Web Services Over 66 percent of respondents to a 2001 InfoWorld magazine poll agreed that "Web services are likely.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Slide 1 EE557: Server-Side Development Lecturer: David Molloy Room: XG19 Mondays 10am-1pm Notes:
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
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.
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
Web Service What exactly are Web Services? To put it quite simply, they are yet another distributed computing technology (like CORBA, RMI, EJB, etc.).
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Introduction SOAP History Technical Architecture SOAP in Industry Summary References.
INTRODUCTION TO WEB DATABASE PROGRAMMING
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
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.
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
1 HRS2422 Web Services JAX-WS and SOAP Introduction  Web service – A software component stored on one computer that can be accessed via method.
Outline  Enterprise System Integration: Key for Business Success  Key Challenges to Enterprise System Integration  Service-Oriented Architecture (SOA)
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
Lecture 15 Introduction to Web Services Web Service Applications.
Dodick Zulaimi Sudirman Lecture 14 Introduction to Web Service Pengantar Teknologi Internet Introduction to Internet Technology.
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.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development using JSP and Web Services JSP and Web Services 18 th March 2005.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
1 Web Services Web and Database Management System.
XML and Web Services (II/2546)
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
S imple O bject A ccess P rotocol Karthikeyan Chandrasekaran & Nandakumar Padmanabhan.
Kemal Baykal Rasim Ismayilov
S O A P ‘the protocol formerly known as Simple Object Access Protocol’ Team Pluto Bonnie, Brandon, George, Hojun.
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.
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.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
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.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
SOAP, Web Service, WSDL Week 14 Web site:
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
Ch > 28.4.
Web Server Administration
The future of distributed systems architecture
Deepak Shenoy Agni Software
Presentation transcript:

Current Popular IT I Pertemuan 7 Matakuliah: T0403/Current Popular IT I Tahun: 2008

Learning Outcomes Learner can describe web services Learner can create web services Learner can write optimized web services code Bina Nusantara Copyright © Surya Sujarwo 2008

Material Outline XML Web Services How Web Services Work Uses For Web Services Web Services in ASP.NET Writing optimized web services Bina Nusantara Copyright © Surya Sujarwo 2008

XML Web Services What Are XML Web Services? – XML Web services are a way for applications to share data and business logic, over the Web, using nonproprietary standard protocols, such as XML and HTTP, which are supported in a wide variety of environments. History – In the past XML Web Service were much less robust, portable, and easy to use. E.g. Says we work in a shipping company name shipCo, Inc. Many of our client needs to calculate of their shipping cost. Before web services, we have options: First Option: Distribute our shipping price data to the client, so that the clients could import the data into their local data stores and access it. The problem: when the prices change. Second Option: Open up our proprietary network and allow clients to access it through a set of APIs or objects. The problems: client have to maintain their connection and configuration and support whatever means of programming is required to use the objects or APIs required for accessing the data, And also regarding different operating systems. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

XML Web Services (Continue…) History (continue…) Third Option: Create a web page that takes parameters and responds with string that contains the shipping price information embedded in it. The Problem: the calling program might have to make complex programming calls to request content from a Web server and there is no good way to get the results back from the call in an object-oriented manner. The result is embedded in string and must be parsed by the client application. XML Web Service: more like the third option, but instead of string, the return can be an object, when combined with the SOAP protocol and be called in an object-oriented way. The calling program doesn’t have to make low-level socket connections and send HTTP GET request and then read of the returned stream. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

XML Web Services (Continue…) When data returned, they are parsed for the data parts to be used in business logic Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

XML Web Services (Continue…) Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002) Using the.NET Web services:

How Web Services Work Web service can work due to SOAP. SOAP is a nonproprietary way for invoking programming logic across standard Web protocols. It also provides a mechanism for converting XML that is sent over the Web, either to or from a Web service, into objects. SOAP provides a definition for messages to be sent to make calls over the Web. ASP.NET Web services also use SOAP for enveloping the XML into objects for us. When the call to a Web service return an object like the ShipCoInfo class, the actual contents of the object, and not a binary object, are sent over the wire. Because we are calling the Web service over the HTTP protocol, it returns its results as a stream of text, formatted in XML. Then, once the stream of XML has been received by the calling program, it is deserialized into objects by the framework. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Uses For Web Services The main uses of web services is to provide one logic to all clients like in the following condition: – A large bank corporation has several thousand employees using 20 different enterprise application to do their various jobs. – The application as follow: Windows platform application written in MFC, ATL, VB, and Access. Unix and Solaris application written in Java and C++. Web based: IIS with ASP, Unix with Perl/CGI. – Every single application needs to be able to pull up the contact information of 100,000 customer’s in the company’s master database. Typical company often has many redundant, disparate chunks of code that all access the same data, each in its own way. – Some systems make call through COM or DCOM objects to get the contact info Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Uses For Web Services (Continue…) – Some via Java RMI or CORBA methods – Others might call the database directly from SQL Library in Unux. Obviously this leads to many problems, not the least of which is the amount of code and support needed to accomplish all of this. On top of that is the administration of all of these database connections and credentials, not to mention what happens when the table layout changes slightly. Half of the apps in the organization might be in need of repair and recompile at that point. A Web service that has a simple object-based interface that allows listing, searching, adding, deleting, and updating of the customer contact database could be this fictional company’s savior. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Uses For Web Services (Continue…) If these programs all accessed the contact information using this Web service, several problems would be solved: – First, a consistent programming model could be used by all applications that need the information, no matter what type of language or OS they were developed on. SOAP is destined to be available to all development environments in the future, and most already have the means to make HTTP calls over the Internet. – Second, the interface to the data can be abstracted to the underlying data structure. What if the customer tables change or even get ported to a completely different brand of database server? Using the Web service as the single point of access to this data, it is the only code that needs to be modified. As long as the objects and Web service interface remain the same, all consuming programs will continue to work without interruption. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Uses For Web Services (Continue…) Imagine how much money could be saved in just one instance of having to modify the customer database slightly if only one app—the Web services app—has to be changed. Another major benefit is that because Web services are called over the Internet, the only thing the consuming app really needs in production is a valid Internet connection allowing it to be used outside of the corporate network. Besides, Web services can also help in the public domain, where a company may wish to share its data with anonymous users over the Web. E.g. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Uses For Web Services (Continue…) One more example: – imagine a Web-based communication system where one company maintains a Web chat server with chatting functionality exposed as Web services. – With that system in place, it would be very easy to embed chat capabilities into any consumer- or business-based rich client application. – Taking it even a step further, a PC-based consumer application could implement its user interface in the client machine but get all of its business logic and functionality via Web service calls. – This would keep every user on the same version and eliminate piracy. – It could also usher in the new notion of application rental over the Web. Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Publish the web services Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Add Web Reference from Visual C#, in menu Add Reference, choose Advanced, then choose Add Web Reference Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Use in ASP.NET Website Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Web Services in ASP.NET (Continue…) Bina Nusantara References: Developing Web Applications with ASP.NET and C# (Hank Meyne and Scott Davis, 2002)

Writing optimized web services Important Technology: – Standard Object Access Protocol (SOAP): A communications protocol and an XML-based specification for messages. The protocol of choice for communicating with Web services, although HTTP-POST and HTTP-GET are viable (but limited) alternatives. SOAP messages are usually transmitted over HTTP, although they may also be transmitted over TCP/IP, SMTP, and assorted other protocols. – Web Services Description Language (WSDL): An XML-based vocabulary that describes the set of SOAP messages that a Web service supports. Every Web service has an associated WSDL file that documents the Web methods, including their arguments and return type. VS.NET uses the WSDL file for generating a proxy class that ASP.NET consumer applications can use for communicating with the Web service. VS.NET also provides a default Service Description screen that summarizes the WSDL information in a readable format. You can view the service description when you navigate directly to a Web service and append the ?WSDL query string to the URL entry. – Universal Discovery, Description, and Integration (UDDI): A registered XML file that publishes information about a Web service in a centralized, browsable location. A UDDI directory enables third parties to locate and research your Web service. For more information, visit Bina Nusantara References: Performance Tuning and Optimizing ASP.NET Applications (Jeffrey Hasan and Kenneth Tu, 2003)

Writing optimized web services (Continue…) Bina Nusantara References: Performance Tuning and Optimizing ASP.NET Applications (Jeffrey Hasan and Kenneth Tu, 2003) Simple design optimizations: – Use asynchronous Web method calls where possible – Use timeouts for synchronous calls – Use output caching for responses – Minimize traffic – Minimize use of complex data types – Use SOAP Headers for global information – Use client-side invocation – Code intelligently – Compile intelligently

That’s All Thank You for the Attention Bina Nusantara