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

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


  {
    GetAuthenticationToken getAuthenticationToken = new GetAuthenticationToken();
    getAuthenticationToken.run();
    AuthToken authToken = getAuthenticationToken.getAuthenticationToken();
   
    RegisterBusiness registerBusiness = new RegisterBusiness(authToken, "Abonement");
    registerBusiness.run();
   
    //FindBusinessByName findBusinessByName = new FindBusinessByName(authToken,
    //    businessName);
    //if (findBusinessByName.preValidate())
    //{
        Subscribe subscribe = new Subscribe(authToken, registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getBusinessKey());
        subscribe.run();
       
        System.out.println(subscribe.getSubscriptionKey());
    //}
    //else
View Full Code Here


   
    //Generate a unique business name including a pseudo random number.
    String uniqueBusinessName = "business no " + UUID.randomUUID().toString();
   
    //Save business under generated name using Auth token.
    RegisterBusiness registerBusiness = new RegisterBusiness(getAuthenticationToken.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 random number of services (0 < number of services generate < maxNumberOfBusinessServices).
    //If the property maxNumberOfBusinessServices is not found, the max will be the second argument
    //of the getProperties method call (in this case 2)
    int numberOfBusinessService = XltRandom.nextInt(getProperty("maxNumberOfBusinessServices", 1)) + 1;
View Full Code Here

   * @throws Throwable
   */
  public RegisterBusinessFlow(AuthToken authenticationToken, String businessName, int numberOfBusinessService) throws Throwable
  {
    //register the business under "businessName".
    RegisterBusiness registerBusiness = new RegisterBusiness(authenticationToken, businessName);
    registerBusiness.run();
   
    businessDetail = registerBusiness.getBusinessDetail();
   
    //get the returned business key and name.
    String businesskey = businessDetail.getBusinessEntity().get(0).getBusinessKey();
    String name = businessDetail.getBusinessEntity().get(0).getName().get(0).getValue();   
   
View Full Code Here

   * @throws Throwable
   */
  public RegisterBusinessFlow(AuthToken authenticationToken, int numberOfBusinessService)throws Throwable
  {
    //register the business under a unique name.
    RegisterBusiness registerBusiness = new RegisterBusiness(authenticationToken);
    registerBusiness.run();
   
    businessDetail = registerBusiness.getBusinessDetail();
   
    //get the returned business key and name.
    String businesskey = registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getBusinessKey();
    String name = registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getName().get(0).getValue()
   
    //register numberOfBusinessService services under the new business.
    for (int serviceCount = 0; serviceCount < numberOfBusinessService; serviceCount++ )
    {
      RegisterService registerService = new RegisterService(authenticationToken, businesskey, name);
View Full Code Here

   
    //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);
View Full Code Here

   
    //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(getAuthenticationToken.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(
        getAuthenticationToken.getAuthenticationToken(), businesskey, businessName);
    registerService.run();
View Full Code Here

TOP

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

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.