Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Use the following steps to test UDDI API services.

  1. 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 in carbon.xml at GREG_HOME/repository/conf/.
    Code Block
    <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
    Start Governance Registry server as mentioned in Support for UDDI
  2. 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 
    Image RemovedImage Added
  3. 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:
    1. Add a WSDL to the Governance Registry. (E.g. - http://www.webservicex.net/globalweather.asmx?wsdl ) ,. This would create creates the corresponding service.
      Image RemovedImage Added
    2. 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 the UDDIInquiryService WSDL as given below.
      Image Removedthe following inquiry service WSDL:
      Image Added
    3.  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. 
      Image Removed
      In here the user Image Added
    4. 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.

      Image RemovedImage Added

    5. 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>

       

      Image RemovedImage Added

  4. Similar to UDDIInquiryService other service API classes inquiry service, other services can also be tested on governance registry Governance Registry using the soapUI. 
     
  5. Refer the section JAXR sample  in  in order to know how to use the JAXR API against UDDI.