The objective of this lesson is to learn how to define an UDDIProfile , that defines the execution context of an UDDI client/server interaction.
Source code of reference: All the publishing and querying examples define an UDDIProfile .
This lesson is a base lesson that can be used to define the UDDIProfile needed to interact with an UDDI registry.
The concept of UDDIProfile , which is a Ruddi-specific concept, defines an execution context for an UDDI client/server interaction. The UDDIProfile defines things such as the URLs to query or publish to an UDDI registry, the authentication information, the UDDI version to use, the logging and transport systems, etc.
We create an UDDIProfile using simple class instantiation:
UDDIProfile profile = new UDDIProfile();
To configure a profile, enable the appropriate set of properties like in the following examples:
profile.setProperty("inspireit.uddi.inquiry.url","http://uddi.microsoft.com/inquire");
Sets the inquiry URL to Microsoft's UBR one, http://uddi.microsoft.com/inquire .
profile.setProperty("inspireit.uddi.publishing.url","https://uddi.microsoft.com/publish");
Set the publishing URL to Microsoft's UBR one, https://uddi.microsoft.com/publish .
profile.setProperty("inspireit.uddi.publishing.username","myusername");
Sets the username to authenticate to an UDDI registry to myusername .
profile.setProperty("inspireit.uddi.publishing.password","mypassword");
Sets the password to authenticate to an UDDI registry to mypassword .
profile.setProperty("inspireit.uddi.version","3.0");
Sets the UDDI version in use to UDDI 3.0.
profile.setProperty("inspireit.uddi.logEnabled","true");
profile.setProperty("inspireit.uddi.logging.provider","inspireit.logging.Log4JLogger");
Sets the logging provider to the Log 4J-logger.
profile.setProperty("inspireit.uddi.transport","inspireit.uddi.transport.Axis10Transport");
Sets the transport to the Apache Axis 1.0 SOAP implementation.
|
|
(c) INSPIRE IT, 2003 | Send us your feedback: developers@ruddi.biz