ServiceBinding

   
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 ServiceBinding s. 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 Service s over all Organization s. 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( )


   


Java Web Services in a Nutshell
Java Web Services in a Nutshell
ISBN: 0596003994
EAN: 2147483647
Year: 2003
Pages: 257
Authors: Kim Topley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net