Package com.sun.xml.registry.uddi.bindings_v2_2

Examples of com.sun.xml.registry.uddi.bindings_v2_2.SaveBusiness


    /**
     * Create an instance of {@link TModelInstanceInfo }
     *
     */
    public TModelInstanceInfo createTModelInstanceInfo() {
        return new TModelInstanceInfo();
    }
View Full Code Here


    /**
     * Create an instance of {@link TModelList }
     *
     */
    public TModelList createTModelList() {
        return new TModelList();
    }
View Full Code Here

    /**
     * Create an instance of {@link ValidateValues }
     *
     */
    public ValidateValues createValidateValues() {
        return new ValidateValues();
    }
View Full Code Here

   *
   * @exception RegistryException;
   */
  public BusinessDetail saveBusiness(String authInfo,
      BusinessEntity[] businessArray) throws RegistryException {
    SaveBusiness request = this.objectFactory.createSaveBusiness();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (businessArray != null) {
      request.getBusinessEntity().addAll(Arrays.asList(businessArray));
    }

        BusinessDetail bd;
        JAXBElement<?> o = execute(this.objectFactory.createSaveBusiness(request),
            this.getPublishURI());
View Full Code Here

    BusinessEntity businessEntity=null;
    log.info("Registering business " + business.getName().get(0).getValue()
        + " with key " + business.getBusinessKey());
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      SaveBusiness saveBusiness = new SaveBusiness();
      saveBusiness.setAuthInfo(authToken);
      saveBusiness.getBusinessEntity().add(business);
      BusinessDetail businessDetail = getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).saveBusiness(saveBusiness);
      businessEntity = businessDetail.getBusinessEntity().get(0);
    } catch (Exception e) {
      log.error("Unable to register business " + business.getName().get(0).getValue()
          + " ." + e.getMessage(),e);
View Full Code Here

  public void saveBusinesses(String authInfo, String businessXML, String businessKey, int numberOfCopies) {
    try {     
      BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(businessXML, "org.uddi.api_v3");
      String businessName = beIn.getName().get(0).getValue();
      for (int i=0; i<numberOfCopies; i++) {
        SaveBusiness sb = new SaveBusiness();
        sb.setAuthInfo(authInfo);
        beIn.getName().get(0).setValue(businessName + "-" + i);
        beIn.setBusinessKey(businessKey + "-" + i);
        sb.getBusinessEntity().add(beIn);
        publication.saveBusiness(sb);
        logger.debug("Saved business with key " + businessName + "-" + i);
      }
     
    } catch(Throwable e) {
View Full Code Here

    }
  }
   
  public void saveBusiness(String authInfo, String businessXML, String businessKey) {
    try {
      SaveBusiness sb = new SaveBusiness();
      sb.setAuthInfo(authInfo);

     
      BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(businessXML, "org.uddi.api_v3");
      sb.getBusinessEntity().add(beIn);
      publication.saveBusiness(sb);
 
      // Now get the entity and check the values
      GetBusinessDetail gb = new GetBusinessDetail();
      gb.getBusinessKey().add(businessKey);
View Full Code Here

      BusinessEntity beOut = beOutList.get(0);
      //We are expecting 2 services
      assertEquals(2,beOut.getBusinessServices().getBusinessService().size());
     
      //Now updating the business by adding another description
      SaveBusiness sb = new SaveBusiness();
      sb.setAuthInfo(authInfo);
      BusinessEntity beIn = beOut;
      Description desc2= new Description();
      desc2.setLang("nl");
      desc2.setValue("Omschrijving");
      beIn.getDescription().add(desc2);
      sb.getBusinessEntity().add(beIn);
      publication.saveBusiness(sb);
 
      // Now get the entity and check the values
      BusinessDetail bdnew = inquiry.getBusinessDetail(gb);
      List<BusinessEntity> beOutListNew = bdnew.getBusinessEntity();
View Full Code Here

        }
        if (method.equalsIgnoreCase("saveBinding")) {
            JAXB.marshal(new SaveBinding(), sw);
        }
        if (method.equalsIgnoreCase("saveBusiness")) {
            JAXB.marshal(new SaveBusiness(), sw);
        }
        if (method.equalsIgnoreCase("saveTModel")) {
            JAXB.marshal(new SaveTModel(), sw);
        }
        if (method.equalsIgnoreCase("saveService")) {
View Full Code Here

    businessEntity.getName().add(name);
    businessEntity.getDescription().add(description);
    businessEntity.setContacts(contacts);
       
    //Pass Entity to SaveBussiness object and publish.
    SaveBusiness saveBusiness = new SaveBusiness();
    saveBusiness.setAuthInfo(authenticationToken.getAuthInfo());
    saveBusiness.getBusinessEntity().add(businessEntity);
   
    //Business Details are returned.
    businessDetail = publishService.saveBusiness(saveBusiness);
   
  }
View Full Code Here

TOP

Related Classes of com.sun.xml.registry.uddi.bindings_v2_2.SaveBusiness

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.