OpenSG Service Definition, Feb 2010 RESTful Service Discussions Shawn Hu.

Slides:



Advertisements
Similar presentations
Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
Advertisements

On and use=document|rpc, style=literal|encoded A personal opinion Sanjiva Weerawarana IBM Research September 9-11, 2002.
Proposal for Shortcut Syntax for Simple Operations Sanjiva Weerawarana September 21, 2003.
Eliminating Eliminating Sanjiva Weerawarana WSDL WG F2F – Raleigh, NC July 30, 2003.
R085: Describing Messages That Refer to Other Web Services W3C WSD WG F2F Rennes, Arthur Ryman.
Report from the ATF ATF team. 2 What is an Attribute? Think of it this way: –Attributes define a pattern or short hand for messages that are supported.
EGEE is a project funded by the European Union under contract IST WSDL Web Service Description Language
REST in Peace with Web services Eran Chinthaka Samisa Abeysinghe WSO2 Inc.
Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
Service Component Architecture Assembly Model Specification Version 1.1 Assembly-33 – Long-Running Request-Response Operations.
CGI & HTML forms CGI Common Gateway Interface  A web server is only a pipe between user-agents  and content – it does not generate content.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
Mark Ortiz Enterprise Architecture & Standards. CIM Data Requirements Overview Based on SEP 2.0 TRD Included previous SEP data requirements, NASBE, and.
WSDL 2.0 Marlon Pierce Community Grids Lab Indiana University.
SOAP & Security IEEE Computer Society Utah Chapter Hilarie Orman - Purple Streak Development Tolga Acar - Novell, Inc. October 24, 2002.
The Semantic Web – WEEK 4: RDF
Apache Axis2 SOAP Primer. Agenda What is SOAP? Characteristics SOAP message structure Header blocks Fault notification Exercises.
CIS 375—Web App Dev II SOAP.
XML in the real world (2) SOAP. What is SOAP? ► SOAP stands for Simple Object Access Protocol ► SOAP is a communication protocol ► SOAP is for communication.
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
SOAP SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol * SOAP is a communication protocol * SOAP is for communication.
Topics Acronyms in Action SOAP 6 November 2008 CIS 340.
Web Services Seminar: Service Description Languages
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
An Introduction to XML Based on the W3C XML Recommendations.
SOAP Quang Vinh Pham Simon De Baets Université Libre de Bruxelles1.
EGEE is a project funded by the European Union under contract IST WSDL Web Service Description Language 3 – 4 June
WSDL Homework - Plenio. WSDL - Structure Source: w3schools.com.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
Peoplesoft: Building and Consuming Web Services
WSDL Web Services Description Language Neet Wadhwani University of Colorado 3 rd October, 2001.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
SOAP, WSDL, UDDI. Service Broker Basic SOAP Message Exchange Service Consumer Service Provider http transport SOAP message WSDL describing service SOAP.
Service-Oriented Programming
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
Web Services Description Language CS409 Application Services Even Semester 2007.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
Open Data Protocol * Han Wang 11/30/2012 *
XRules An XML Business Rules Language Introduction Copyright © Waleed Abdulla All rights reserved. August 2004.
1 WSDL Tutorial Heather Kreger (borrowed from Peter Brittenham) Web Services Architect IBM Emerging Technologies.
[ Part III of The XML seminar ] Presenter: Xiaogeng Zhao A Introduction of XQL.
Tutorial 13 Validating Documents with Schemas
1 Web Services Web and Database Management System.
SG Systems - Service Definition Team Chair: Gerald Gray, Guiding Principle Consulting Co-Chair: Shawn Hu, Xtensible Solutions.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Transport Protocols  SOAP is used to send a message over any kind of transport protocol. Some of the protocols are, 1.HTTP 2.TCP/IP 3.UDP 4.SMTP.
XML Schema Definition (XSD). Definition of a Schema It is a model for describing the structure and content of data The XML Schema was developed as a content.
RESTful Web Services What is RESTful?
Web services. Introduction to WSDL. February 23, 2006.
AMI -ENT Service Definition Team Step-by-Step Modeling and Artifacts Generation Process.
Agenda 1.WSDL & XML Schema Astronomicko-geofyzikálne observatórium, Modra An Order.
1 WSDL Web Services Description Language. 2 Goals of WSDL Describes the formats and protocols of a Web Service in a standard way –The operations the service.
Lecture 23 XQuery 1.0 and XPath 2.0 Data Model. 2 Example 31.7 – User-Defined Function Function to return staff at a given branch. DEFINE FUNCTION staffAtBranch($bNo)
© 2004 IBM Corporation WS-ResourceFramework Service Groups Tom Maguire.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
Web Service Definition Language. Web Services: WSDL2 Web Service Definition Language ( WSDL ) What is a web service? [ F. Leymann 2003 ] A piece of code.
1 G52IWS: Web Services Description Language (WSDL) Chris Greenhalgh
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
SOAP, Web Service, WSDL Week 14 Web site:
XML: Extensible Markup Language
WEB SERVICES From Chapter 19 of Distributed Systems Concepts and Design,4th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published by Addison.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Dimuthu Leelarathne Software Engineer WSO2
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
Issue 47: Feature Changes in WSDL1.2 & Potential Impact on BPEL4WS
WEB SERVICES From Chapter 19, Distributed Systems
Techniques to Invoke Web Services from SAS
Presentation transcript:

OpenSG Service Definition, Feb 2010 RESTful Service Discussions Shawn Hu

OpenSG Service Definition, Feb 2010 Design Artifact Considerations XML schemas for message payload definition WSDL 2.0 for service definition in REST style –Operation style & pattern style=" pattern=" –Binding type: type=" –Operation method (http verbs) whttp:method="GET" (or others)

OpenSG Service Definition, Feb 2010 Consumption XML Schema Consumption.xsd

OpenSG Service Definition, Feb 2010 RESTful Service Definition Input –Using HTTP GET or POST following URL naming convention Output –Using XSD for return

OpenSG Service Definition, Feb 2010 Xpath for URI Design

OpenSG Service Definition, Feb 2010 URI = + + – - A base address where a web service is located such as (not real address but for example only) – - A path to access resource component. This path follows XSD Xpath convention such as /Consumption/MeterReading/IntervalBlocks/IntervalReadings/ to access interval readings as consumption – - An optional field for arguments such as ?timeStamp= T00:00:00Z –Example URI for a resource: ntervalBlocks/IntervalReadings?timeStamp= T00:00:00Z URI Naming Convention

OpenSG Service Definition, Feb 2010 Service Table

OpenSG Service Definition, Feb 2010 Entry URI: ks/IntervalReadings/value?timeStamp= T09:30:47Z Note: may need to truncated to only list such as T09:30:47Z Return XML: T09:30:47Z GET URI & Return XML

OpenSG Service Definition, Feb 2010 Entry URI: ks/IntervalReadings/value Resulting XML to post: T09:30:47Z POST Entry URI & XML

OpenSG Service Definition, Feb 2010 XML can be compressed or truncated as below if space is limited using the POST XML as an example: T09:30:47Z Compressed/Truncated XML

OpenSG Service Definition, Feb 2010 WSDL Design –Operation Style & Pattern style= iri(W3C WSDL2.0) –The content model of this element is defined using a complex type that contains a sequence from XML Schema. –The sequence MUST only contain elements.† It MUST NOT contain other structures such as xs:choice. There are no occurrence constraints on the sequence.† –The sequence MUST contain only local element children.† Note these child elements can contain the nillable attribute.† –The localPart of the element's QName MUST be the same as the Interface Operation component's {name}.† Interface Operationname† –The complex type that defines the body of the element or its children elements MUST NOT contain any attributes.†† –The children elements of the sequence MUST derive from xs:simpleType, and MUST NOT be of the type or derive from xs:QName, xs:NOTATION, xs:hexBinary or xs:base64Binary.†† Note: IRIs – Internationalized Resource Identifiers (IETF)

OpenSG Service Definition, Feb 2010 WSDL Design –Operation Style & Pattern pattern= in-out (W3C WSDL2.0) –The in-out message exchange pattern consists of exactly two messages, in order, as follows:†† –A message: »indicated by a Interface Message Reference component whose {message label} is "In" and {direction} is "in"Interface Message Referencemessage labeldirection »received from some node N –A message: »indicated by a Interface Message Reference component whose {message label} is "Out" and {direction} is "out"Interface Message Referencemessage labeldirection »sent to node N –The in-out message exchange pattern uses the rule Fault Replaces Message propagation rule.†2.2.1 Fault Replaces Message propagation rule† –An operation using this message exchange pattern has a {message exchange pattern} property with the value " exchange pattern

OpenSG Service Definition, Feb 2010 Service Output –In-Out Pattern for a GET return (message)

OpenSG Service Definition, Feb 2010 Service Output –In-Out Pattern for a POST return (ack)

OpenSG Service Definition, Feb 2010 Summary –Definition using WSDL 2.0 (IRI style & In- Out pattern) –URL naming pattern (to follow XSD XPath) –SLA on services such as limited return data size –Return data in XSD format (CIM based) –GET for non state change and POST for state change

OpenSG Service Definition, Feb 2010 Questions & Comments