Previous section   Next section
Service javax.xml.registry.infomodel

JAXR 1.0; JWSDP 1.0, J2EE 1.4
public interface Service extends RegistryEntry {
// Public Instance Methods
    public abstract void addServiceBinding(ServiceBinding serviceBinding)
       throws javax.xml.registry.JAXRException;             //L0
    public abstract void addServiceBindings(Collection serviceBindings)
       throws javax.xml.registry.JAXRException;             //L0
    public abstract Organization getProvidingOrganization(  )
       throws javax.xml.registry.JAXRException;             //L0
    public abstract Collection getServiceBindings(  )
       throws javax.xml.registry.JAXRException;             //L0
    public abstract void removeServiceBinding(ServiceBinding serviceBinding)
       throws javax.xml.registry.JAXRException;             //L0
    public abstract void removeServiceBindings(Collection serviceBindings)
       throws javax.xml.registry.JAXRException;             //L0
    public abstract void setProvidingOrganization(Organization providingOrganization) 
       throws javax.xml.registry.JAXRException;             //L0
}

Service is a simple container object that holds a set of ServiceBindings. A Service object is created by an Organization to describe a service that it wants to publish in the registry. An Organization may have any number of associated Service objects, which are created using the createService( ) method of LifeCycleManager and added using the addService( ) or addServices( ) methods of the Organization interface. A registry client can locate a Service using the findServices( ) method of BusinessQueryManager. When the target registry is UDDI, it is only possible to search for services provided by a specified Organization; ebXML registries allow searching for Services over all Organizations. In most cases, a service query is based on a set of classifications that describe the nature of the service required. Once a suitable service is found, the getProvidingOrganization( ) method can be used to discover the service provider (which is, of course, obvious in the case of a UDDI registry), and the getServiceBindings( ) method can be used to obtain ServiceBinding objects that describe how to access and use the service. The creating Organization can install and remove these bindings using the addServiceBinding( ), addServiceBindings( ), removeServiceBinding( ), and removeServiceBindings( ) methods.

Passed To

Organization.{addService( ), removeService( )}

Returned By

javax.xml.registry.LifeCycleManager.createService( ), ServiceBinding.getService( )


  Previous section   Next section