Professional Documents
Culture Documents
Saranya.R
JAX R
Providers Capability profiles
Architecture
Taxonomy
Internal NAICS is an example of an internal taxonomy, because the scheme and all the codes are available inside the JAXR provider External An example of an external taxonomy is the microsoftcom:geoweb:2000 scheme (based on the ISO 3166 standard) in the Microsoft registry
JAX R API
Registry service 3 sub services The BusinessLifeCyleManager interface, used for creating objects based on the information model The BusinessQueryManager interface, used to query the registry using objects from the information model The DeclarativeQueryManager interface, used to execute statement type queries on the registry
JAX R API
Connecting
// Set the properties for the factory Properties environment = new Properties(); environment.setProperty("javax.xml.registry.queryManagerURL", QUERY_URL); environment.setProperty("javax.xml.registry.lifeCycleManagerURL", PUBLISH_URL); // Instantiate the factory and create a connection from it ConnectionFactory connfactory = ConnectionFactory.newInstance(); connfactory.setProperties(environment); Connection connection = connfactory.createConnection(); // Authenticate the username and password with the registry PasswordAuthentication passwdAuth = new PasswordAuthentication(uddiusername, uddipassword.toCharArray()); Set credentials = new HashSet(); credentials.add(passwdAuth); connection conn.setCredentials(credentials); // Obtain a reference to the registry service RegistryService registryservice = connection.getRegistryService();
CRUD
Declarative queries
JAXR BusinessQueryManager
findServiceBindings findOrganizations findAssociatedObjects
UDDI method
Find_binding find_business find_related_business
findServices
findConcepts and findClassificationSchemes
find_service
find_tModel
Mapping of ebXML Registry Information Model to JAXR No mapping is required from the JAXR model to the ebXML Registry Information Model, because they are identical (e.g.,Organization interface in JAXR maps to an Organization object in RIM, etc.) Also, JAXR supports all features and functionality defined by OASIS for the ebXML registry.
To sum up.
In this chapter, we looked at JAXR and its functionality. So, why is this API important, and why should developers use it? For businesses to communicate with their partners and forge relationships, not only do they need to expose their functions as Web services, they also need to publish them in a manner accessible by different partners. Using open standards such as XML, UDDI/ebXML registry, and SOAP eliminates the dependence between disparate hardware and software stacks and facilitates a loosely coupled architecture. JAXR removes the dependence between applications and nonstandard toolkits by giving developers a rich, simple, standard extension API to communicate with registry providers using these very same open standards. It allows applications accessing XML registries to remain vendorneutral and portable across disparate registry implementations .
Thank you