Package org.apache.juddi.xlt.action.SOAP

Examples of org.apache.juddi.xlt.action.SOAP.GetStaticAuthToken


   */
  @Test
  public void registerBusiness() throws Throwable
  {
    //Get an Authentication Token.
    GetStaticAuthToken getStaticAuthToken = new GetStaticAuthToken();
    getStaticAuthToken.run();
   
    //Generate a unique business name including a pseudo random uuid.
    String uniqueBusinessName = "business no " + UUID.randomUUID().toString();
   
    //Save business under generated name using Auth token.
    RegisterBusiness registerBusiness = new RegisterBusiness(getStaticAuthToken.getAuthenticationToken(),
        uniqueBusinessName);
    registerBusiness.run();
   
    //Retrieve business key and name from returned BusinessDetail object. The key, given
    //by jUUDI, will be submitted while publishing services under the business. The name
    //is used to generate the services access point and later to verify that jUDDI can
    //find the business again.
    String businesskey = registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getBusinessKey();
    String businessName = registerBusiness.getBusinessDetail().getBusinessEntity()
      .get(0).getName().get(0).getValue();
   
    //Publish a single services under the new business.
    RegisterService registerService = new RegisterService(
        getStaticAuthToken.getAuthenticationToken(), businesskey, businessName);
    registerService.run();
   
    //Find all businesses. This should return a SOAP message with a list of all businesses.
    FindBusinessByName findBusinessByName = new FindBusinessByName(getStaticAuthToken.getAuthenticationToken(),
        "%");
    findBusinessByName.run()
  }
View Full Code Here

TOP

Related Classes of org.apache.juddi.xlt.action.SOAP.GetStaticAuthToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.