OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

regrep message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Fw: [regrep] Additional telecon this week


 Just a reminder ...
 
----- Original Message -----
Sent: Tuesday, August 27, 2002 8:25 AM
Subject: [regrep] Additional telecon this week

Thank you Joe, for running the Registry TC telecon in my absence. 

I understand that the TC decided we needed an extra telecon this week.  I
have set up the telecon for the 29th from 1:30 PT to 3:30.  Here is the
proposed agenda and call in information (please note that the phone number
and passcode are for this call only.)

Call details:
US and Domestic: 206-655-0054
Passcode:  3154#

If you have difficulties, here is the phone number for the operator:
206-655-2254.

Agenda:

1. Minute taker
2. Approval of minutes from August 8th
3. Face-to-face meeting logistics
4. Event notification - any further discussion?
5. Content based query
6. REST
7. Voting on proposals - logistics
8. V3 Proposal slides - if time permits
9. Other issues
10. Next meeting

Attached are the most recent versions of the proposals we will be
discussing.  If I have attached the wrong version, please send the correct
one to the list prior to our meeting. 

Talk to you all Thursday!
Kathryn


 <<pl-REST-regrep3-0.7.html>>  <<RESTProposal.ppt>> 
<<ebXMLRegistryV3Overview.zip>>  <<contentBasedQueryProposal-v0.2.pdf>>


Kathryn Breininger
CENTRAL Project Manager
Emerging Technologies
Boeing Library Services

425-965-0182 phone
425-237-3491 fax
kathryn.r.breininger@boeing.com

Title: OASIS ebXML Registry REST Interface Proposal

OASIS ebXML Registry REST Interface Proposal

Proposal 0.7, 9 August 2002

Document identifier:

pl-REST-regrep3-0.7

Author:

Matthew MacKenzie, XML Global Technologies, Inc. <Matt@XMLGlobal.Com>

Contributors:

Farrukh Najmi, Sun Microsystems <Farrukh.Najmi@Sun.Com>
Nikola Stojanovic <Nikola.Stojanovic@acm.org>

Abstract:

This document proposes a new feature of the OASIS ebXML Registry targeted for version 3.0. REST, or REpresentational State Transfer, is an architectural style of exposing applications via the web or other URI centric transports. The key tenet of the style is the use of URIs, or in the case of http, URLs, to define the actions and parameters of an interfaces invocation. REST also tends to be biased toward the http GET action, as opposed to POST or PUT, mainly because POST/PUT based applications tend to hide all of the request information in the content which is POSTed, thereby devaluing the location specificity of the URI.

This document proposes a hybrid REST approach, with POST being used where GET is not practical. When the invocation parameters are too numerous or complicated, using POST is necessary, however, this is a hybrid approach because we try to still keep the URI somewhat meaningful even when performing a POST.

Status:

This note describes the initial proposal for the REST Interface work item for OASIS ebXML Registry V3.0. It is expected that the Federated Registries sub-team of the OASIS ebXML Registry TC will improve upon this initial proposal and then submit it for consideration by ebXML Registry TC at large.

If you are on the <regrep-cooperating@lists.oasis-open.org> list for committee members, send comments there. If you are not on that list, subscribe to the <regrep-cooperating@lists.oasis-open.org> list and send comments there. To subscribe, send an email message to <regrep-cooperating-request@lists.oasis-open.org> with the word "subscribe" as the body of the message.



1. Motivation

The following motivations drive this proposal:

  1. Provide a mechanism to be used in conjunction with the ObjectRef object which is a proposed addition to the registry information model, version 3.0, for retrieving or importing objects which are physically located in another registry or URL addressable location. This mechanism mustn’t hamper a registry’s ability to manage large numbers of ObjectRefs by being too "heavy" in processing or network demands.

  2. Enable distribution of registry content.

  3. Provide another integration route for developers who are integrating the use of ebXML Registry into their offerings.

  4. Incorporate the functionality described in an earlier proposal/best practice document for ebXML Registry v2, entitled "URL Interface to OASIS ebXML Registry".

2. External Dependencies

This proposal depends upon the following external artifacts:

  • HTTP 1.1. The REST interface must be implemented upon an implementation of HTTP 1.1.

3. REST Interface

This section defines the REST Interface to ebXML Registry 3.0+.

3.1. Use Cases

This section describes briefly some use cases which this proposal addresses.

3.1.1. Use Case: Inter-Registry Object References

A non-ebXML registry such as UDDI wishes to reference and access the repository items in the repository of an ebXML Registry. For example a bindingTemplate may reference a WSDL document that is stored in an ebXML Registry's repository.

3.1.2. Use Case: Hyperlinking to Registry Entries/Objects

The author of a web page wishes to include a hyperlink in that page which resolves to an object or entry in a ebXML Registry instance. For example, prose documentation for an XML Schema might link to the schema which is stored in an ebXML registry's repository.

3.1.3. Use Case: Lightweight Client

The developer of a hardware or software platform has a requirement which involves submitting or retrieving objects/entries to an ebXML Registry, but cannot afford the overhead of a full SOAP 1.1 or ebXML Messaging client.

3.2. What Is REST?

REST, which stands for Representational State Transfer, is an architectural style for distributed hypermedia systems. When you expose an interface to the world (or some subset thereof), you are essentially embedding method calls in the request URI. For example, if we were exposing a class named Catalog using REST, a client would send a http GET request to a URL that is formed something like the following:

	    http://www.mysite.com/restprocessor?interface=Catalog&method=listItems
        

The return value would be sent back to the client synchronously in a format that is appropriate for such a request, or perhaps there is a URL parameter that can be set to define the return format (XML, HTML or CSV perhaps?). REST is more of a concept than a technology, and better yet, REST is easily implemented using standard facilities found on a web server or development environment.

3.3. Definition of the REST Interface to ebXML Registry

The specification of the REST Interface for ebXML Registry is constrained to the specification of what URI parameters must be used to specify the interface, method and invocation parameters being used.

3.3.1. Minimum Exposed Interface

At the bare minimum, it is necessary to expose functionality via REST to retrieve Registry Objects with. This is required to support the Registry Federation feature of ebXML Registry 3.0.

The minumum interface that must be exposed is explained below:

NOTE:

Since a certain amount of interface mapping is required to expose all of the registry’s lifecycle management via REST, this document will describe how this should be done, although implementing a complete REST interface is not required by this proposal.

3.3.2. URI Parameters

This section defines URI parameters that are used by the REST Interface.

Table 1. URI Parameters

Parameter NameRequiredPurposeNotes
interfaceYESDeclares the interface or object to call methods on.Example: QueryManager
methodYESDeclares the method to be carried out on the given interface.Example: submitAdhocQueryRequest
param-<key>NODeclares named parameters to be passed into a method call.Example: param-id=888-999-8877h
var-<key>NODeclares variables.Example: var-maxeffort=2m

4. QueryManager REST Interface

The REST Interface to QueryManager consists of the interface name "QueryManager", and the one method defined in that interface, submitAdhocQueryRequest.

There are two ways to access the QueryManager via the REST interface: http GET based, and http POST based. The GET based method represents the minimum implementation of this proposal.

4.1. HTTP GET Based Access to QueryManager

In order to facilitate simple, ID based access to a RegistryObject, two new methods will be added to QueryManager:

  • getRepositoryItem

  • getRegistryObject

To execute these requests, a URI parameter, named "id" must be used to specify the id attribute of the object being referenced. The response returned will be a RegistryResponse in XML fomat. Below is a sample request and response:

Example 1. GET Request

GET /rest?interface=QueryManager&method=getRepositoryItem&param-id=urn:uuid:8788-hhghh-ttttt HTTP/1.0   
                

Example 2. GET Response

            
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 555
 
<?xml version="1.0"?>
<RegistryResponse />
   
                

4.2. HTTP POST Based Access to QueryManager

The submitAdhocQueryRequest method takes a properly formed AdhocQueryRequest, and returns a RegistryResponse in XML format. In the REST interface, the AdhocQueryRequest is delivered using the http POST action. Below is a sample request and response:

Example 3. POST Request

POST /rest?interface=QueryManager&method=submitAdhocQueryRequest HTTP/1.0
User-Agent: Foo-ebXML/1.0
Host: www.registryserver.com
Content-Type: text/xml
Content-Length: 555
 
<?xml version="1.0"?>
<AdhocQueryRequest />
   
                

Example 4. POST Response

HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 555
 
<?xml version="1.0"?>
<RegistryResponse />   
                

Please refer to the most current ebXML RS and RIM specifications for details on how to for the requests and responses mentioned above.

5. LifecycleManager REST Interface

The REST Interface to LifecycleManager consists of the interface name "LifecycleManager", and all methods defined in that interface including:

  • approveObjects

  • deprecateObjects

  • removeObjects

  • submitObjects

  • updateObjects

  • addSlots

  • removeSlots

The requests for each method must be delivered using HTTP POST in XML format. The return value will always be a RegistryResponse in XML format. Below is a sample request and response:

Example 5. Request

POST /rest?interface=LifecycleManager&method=approveObjects HTTP/1.0
User-Agent: Foo-ebXML/1.0
Host: www.registryserver.com
Content-Type: text/xml
Content-Length: 555
 
<?xml version="1.0"?>
<ApproveObjectsRequest />

                

Example 6. Response

HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 555
 
<?xml version="1.0"?>
<RegistryResponse />
 
                

Please refer to the most current ebXML RS and RIM specifications for details on how to for the requests and responses mentioned above.

6. Security Considerations

The REST interface supports the same mechanisms for data integrity and source integrity as are mentioned in the Registry Services specification. Authentication may be performed by the registry on a per message basis by verifying any digital signatures present, as well as at the HTTP transport level using Basic or Digest authentication.

7. Exception Handling

Since the REST interface is merely an interface to various registry objects, exception handling will take the same form as they do over other registry transports. Errors must be reported in a RegistryErrorList, and sent back to the client on the same connection as the request.

When an error occurs, the HTTP status code and message should be apropriate to the error(s) being reported in the RegistryErrorList. For example, if the RegistryErrorList is reporting that an object wasn't found, therefore cannot be returned, an appropriate error code would be 404, with a message of "Object Not Found". A detailed list of HTTP status codes can be found in [RFC2616]

A. Notices

Copyright © The Organization for the Advancement of Structured Information Standards [OASIS] 2001, 2002. All Rights Reserved.

OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.

OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.

This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

OASIS has been notified of intellectual property rights claimed in regard to some or all of the contents of this specification. For more information consult the online list of claimed rights.

B. Intellectual Property Rights

For information on wether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the {technical-committee} web page (http://www.oasis-open.org/committees/regrep)

C. Revision History

Revision 0.79 August 2002mm
More details added to exception handling, get* methods altered slightly. Reference to RFC 2616 added.
Revision 0.68 August 2002mm
A few small changes to make this proposal more consistent with existing regrep specifications.
Revision 0.56 August 2002mm
Incorporated comments, added security and exception handling.
Revision 0.48 July 2002mm
Converted document to Docbook XML from MS Word.
Revision 0.33 July 2002mm
Incorporated changes from Farrukh.
Revision 0.21 July 2002mm
First public draft.

References

Non-Normative

[RESTThesis] Roy Thomas Fielding. Architectural Styles and the Design of Network-based Software Architectures . Doctoral Dissertation, University of California, Irvine. 2000.

[URIInterface] Matthew MacKenzie. URL Interface to OASIS ebXML Registry . Best Practices. 2002.

[RFC2616] Fielding et al. Hypertext Transfer Protocol -- HTTP/1.1 . 1999.

Attachment: RESTProposal.ppt
Description: Binary data

Attachment: ebXMLRegistryV3Overview.zip
Description: Zip compressed data

Attachment: contentBasedQueryProposal-v0.2.pdf
Description: Adobe PDF document



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC