Barry Wilkinson and Mark Holliday, 2004A1.1 Assignments Preliminaries Several computers are configured at WCU for the assignments. Here, terra.cs.wcu.edu.

Slides:



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

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Introduction to Computer Science Robert Sedgewick and Kevin Wayne Recursive Factorial Demo pubic class Factorial {
A1.1 Assignment 1 “Deploying a Simple Web Service” ITCS 4010/5010 Grid Computing, UNC-Charlotte B. Wilkinson, 2005.
Barry Wilkinson Department of Computer Science University of North Carolina at Charlotte Mark Holliday Department of Mathematics and Computer Science Western.
Grid Computing, Barry Wilkinson, 2004A3.1 Assignment 3 Simple Job Submission Using GRAM.
Mark Holliday and Barry Wilkinson, 2004A2.1 Assignment 2 “Simple” Grid Services Assignment.
A1.1 Assignment 1 “Deploying a Simple Web Service”
A3.1 Assignment 3 Simple Job Submission Using GT 4 GRAM.
1 Workshop 20: Teaching a Hands-on Undergraduate Grid Computing Course SIGCSE The 41st ACM Technical Symposium on Computer Science Education Friday.
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
Web MVC-2: Apache Struts Rimon Mikhaiel
Assignment 2 Modifying, Compiling, and Deploying a Simple Service Presenter Information goes Here.
A2.1 ITCS 4010/5010 Grid Computing, 2005, UNC-Charlotte, B. Wilkinson Assignment 2 “Simple” Grid Services Assignment.
3b.1 Web Services Part II Implementation details ITCS 4010 Grid Computing, 2005, UNC-Charlotte, B. Wilkinson, slides 3b version 0.1.
AssignPrelim1.1 © 2011 B. Wilkinson/Clayton Ferner. Modification date: Aug 22, 2011 Course Preliminaries.
AssignPrelim1.1 ITCS 4010 Grid Computing, 2005, UNC-Charlotte, B. Wilkinson. Course Preliminaries.
AssignPrelim1.1 ITCS 4146/5146 Grid Computing, 2007, UNC-Charlotte, B. Wilkinson. Jan 13, 2007 Course Preliminaries.
AssignPrelim1.1 ITCS 4146/5146 Grid Computing, 2008, UNC-Charlotte, B. Wilkinson. Aug 25, 2008 Course Preliminaries.
Assignment 1 “Deploying a Simple Web Service” Mark Holliday Department of Mathematics and Computer Science Western Carolina University.
Lab 1 Instructor: Jolanta Soltis.
AssignPrelim1.1 © 2010 B. Wilkinson/Clayton Ferner. Modification date: Dec 20, 2009 Course Preliminaries.
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.
SERVLETS.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
Creating File Access Services Presented by Ashraf Memon Presented by Ashraf Memon.
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011.
Web Services (tying it all together) and Introduction to Grid Services Concepts These slides are adapted from course material developed by Barry Wilkinson,
Java and Project Delivery E&CE 250 Winter 2002
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
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.
Working With Apache Axis. Axis Information See guide.html for the basic user guide.
ITCS 4/5145 Cluster Computing, UNC-Charlotte, B. Wilkinson, 2006outline.1 ITCS 4145/5145 Parallel Programming (Cluster Computing) Fall 2006 Barry Wilkinson.
1 Creating File Access Services Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta CMPUT 391 Database Management Systems Web based Applications,
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 3, 2011outline.1 ITCS 6010/8010 Topics in Computer Science: GPU Programming for High Performance.
Java Spring PImage Let’s look at the PImage class in ProcessingPImage –What are the fields (i.e., variables)? –What methods are available? –What.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
POS 406 Java Technology And Beginning Java Code
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
A Geographically-Distributed, Assignment-Structured Undergraduate Grid Computing Course Mark A. Holliday, Barry Wilkinson, Jeffrey House, Samir Daoud,
ITCS 4/5010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Dec 28, 2012assignprelim.1 Assignment Preliminaries ITCS 4010/5010 Spring 2013.
Chapter 2: Java Fundamentals
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 Creating Web Services from a existing tool Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
Lab: 1. Deployment with AXIS 2. Observe SOAP messages Dr. Yuhong YAN NRC-IIT.
1 Creating Web Services Presented by Ashraf Memon Hands-on Ghulam Memon, Longjiang Ding.
CIS 234: Java Methods Dr. Ralph D. Westfall April, 2010.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
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:
Creating a Java Application and Applet
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
Creating Web Services Presented by Ashraf Memon Presented by Ashraf Memon.
Submission of projects in Oncourse Computer Science and Computer Information IUPUI.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Setting Up First, install tomcat and axis as described elsewhere. Then copy Tomcat into a second folder. –I’ve named mine jakarta- tomcat-server and jakarta-
Tomcat Celsina Bignoli
Writing simple Java Web Services using Eclipse
Assignment Preliminaries
Assignment Preliminaries
Presentation transcript:

Barry Wilkinson and Mark Holliday, 2004A1.1 Assignments Preliminaries Several computers are configured at WCU for the assignments. Here, terra.cs.wcu.edu will be used. For technical reasons, students using the WCU computers will first ssh into sol.cs.wcu.edu, and from there ssh into terra.cs.wcu.edu.

Barry Wilkinson and Mark Holliday, 2004A1.2 Assignment 1 “Deploying a Simple Web Service” Acknowledgement This assignment is derived from: “Classroom Exercises for Grid Services” by A. Apon, J. Mache, Y. Yara, and K. Landrus, Proc. 5th Int. Conference on Linux Clusters: The HPC Revolution, May 2004.

Barry Wilkinson and Mark Holliday, 2004A1.3 Task To build, deploy and test a simple web service.

Barry Wilkinson and Mark Holliday, 2004A1.4 Tools This assignment uses: –Java 2 platform standard edition –Apache Jakarta Tomcat Java servlet container –Apache Axis tools

Barry Wilkinson and Mark Holliday, 2004A1.5 Steps Write the Java code to implement the web service. Use Axis to generate all needed Java source files. Compile the source files just generated. Create client source and compile. Execute client to access service. Extend the functionality of the service.

Barry Wilkinson and Mark Holliday, 2004A1.6 Client Web service Apache hosting environment

Barry Wilkinson and Mark Holliday, 2004A1.7 Axis Java Web Service Facility Place a jws (rather than java) file in your web application directory structure and Axis will automatically find it, compile it, and deploy the methods.

Barry Wilkinson and Mark Holliday, 2004A1.8 Step 1 – Implement Service Using Java write the code for the class that provides the web service. This code is: public class MyMath { public int squared(int x) { return x * x; } Save that code as a.jws (Java Web Service) file, Math.jws.

Barry Wilkinson and Mark Holliday, 2004A1.9 Step 1 (continued) Copy the.jws file to the axis directory: cp MyMath.jws \ $CATALINA_HOME/webapps/axis/yourusername Copying is needed so that the axis tools will be able to find the.jws file

Barry Wilkinson and Mark Holliday, 2004A1.10 Step 2 Generate WSDL files Use the Axis tools to create four Java source files from MyMath.jws using the command: java -classpath $AXISCLASSPATH \ org.apache.axis.wsdl.WSDL2Java \

Barry Wilkinson and Mark Holliday, 2004A1.11 Step 2 (continued) Axis finds MyMath.jws file and creates Two source files each holding a Java interface, – MyMath.java and – MyMathService.java Two source files each holding a Java class, – MyMathServiceLocator.java – MyMathSoapBindingStub.java These files are put in a new package in localhost/axis/yourusername/MyMath_jws/ which is in /home/yourusername/WebServices/

Barry Wilkinson and Mark Holliday, 2004A1.12 Step 3 Compile new source files Compile source files generated by step 2 with: javac -classpath $AXISCLASSPATH \ localhost/axis/yourusername/MyMath_jws/*.java

Barry Wilkinson and Mark Holliday, 2004A1.13 Step 4: Write Client Source import localhost.axis.yourusername.MyMath_jws.MyMathServiceLocator; import localhost.axis.yourusername.MyMath_jws.MyMathService; import localhost.axis.yourusername.MyMath_jws.MyMath; public class MyMathClient { public static void main(String args[]) throws Exception { MyMathService service = new MyMathServiceLocator(); MyMath myMath = service.getMyMath(); int x = (new Integer(args[0])).intValue(); System.out.println("The square of " + args[0] + " is " + myMath.squared(x)); }

Barry Wilkinson and Mark Holliday, 2004A1.14 Step 5 Compile Client code Compile the client source file with: javac -classpath $AXISCLASSPATH:. MyMathClient.java

Barry Wilkinson and Mark Holliday, 2004A1.15 Step 6 Execute Web Service program java -classpath $AXISCLASSPATH MyMathClient 4 The square of 4 is 16

Barry Wilkinson and Mark Holliday, 2004A1.16 Step 7 Extend the Web Service Add functionality to the MyMath web service: Add a method that returns whether a number is even. Modify MyMath.jws file and repeat all previous steps to test the extended web service.

Barry Wilkinson and Mark Holliday, 2004A1.17 Step 8 (not in handout) Extra Credit For extra credit, create a second web service and demonstrate a client using two web services.

Barry Wilkinson and Mark Holliday, 2004A1.18 Submission of Assignment 1 Produce a 2-4 page Word document. Includes how you modified the service (code and explanation). Show that you successfully followed the instructions and performs all tasks by taking screen shots and include these screen shots in the document. Number of screen shots is up to you but it should demonstrate your programs worked. –To include screen shots from Windows XP, select window, press Alt-Printscreen, and paste to file.

Barry Wilkinson and Mark Holliday, 2004A1.19 Submission continued Submit your document to me electronically using the WCU Department of Mathematics and Computer Science electronic submission system called Hermes. PLEASE DO NOT SUBMIT BY TO ME!!

Barry Wilkinson and Mark Holliday, 2004A1.20 Hermes Submission System Go to: Select professor (Barry Wilkinson), then Select course (CS493 Fall 2004 Grid computing), then Select your name, then Select your document and select upload. A message is displayed as a receipt. Also sent to you.

Barry Wilkinson and Mark Holliday, 2004A1.21 Due Date 11:59 pm Thursday September 9th, 2004 unless we have system problems.