Business and Systems Aligned. Business Empowered. TM Implementing SQI via SOAP Web- Services Simple Query Interface - Developer’s Meeting Thursday 29 th.

Slides:



Advertisements
Similar presentations
WEB SERVICES. FIRST AND FOREMOST - LINKS Tomcat AXIS2 -
Advertisements

Web Services Web Services are the basic fundamental building blocks of invoking features that can be accessed by an application program. The accessibility.
A1.1 Assignment 1 “Deploying a Simple Web Service”
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
J2ME RMI 1 Java 2 Platform, Micro Edition Implementation of J2ME RMI Application Farooq Sheikh.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
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.
3b.1 Web Services Part II Implementation details ITCS 4010 Grid Computing, 2005, UNC-Charlotte, B. Wilkinson, slides 3b version 0.1.
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.
JAVA PROGRAMING LANGUAGE. Content of Java 2 SDK  Development Tools (In the bin subdirectory.) Tools and utilities that will help you develop, execute,
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
Satzinger, Jackson, and Burd Object-Orieneted Analysis & Design
And so on CGI programming Web Services Java Programs for the Web.
Tomcat Configuration A Very, Very, Very Brief Overview.
M.Sc. Course, Dept. of Informatics and Telecommunications, University of Athens S.Hadjiefthymiades “Web Application Servers” Basics on WAS WAS are necessary.
Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are.
Intro to Apache Axis Siva Jagadeesan
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 (tying it all together) and Introduction to Grid Services Concepts These slides are adapted from course material developed by Barry Wilkinson,
1 Lecture 21 George Koutsogiannakis Summer 2011 CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES.
1 Lecture 22 George Koutsogiannakis Summer 2011 CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES.
Digital Library Syllabus Uploader Will Cameron CSC 8530 October 19, 2006 Project Presentation 2.
CS 157B: Database Management Systems II February 27 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Presented by Robert Zaremba.  Remote messages must be sent to a message queue so that components are decoupled  Both sides of a communication must be.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
Java Servlets CS-422. Application Mapping Your servlet application will be mapped to a directory structure: –“myapp” maps to some directory C:/docs/apps/myapp.
COP 4991 Component Based Software Development Lecture #4 Java Web Services Onyeka Ezenwoye.
Developing Axis based Web Services using Eclipse 3.3 Saurabh Mittal Feb 28, 2008.
Working With Apache Axis. Axis Information See guide.html for the basic user guide.
Presentation: Advanced AXIS: Deployment Descriptors and Advanced Types.
CSCI 6962: Server-side Design and Programming Web Services.
April 30, 2007 openSUSE.org Build Service a short introduction Moiz Kohari VP Engineering.
Designing and Developing WS B. Ramamurthy. Plans We will examine the resources available for development of JAX-WS based web services. We need an IDE,
T Network Application Frameworks and XML Assignments.
1 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1 Building Portlets with ColdFusion Pete Freitag Foundeo, Inc.
Java Servlets & Java Server Pages Lecture July 2013.
Chapter 6 Server-side Programming: Java Servlets
Spring/2002 Distributed Software Engineering C:\unocourses\4350\slides\DefiningThreads 1 RMI.
SOAP Web Services Tim Carver MRC HGMP-RC Hinxton Cambridge, UK.
XML and Web Services (II/2546)
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
16 October 2003Registry Interface CallsIVOA Interoperability, Strasbourg IVOA Interoperability Elizabeth Auden & Registry Workgroup 16 – 17 October 2003.
1 Creating Web Services Presented by Ashraf Memon Hands-on Ghulam Memon, Longjiang Ding.
Deploying a service. Talk titledate2 Talk titledate3 Section SOAP Deployment.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
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.
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.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
HTTP protocol Java Servlets. HTTP protocol Web system communicates with end-user via HTTP protocol HTTP protocol methods: GET, POST, HEAD, PUT, OPTIONS,
Creating Web Services Presented by Ashraf Memon Presented by Ashraf Memon.
1 Lecture 15 Remote Method Invocation Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of Technology.
1 Web services for DIP LDIWG meeting C.H.Sicard 7 Jan 2003.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
The Java API for XML-Based Web Services. A Web Service example in Java SOAP-awareServlet (e.g. Apache Axis2) SOAP-awareServlet Any class processing the.
Presentation: Advanced AXIS: Deployment Descriptors and Advanced Types.
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Chapter 5 Remote Procedure Call
Java Servlets By: Tejashri Udavant..
Writing simple Java Web Services using Eclipse
J2EE Application Development
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
WebServices Using JAX-RPC
Introduction to Web Services
Distributed System using Web Services
Chapter 42 Web Services.
Plug-In Architecture Pattern
Presentation transcript:

Business and Systems Aligned. Business Empowered. TM Implementing SQI via SOAP Web- Services Simple Query Interface - Developer’s Meeting Thursday 29 th of April – Friday 30 th of April FHG-FIT in Schloss Birlinghoven, Bonn, Germany Stefan Brantner, BearingPoint Graz

2 © BearingPoint GmbH, March 2004 Overview Purpose of this presentation To present an API that facilitates the development of SQI services as well as the invocation of remote services via SOAP by using Apache AXIS Presentation outline Structure of ZIP and Java Archive (JAR) file for SQI development How to implement and deploy an SQI service How to invoke a remote SQI service Tool classes

3 © BearingPoint GmbH, March 2004 sqiservice.zip Can be downloaded from LR-Interop Yahoo Group: ELENA Interoperability web-site: Contains … All relevant WSDL files for building an SQI web-service The file sqiservice.jar which holds the necessary Java wrapper classes for creating and invoking a web-service via Apache Axis The needed WSDD deployment descriptors for Apache Axis A PDF file explaining how to use the JAR file Java-Doc files that explain the SQI API in detail

4 © BearingPoint GmbH, March 2004 sqiservice.jar Two types of services Services that implement classical client-server type of interfaces (client calls server), i.e. Session Management Services that can not be classified as client-server because the communication is two-way – both sides of the communication need to be server and client for different types of methods, i.e. Query — In this case interface definitions are split into two separate interface classes, that have the same class-name but reside in two different sub-packages — org/elena/service/query/source/Query.java — org/elena/services/query/target/Query.java

5 © BearingPoint GmbH, March 2004 sqiservice.jar +- org +- elena +- services | +- sessionmgmt | | +- SessionManagement.java | | +- SessionManagementService.java | | +- SessionManagementServiceLocator.java | | +- SessionManagementSoapBindingImpl.java | | +- SessionManagementSoapBindingStub.java | | | +- query | | +- source | | | +- Query.java | | | +- QueryService.java | | | +- QueryServiceLocator.java | | | +- QuerySoapBindingImpl.java | | | +- QuerySoapBindingStub.java | | +- target | | | +- Query.java | | | +- QueryService.java | | | +- QueryServiceLocator.java | | | +- QuerySoapBindingImpl.java | | | +- QuerySoapBindingStub.java | +- tools +- sessionmgmt +- ComSession.java +- ComSessionImpl.java +- ComSessionFactory.java +- ComSessionFactoryImpl.java +- ComSessionManager.java

6 © BearingPoint GmbH, March 2004 Service implementation / invocation Needed JARs: axis.jar axis-ant.jar commons-discovery.jar commons-logging.jar jaxrpc.jar saaj.jar wsdl4j.jar These are part of Axis 1.1 distribution which can be downloaded from

7 © BearingPoint GmbH, March 2004 Service implementation Empty implementation classes can be used as starting point for service implementation See directory org/elena/service/* in sqiservice.zip Example: Implementation of the target query service Service class must implement the interface org.elena.services.query.target.Query.java Start from empty implementation classes and adapt package name

8 © BearingPoint GmbH, March 2004 Service deployment with TomCat For web-applications: Add dependent JAR files to the WEB-INF/lib directory Add Axis servlet definitions to web.xml file Deploy the web-service to Axis via a WSDD (Web service deployment descriptor) file Take appropriate WSDD file from the sqiservice.zip as starting point Adapt class name to your chosen package Run the Axis admin client to deploy the service java org.apache.axis.client.AdminClient -lhttp://localhost:8080/[WebAppContext]/services/AdminService deploy.wsdd Detailed instructions:

9 © BearingPoint GmbH, March 2004 Service invocation All classes for service invocation available in sqiservice.jar Example Source wants to query a target network node Use wrapper classes provided in package org.elena.services.query.target Imports import org.elena.service.sqi.target.*; import org.elena.service.sessionmgmt.*; import org.elena.tools.sessionmgmt.MD5;

10 © BearingPoint GmbH, March 2004 Service invocation Example (contd.) import java.net.URL; import org.elena.service.sqi.target.*; import org.elena.service.sessionmgmt.*; import org.elena.tools.sessionmgmt.MD5; public class QueryTester { public static void main(String[] args) { String targetServiceBaseURL = " SessionManagementService service1 = new SessionManagementServiceLocator(); SessionManagement sessionMgmtPort = service1.getSessionManagement( new URL(targetServiceBaseURL + "SessionManagement")); String sessionID = sessionMgmtPort.createSession("username", MD5.getMD5FromString("password")); QueryService service = new QueryServiceLocator(); Query queryPort = service.getQuery(new URL(targetServiceBaseURL + "Query")); String queryResult = queryPort.synchronousQuery(sessionID, "Hello Query")); System.out.println("Result = " + queryResult); }

11 © BearingPoint GmbH, March 2004 Helper classes for service implementation Session Management (package org.elena.tools.sessionmgmt ) ComSessionManager.java — A abstract base class for creating and destroying user-specific and anonymous sessions ComSession.java, ComSessionFactory.java — Two interface classes for implementing and creating concrete instances of session objects (abstract factory pattern) ComSessionImpl.java, ComSessionFactoryImpl.java — A default implementation of the ComSession interface. A default session object factory implementing the ComSessionFactory interface. See JavaDoc for more details. Queries (package org.elena.tools.sqi ) Vocabulary.java — Some constants for query languages and result formats

12 © BearingPoint GmbH, March 2004 Authors This presentation was prepared by: Stefan Brantner BearingPoint GmbH Seering Unterpremstätten Phone: Fax: © Copyright BearingPoint GmbH, Graz, 2004 All rights reserved. The content of this document is protected by copyright. The modification, abridgement, expansion and endorsement of the document require the prior written consent from BearingPoint GmbH, Vienna. Every duplication is permitted for personal use only and subject to the condition that the duplication contains this copyright notation. Every publication or every translation requires the prior written consent by BearingPoint GmbH, Vienna. The commercial use or use for educational purpose by third parties requires the prior written consent by BearingPoint GmbH, Vienna as well.