HOME |  ADVERTISE |  SUBSCRIBE |  CONTACT |  SYS-CON.COM FREE XML-J ARCHIVES  

This Issue Sponsored By
  • Actional
  • EclipseCon 2005
  • Ektron
  • EV1 Servers
  • Gilbane Conference
  • Global Knowledge
  • HostMySite
  • IBM
  • Itemfield
  • LinuxWorld Conf & Expo
  • Mindreef
  • Panacea Software
  • Parasoft
  • Promind Systems
  • Stylus Studio
  • WebAppCabaret

  • MAGAZINE
     
  • Advertise
  • Buyer's Guide
  • Customer Service
  • Digital Edition
  • Editorial Board
  • FREE Newsletters
  • JDJStore.com
  • Readers' Choice
  • RSS Feed
  • Subscribe


  •  TOPICS
     
  • XML Tips & Tricks
  • XML Protocols
  • WebServices
  • XML-J News Desk
  • Editorials
  • Interviews
  • Product Reviews
  • All Topics
  • Archives
  • Source Code
  • Write for Us

  • Home > XML > Archives > Volume 03 Issue 01 >

     

    Figures: Click to Enlarge
    Figure 1 | Figure 2 | Figure 3 | Figure 4 | Figure 5

    A UML diagram of these interfaces can be seen in Figure 3. The ObjectManager interface provides life-cycle methods for the objects maintained by the registry while the ObjectQueryManager interface provides methods for locating and retrieving objects from the registry.

    While the specification doesn't explicitly describe an implementation technology, it does describe the exact functions provided by each of these interfaces. However, the recommended implementation technology is actually SOAP and XML. So every time you read something about a given method with certain parameters, think of a SOAP request as the method with an XML payload that represents the parameters.

    The ObjectManager Interface
    An object in an ebXML Registry can exist in one of four basic states. Figure 4 depicts the various object states in the registry and the ObjectManager methods that cause the various state transitions.

    When an object is first introduced to the registry it exists in a Submitted state. From there the object can be moved into an Approved state. Once an object has reached that state, it's ready for use by the participating business parties. Objects in the Approved state can continue to be updated and modified. A time may come, however, when this object needs to be retired. At that time the object can be moved to a Deprecated state. Once in this state, the object continues to be accessible but may no longer be modified or updated. Eventually it may be moved to a Removed state where it is no longer accessible by the participating business parties. Effectively, the object has been removed from the registry.

    The ObjectManager interface provides the methods to create new objects and affect state transitions on existing objects. However, all of these methods are not available to the general public. We'll take a look at the security restrictions placed on these methods later.

    The ObjectQueryManager Interface
    Now that we know how to create objects within the registry, we need a way to find and access those objects. That is the purpose of the methods provided via the ObjectQueryManager interface. Just as SELECT statements constitute the majority of requests processed by a database, these query methods are the most common requests of an ebXML Registry. In that light it accounts for why over 50% of the content of the ebXML Registry specification has been devoted to the query interfaces!

    To support the various types of queries that users may want to execute, three different query methods have been defined. Any registry that claims to be ebXML compliant must support the first two, known as the Browse and Drill Down Query and the Filter Query. The third is a SQL Query interface, which isn't required by the ebXML specification. However, the specification makes it clear that if you do support a SQL Query type interface, it must meet the specifications described in the ebXML Registry specification. It's an optional, yet standardized, interface. Let's take a look at each of these in detail:

    Browse and Drill Down Query

    As you might imagine, the simplest type of query interface is an interactive query in which the user provides the "filtering" capabilities. The Browse and Drill Down Query of an ebXML Registry provides this capability. Three methods provide this functionality.

    The first one is getRootClassificationNodes, which basically returns all ClassificationNodes in the registry that don't have a parent. The only parameter that can be specified, namePattern, works like a SQL-92 LIKE clause, allowing you to specify a wildcard pattern for the query.

    Now that you have a collection of root ClassificationNodes, you may want to "drill down" into one of these nodes by retrieving all of its children. This is accomplished through the getClassificationTree method, which has two parameters, parent and depth. Parent is the parent for which the children are being retrieved. Depth is an optional element. If it isn't specified, it defaults to 1, and only the immediate children of the given parent are retrieved. Otherwise, depth refers to how many levels of the hierarchy of a given parent should be retrieved. A value of zero or less indicates that all children should be retrieved.

    Once users have browsed their way down to a ClassificationNode that they're interested in, they'll most likely want to look at the RegistryEntries associated with that ClassificationNode. This request is made through the getClassifiedObjects method which is supplied with a list of ClassificationNodes that the user is interested in. The registry then returns all objects that are either directly classified by the supplied ClassificationNode or directly classified by a descendant of the supplied ClassificationNode, and thus indirectly classified by the parent ClassificationNode.

    2 of 5

    About the Author: Kristian Cibulskis is a freelance consultant focusing on Enterprise Java and XML solutions.

    Other Recent Articles by Kristian Cibulskis

    Reader Feedback | 2 Replies | Post Message

    ebXML Registry English Version is now available by KTNET.
    Posted by Chaemee Kim on Feb. 4 @ 12:14 AM

    Dear Kristian,

    This is ebXML Lead in KTNET.
    I appreciate you quote KTNET's ebXML Registry in your article.

    Now we're providing English Version of ebXML Registry 1.0 at http://www.gxmlhub.com/english/index.htm

    Plz, revise it correctly.

    The Korea Trade Network provides an openly accessible registry service. However, most of the site is in Korean, so if you can't read it I suggest using something like AltaVista's Babel Fish to translate the pages in real time.


    Good article
    Posted by Bobby on Mar. 7 @ 03:33 PM

    v good article


    Post Feedback

    Name:
    E-Mail Address:
    Subject:

    Message:

    Optional Link:
    Link Title:

    All Rights Reserved
    Copyright © 2005 SYS-CON Media, Inc.
    E-mail: info@sys-con.com

    The World's Leading IT Solution Providers
    Click here for product demos
    from the world's leading IT solution providers!


    Global Knowledge: Why Open Source Software Can Help Create a More Secure IT Infrastructure ...learn more and download FREE Copy!

    FusionWare: Reducing Complexity Through FusionWare Integration Server ...learn more and download FREE Copy!

    Promind Systems: XSL Maker:Complete Toolset for Building Web Pages from XML Data with XSL & CSS ...learn more and download FREE Copy!

    EV1 Servers: Four Steps to Web Hosting Success ...learn more and download FREE Copy!

    Itemfield: Defining the Benchmark for Complex Data Transformations ...learn more and download FREE Copy!

    JadeLiquid Software: WebRenderer:Seamlessly Displaying Web Content Within Your Java Application ...learn more and download FREE Copy!

    PointBase: J2EE Development with PointBase Embedded ...learn more and download FREE Copy!

    Gluecode JOE: Simplifying Java Development with Gluecode JOE ...learn more and download FREE Copy!

    NetOp Remote Control: NetOp Remote Control Enables Building Automation ...learn more and download FREE Copy!

    Enerjy Software: Why Coding Standards? ...learn more and download FREE Copy!


    World's Leading Web Services Resources

    Stylus Studio - Wondering how to build XQuery-based Web Service aggregation and reporting applications? Want to learn more about how to get the most out of XML Schemas? Download free XML whitepapers at Stylus Studio.

    Panacea Software - BPEL, WSDL, XML Schema, Xpath and WS-Security editors in one product. Download free evaluation copy of the most comprehensive and easy-to-use BPEL editor available. A single integrated development environment with a point-and-click programming interface, easy to learn and easy to use. Simply connect to www.panaceasoftware.com.

    IBM - Middleware is Everywhere. Can you see it?

    Mindreef - Make Your SOA more Agile. Try SOAPscope FREE at www.Mindreef.com.

    Parasoft - Verify Web Services Instantly with Parasoft... Just point SOAPtest to your Web services server.

    Ektron - Ektron - CMS400.NET offers robust content management built on the .NET Framework. Free download or demo.

    EV1 Servers - Start your own web hosting business today!

    Promind System - XSLmaker – the Smart Way to Transform XML to Web Pages. Download free trial at www.xslmaker.com

    Global Knowledge - Free cool stuff for you. Just come and get it.

    HostMySite.com - FREE Setup, a FREE domain name, and 2FREE months on any shared hosting account. Satisfaction is 100% Guaranteed.

    Iron Speed - Free Trial! Rapidly Build Custom Web apps for .NET

    XMLSpy - Download your FREE 30-day evaluation copy of XMLSPY

    EclipseCon 2005 - 2nd Annual Gathering of the Eclipse Community on February 28 – March 3, 2005. Register at www.eclipsecon.org.

    LinuxWorld Conference & Expo - February 14 – 17, 2005. Register today at linuxworldexpo.com for you FREE Exhibit Hall pass. www.linuxworldexpo.com

    Gilbane Conference - Our educational conference includes everything a project team needs to know, and provides IT, business, & content strategists a hype-free, clear-headed look at the existing and upcoming technologies necessary to implement content management applications. Learn more about upcoming conferences...