...
Use the following steps to test UDDI API services.
- First configure Start the Governance Registry server to make WSDLs of admin services to be vsisble. To do that, make the value of the following configuration
false
incarbon.xml
atGREG_HOME/repository/conf/.
Start Governance Registry server as mentioned in Support for UDDI.Code Block <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
- Now a user you can view the WSDLs of UDDI API services and it is possible to create external clients which can perform UDDI operations on Governance Registry. The WSDL of
UDDIInquiryService
inquiry
service can be accessed as below.
httpsusing the following link: http://localhost:94439763/juddiv3/services/UDDIInquiryServiceinquiry?wsdl - For an example, if the server is has UDDI enabled and , when a user adds a service from the Governance Registry side, that resource would also get added to the UDDI registry. Therefor a user Therefore you can view any service added at service that is added on the Governance Registry side using the
UDDIInquiryServiceinquiry
service. This can be perform is performed as follows.
:- Add a WSDL to the Governance Registry. (E.g. - http://www.webservicex.net/globalweather.asmx?wsdl ) ,. This would create creates the corresponding service.
- Use a tool like soapUI to send a request to the UDDIInquiryService
inquiry
service. First the user has you have to create a project in soapUI using theUDDIInquiryService
WSDL as given below.
the followinginquiry
service WSDL: - When the new project is created, it will display displays all the available operations of the service on the left hand side menu of soapUI. Users You are able to rename the requests of operations listed out in the menu.
In here the user You can use
find_business
to find any business added in the UDDI registry. For the following SOAP request, all the businesses in the UDDI registry would return. Users are able to You can edit the SOAP request as they preferred required in order to get expected results.Code Block <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uddi-org:api_v3"> <soapenv:Header/> <soapenv:Body> <urn:find_business> <urn:findQualifiers> <!--1 or more repetitions:--> <urn:findQualifier>approximateMatch</urn:findQualifier> </urn:findQualifiers> <!--Zero or more repetitions:--> <urn:name>%</urn:name> </urn:find_business> </soapenv:Body> </soapenv:Envelope>
The service that has been added from the Registry side can be seen in the list of services as given below.
Users can use use the
find_service
method to find any service added in the UDDI registry. The following SOAP request can be used to search for the WeatherForecast service. Users are able to edit the SOAP request as they preferred to get expected results.Code Block <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uddi-org:api_v3"> <soapenv:Header/> <soapenv:Body> <urn:find_service> <urn:findQualifiers> <!--1 or more repetitions:--> <urn:findQualifier>approximateMatch</urn:findQualifier> </urn:findQualifiers> <!--Zero or more repetitions:--> <urn:name>WeatherForecast<name>GlobalWeather</urn:name> </urn:find_service> </soapenv:Body> </soapenv:Envelope>
- Add a WSDL to the Governance Registry. (E.g. - http://www.webservicex.net/globalweather.asmx?wsdl ) ,. This would create creates the corresponding service.
- Similar to
UDDIInquiryService
other service API classesinquiry
service, other services can also be tested on governance registry Governance Registry using the soapUI.
- Refer the section JAXR sample in in order to know how to use the JAXR API against UDDI.