Distributed Web Software  Presentation-based, e.g., dynamic web pages  Service-based – Web Services.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 3 Writing Java Applications, Java Development Tools.
Advertisements

18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Remote method invocation. Introduction First introduced in JDK 1.1. Allows distributed Java programs to work with each others by behaving as if they are.
Mark Holliday and Barry Wilkinson, 2004A2.1 Assignment 2 “Simple” Grid Services Assignment.
A1.1 Assignment 1 “Deploying a Simple Web Service”
Web MVC-2: Apache Struts Rimon Mikhaiel
6/2/2015Page 1 SOA Development and Deployment B. Ramamurthy.
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.
Assignment 2 Modifying, Compiling, and Deploying a Simple Service Presenter Information goes Here.
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
DOT NET WEB SERVICES Agenda  Web Services Discussion  Quick DOT NET DEMO  Assignment Assignment  Lab: Hello World Service/Client  Lab: Google Client.
J2ME RMI 1 Java 2 Platform, Micro Edition Implementation of J2ME RMI Application Farooq Sheikh.
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.
Lecture 10: Web Services. Outline Overview of Web Services Create a Web Service with Sun J2EE (JAX-RPC)
1 Web Services – Part II CS , Spring 2008/9.
Comparison of the RMI and the socket APIs
What is a web service?  A remote procedure call (RPC) over HTTP.  A web-accessible operation that takes input and returns results in XML.  Like a web.
Principles of Object-Oriented Software Development The language Java.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
Generalized Vector Space Model Definition Let k i be a vector associated with the index term k i. Independence of index terms in the vector model implies.
ΗΛΕΚΤΡΟΝΙΚΟ ΕΜΠΟΡΙΟ Web Services Overview Mary Grammatikou 9/06/2009.
Distributed Web Software Presentation-based, e.g., dynamic web pages Service-based – Web Services.
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Web Services CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Web Services (tying it all together) and Introduction to Grid Services Concepts These slides are adapted from course material developed by Barry Wilkinson,
JICSIT/ITAIC 2011 Keynote 1 Yinong Chen (Ph.D.) Arizona State University, Tempe, Arizona Service-Oriented Computing.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
1 Lecture 22 George Koutsogiannakis Summer 2011 CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES.
WSTK Development toolkit for Java Implementation of Web Services By Keping Jia.
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
COP 4991 Component Based Software Development Lecture #4 Java Web Services Onyeka Ezenwoye.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Java Server Pages A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format,
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
CS 584 Lecture 18 l Assignment » Glenda assignment extended to the Java RMI Deadline » No Java RMI Assignment l Test » Friday, Saturday, Monday.
+ A Short Java RMI Tutorial Usman Saleem
1 Creating File Access Services Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
Google’s Web Service January 4, 2004 Shuying Wang.
Sun’s Jini Lab 2 Service Registration Client Lookup.
Web Server Programming 3. Server side includes. HTML+ (‘hole’) technologies Uses ‘HTML+”, HTML (or XML) extended with code. Very many different varieties.
RMI Continued IS Outline  Review of RMI  Programming example.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Example: RMI Program How to write it.
1 Grid Web Services and Gateway PTLIU Laboratory for Community Grids Marlon Pierce, Choonhan Youn, Geoffrey Fox, Computer Science, Informatics, Physics.
1 Creating Web Services Presented by Ashraf Memon Hands-on Ghulam Memon, Longjiang Ding.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
How to Write a Grid Service  The grid service will do basic mathematical operations. The math grid service is going to have the following methods:  add:
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
GT3 Tutorial Chapter 3 and Chapter 4 Lecture for Cluster and Grid Computing, CSCE 490/590 Fall 2004, University of Arkansas, Dr. Amy Apon
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
Creating Web Services Presented by Ashraf Memon Presented by Ashraf Memon.
UMBC Distributed Computing with Objects RMI/Corba CMSC 432 Shon Vick.
WSTK Development toolkit for Java Implementation of Web Services By Keping Jia.
Netprog Java RMI1 Remote Method Invocation.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
Web Services-JAX-RPC JAX-RPC enables a Web Service endpoint to be developed using either a Java Servlet or Enterprise JavaBeans (EJB) component model.
Creating a Distributed System with RMI
Objectives In this lesson you will learn about: Need for servlets
Creating a Distributed System with RMI
Creating a Distributed System with RMI
Introduction to Web Services
CS 584 Lecture 18 Assignment Glenda assignment extended to the Java RMI Deadline No Java RMI Assignment Test Friday, Saturday, Monday.
Creating a Distributed System with RMI
Presentation transcript:

Distributed Web Software  Presentation-based, e.g., dynamic web pages  Service-based – Web Services

Without Web Service Layer: Content and Presentation mixed Database ADatabase BDatabase CDatabase D Servlet html

Web Services: Aggregators Database A Database BDatabase C Database D Service B Service A Service C Service D Aggregator Servlet html

View How You Want Database Service

View How You Want, Examples  Show Google Scholar as a graph  Various Bookstores using Amazon

Importance of Web Services  Larry Page, on why Google introduced its search API: “Within a few years, there will be more programs (agents) accessing Google than people accessing Google.”

Sample Web Service: The Google API   Your Java/.Net program can call Google functions.  SOAP underneath the hood  Let’s try it…

Google API Tutorial  Download at  Extract files from zip into directory “Google”  Register to get a key (same page).  Open the readme file that was downloaded.  Run the demo program from “Google” dir: java -cp googleapi.jar com.google.soap.search.GoogleAPIDem o search Foo Where is your registration key and Foo is the item you wish to search for.

Google API Tutorial  Check out the Google API Go to javadoc directory and click on index.html API Reference page is “APIs_Reference.html”  Check out demo program GoogleAPIDemo.java in main dir. Run it.

Google API Assignment  Write a class USFInward with a main program that lists the URLs (only) of five web pages that point to  Instead of beginning from scratch, modify GoogleAPIDemo.java.

Google Assignment Solution  SaveAs GoogleAPIDemo.java to USFInward.java.  Rename class in source file.  Replace the package statement at top with: import com.google.soap.search.*;  Modify code to perform requested actions.  javac -classpath googleapi.jar USFInward.java  Add “.” to classpath in execution line: java -cp.;googleapi.jar USFInward.java

Google Solution Issues  Define a private static final int MAX=5  Search string should be “linkto:  Use GoogleSearchResult.getResults() to get array, then loop on each GoogleSearchResultElement calling getURL()

Google Web Service: Under the Hood Google DB SOAP API Java APIC# API Java ClientC# ClientOther Client Google Crawler

Amazon Web Service  /panama/associates/ntg/browse/- / /

UDDI Registries

Writing Web Service Clients in Java WSDL – Web Service Description Language UDDI- Registry of Web Services WSDL wscompile Java stubs 1.Fine Web Service WSDL document in UDDI. 2.Generate Java stubs to access service: 3. Write Java client that accesses service through stubs.

Creating a Web Service  Similar to RMI, define a “Remote” interface public interface MathService extends Remote { int add(int x, int y) throws RemoteException; //… }  Implement the interface public class MathServiceImpl implements MathService { public int add( int x, int y) throws RemoteException; { return x+y; }

Creating a Web Service (cont.)  Use wsdeploy to create “ties” and WSDL file: wsdeploy WSDL Java ties MathService.java MathServiceImpl.java Package and Deploy– Build Web App Resource (WAR) file web.xml descriptor file