IEEE CCGrid May 22, 20021 The gSOAP Toolkit Robert van Engelen Kyle Gallivan Florida State University.

Slides:



Advertisements
Similar presentations
Message Passing Vs Distributed Objects
Advertisements

Three types of remote process invocation
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
High-Performance Predictive XML Parsing with gSOAP Robert van Engelen Florida State University.
SOAP.
1 Understanding Web Services Presented By: Woodas Lai.
RPC Robert Grimm New York University Remote Procedure Calls.
RPC Remote Procedure Call Dave Hollinger Rensselaer Polytechnic Institute Troy, NY.
GridRPC Sources / Credits: IRISA/IFSIC IRISA/INRIA Thierry Priol et. al papers.
CS6223: Distributed Systems Remote Procedure Call (RPC)
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Distributed Systems Lecture #3: Remote Communication.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
Introduction to Remote Method Invocation (RMI)
Communication in Distributed Systems –Part 2
Web Service Implementation Maitreya, Kishore, Jeff.
Data Formats CMSC 491 Hadoop-Based Distributed Computing Spring 2015 Adam Shook.
Avro Apache Course: Distributed class Student ID: AM Name: Azzaya Galbazar
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Grail Interface and Code Ramón Creager. What is Grail? Like the Roman god Janus, Grail provides two faces to two different worlds: From the outside, a.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
Communication Tran, Van Hoai Department of Systems & Networking Faculty of Computer Science & Engineering HCMC University of Technology.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
Comparison of Web Services, RMI, CORBA, DCOM Usha, Lecturer MCA Department of Computer Science and Engineering.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
RELATIONAL FAULT TOLERANT INTERFACE TO HETEROGENEOUS DISTRIBUTED DATABASES Prof. Osama Abulnaja Afraa Khalifah
Web Services for Satellite Emulation Development Kathy J. LiszkaAllen P. Holtz The University of AkronNASA Glenn Research Center.
Grid Computing Research Lab SUNY Binghamton 1 XCAT-C++: A High Performance Distributed CCA Framework Madhu Govindaraju.
1 Cisco Unified Application Environment Developers Conference 2008© 2008 Cisco Systems, Inc. All rights reserved.Cisco Public Introduction to Etch Scott.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
Distributed Programming CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
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 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Introduction to Spring Remoting Simplifying.
CSE 451: Operating Systems Winter 2015 Module 22 Remote Procedure Call (RPC) Mark Zbikowski Allen Center 476 © 2013 Gribble, Lazowska,
Page 1 Remote Procedure Calls Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation.
XML and Web Services (II/2546)
1 Engineering Web Based Legacy Systems By Kanchana Eramudugoda Distributed Computing – CS843.
Research Seminar Robert van Engelen Computer Science & CSIT Florida State University.
Eric Tryon Brian Clark Christopher McKeowen. System Architecture The architecture can be broken down to three different basic layers Stub/skeleton layer.
WSDL : Web Service Definition Language Dr. Yuhong Yan NRC-IIT-Fredericton Internet logic.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
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.
GridRPC Sources / Credits: IRISA/IFSIC IRISA/INRIA Thierry Priol et. al papers.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
SOAP RMI Aleksander Slominski, Madhusudhan Govindaraju, Randall Bramley, Dennis Gannon Indiana University Extreme! Lab A New-Old Programming Model for.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
Apache Avro CMSC 491 Hadoop-Based Distributed Computing Spring 2016 Adam Shook.
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.
Liang, Introduction to Java Programming, Fifth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 29 Remote Method.
Java Distributed Computing
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Java Distributed Computing
CSE 451: Operating Systems Winter 2006 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Lecture 4: RPC Remote Procedure Call Coulouris et al: Chapter 5
CSE 451: Operating Systems Autumn 2003 Lecture 16 RPC
CSE 451: Operating Systems Winter 2007 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Lecture 4: RPC Remote Procedure Call CDK: Chapter 5
CSE 451: Operating Systems Winter 2004 Module 19 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Creating a Distributed System with Remote Procedure Calls and Web Services Ch.5 B.Ramamurthy 2/17/2019 B.Ramamurthy.
CSE 451: Operating Systems Spring 2012 Module 22 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Autumn 2009 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Autumn 2010 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Winter 2003 Lecture 16 RPC
CSE 451: Operating Systems Messaging and Remote Procedure Call (RPC)
Presentation transcript:

IEEE CCGrid May 22, The gSOAP Toolkit Robert van Engelen Kyle Gallivan Florida State University

IEEE CCGrid May 22, Overview Web Services gSOAP design and implementation Results Conclusions

IEEE CCGrid May 22, Web Services: the Big Picture SOAP RPC SOAP DSIG WSDL UDDI

IEEE CCGrid May 22, SOAP Light-weight protocol based on XML as the marshalling format for data in request and response messages  Vendor- and platform-neutral  Language-neutral  Object-model-neutral  Transport-neutral XML allows data transformation (XSLT) XML enables long-term data persistence

IEEE CCGrid May 22, WSDL Web Service registers with UDDI Web Service publishes WSDL Clients can develop proxies from the WSDL for SOAP RPC and messaging

IEEE CCGrid May 22, gSOAP Open source (C, C++, and Java) >2000 registered users Uses a source-to-source stub and skeleton compiler to automate the integration of SOAP RPC in applications  Automates the deployment of (legacy) C/C++ applications as Web Services  Automates the development of clients Suitable for high-performance computing

IEEE CCGrid May 22, gSOAP Goals Application-centric  Minimize application code adaptation  Support (de)marshalling of application’s native data structures in SOAP/XML  Preserve the logical structure of data Minimize data migration overhead and formatting errors  Avoid (hand-written) wrappers  Generate fast (de)marshalling routines and streaming XML parsers  Efficient run-time remote object allocation

IEEE CCGrid May 22, The gSOAP Stub and Skeleton Compiler Generates source code stubs and skeletons for SOAP RPC Generates XML (de)marshalling routines for native and user- defined C/C++ data types The gSOAP runtime provides low- level HTTP, TCP, SOAP/XML handling and memory management capabilities HTTP/TCP/SOAP and XML API Stub/Skeleton and Marshalling Code User application Runtime Library gSOAP-generated

IEEE CCGrid May 22, Development Service Application gSOAP-generated Skeleton Routines gSOAP-generated Request Dispatcher Specification of Data Types and Remote Procedures in C/C++ Header File gSOAP Compiler Server WSDLIDL

IEEE CCGrid May 22, Development Specification of Data Types and Remote Procedures in C/C++ Header File gSOAP-generated Stub Routines Client Application Client WSDLIDL gSOAP

IEEE CCGrid May 22, Example Service description (WSDL): Namespace: urn:xmethods-delayed-quotes Method name: getQuote Input parameter: symbol of type xsd:string Output parameter: result of type xsd:float Generated remote procedure declaration for stub generation with gSOAP: ns__getQuote(char *symbol, float &result); Client code: main() { float q; if (soap_call_ns__getQuote(“URL”, “”, “AOL”, q) == 0) cout << “AOL: “ << q << endl; }

IEEE CCGrid May 22, Encoding C/C++ Data Types in XML Primitive C/C++ types, enum, struct/class with single inheritance, pointers, arrays, special types (e.g. base64) Not supported: unions, void*, templates, multiple inheritance

IEEE CCGrid May 22, Serialization gSOAP generates serialization routines for application types Serialization code traverses object graph at run time to detect co- referenced objects and cycles Serialization code outputs object graph in XML according to SOAP encoding rules

IEEE CCGrid May 22, Serialization Example struct BG { int val; struct BG *left; struct BG *right; };

IEEE CCGrid May 22, Deserialization gSOAP generates deserialization code, including schema-driven XML pull parser  Auto-validating  Streaming  Fast: match inbound XML elements to “expected” elements in the schema Keep table with “forward” XML refs  Back-patching method: resolve forward refs later by copying pointers and/or referenced data

IEEE CCGrid May 22, Deserialization Example

IEEE CCGrid May 22, Results 1. Interoperability testing 2. Legacy code integration 3. Scalability and performance

IEEE CCGrid May 22, Interoperability Testing WhiteMesa.org “interop lab” Suite of test cases designed for real-time interoperability testing over the Web Apache Axis,.NET, Delphi,…

IEEE CCGrid May 22, Legacy Code Example: Linear System Solver Application code from Numerical Recipes in C Web Service:  LU Decomposition  Backsubstitution  Solve  Multi-solve  Matrix inversion

IEEE CCGrid May 22, Linear System Solver Original Numerical Recipes in C routine: ludcmp(double **a, int n, int *indx, double *d) { … sum = a[i][j]; … } Modified routine (array size n stored in class instances): ludcmp(matrix *a, ivector *indx, double *d) { … sum = a[i][j]; … } C++ class declarations for the generation of (de)serializers with gSOAP: class vector { double *__ptr; // pointer to array of double int __size; // run-time array size double& operator[](int i); }; class matrix { vector *__ptr; // pointer to array of vectors int __size; // run-time array size double& operator[](int i); };

IEEE CCGrid May 22, Linear System Solver Remote procedure declaration for stub and skeleton generation with gSOAP: ns__ludcmp ( matrix *a, // input matrix struct ns__ludcmpResponse { matrix *a; // output matrix ivector *i; // output index reordering vector double d; // output parameter for determinant } *result ) Remote procedure SOAP server interface routine called by skeleton: ns__ludcmp(matrix *a, struct ns__ludcmpResponse &result) { result.a = a; // input to output matrix if (ludcmp(result.a, result.i, &result.d) != 0) return SOAP_FAULT; return SOAP_OK; }

IEEE CCGrid May 22, Linear System Solver Linear system solver server code (CGI-based): main() { soap_serve(); // process request (skeletons) } Example client code: main() { struct ns__ludcmpResponse result; matrix a; … if (soap_call_ns__ludcmp(“URL”, “”, &a, &result) != 0) soap_print_fault(stderr); … }

IEEE CCGrid May 22, Scalability and Performance Scalability and overhead of communication vs. computation  LU-based matrix inversion Performance (send 32bit int matrix)  Full SOAP XML-encoded matrix  SOAP Base64-encoded matrix  CGI-based SOAP Web Service  Stand-alone SOAP Web Service  Java RMI

IEEE CCGrid May 22, Matrix Inversion Stand-alone linear system solver service (TCP sockets) Full double fp. matrix representation in SOAP XML Total time of client request and server response (10BaseT, Dual PIII 550MHz, Red Hat Linux)

IEEE CCGrid May 22, CGI-Based Web Service Total time of client request and server response (10BaseT, Dual PIII 550MHz, Red Hat Linux) SOAP XML-encoded 32bit int matrix SOAP Base64- encoded 32bit int matrix

IEEE CCGrid May 22, Stand-Alone Service and Java RMI Total time of client request and server response (10BaseT, Dual PIII 550MHz, Red Hat Linux) SOAP XML-encoded 32bit int matrix SOAP Base64- encoded 32bit int matrix Java RMI (1.2.2)

IEEE CCGrid May 22, Conclusions Application centric SOAP/XML Web Service interoperable Legacy numerical code integration Scalability and performance Future work:  IDL  DIME  Performance enhancements  Peer-to-peer networks