Package org.uddi.api_v3

Examples of org.uddi.api_v3.FindBusiness


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


  public BusinessList findBusiness(Name[] nameArray,
      DiscoveryURLs discoveryURLs, IdentifierBag identifierBag,
      CategoryBag categoryBag, TModelBag tModelBag,
      FindQualifiers findQualifiers, int maxRows)
      throws RegistryException {
    FindBusiness request = this.objectFactory.createFindBusiness();

    if (nameArray != null) {
      request.getName().addAll(Arrays.asList(nameArray));
    }

    if (discoveryURLs != null) {
      request.setDiscoveryURLs(discoveryURLs);
    }

    if (identifierBag != null) {
      request.setIdentifierBag(identifierBag);
    }

    if (categoryBag != null) {
      request.setCategoryBag(categoryBag);
    }

    if (tModelBag != null) {
      request.setTModelBag(tModelBag);
    } else {
      request.setTModelBag(this.objectFactory.createTModelBag());
     }

    if (findQualifiers != null) {
      request.setFindQualifiers(findQualifiers);
    }

    request.setMaxRows(maxRows);

        BusinessList bl;
        JAXBElement<?> o = execute(this.objectFactory.createFindBusiness(request),
            this.getInquiryURI());
        bl = (BusinessList) o.getValue();
View Full Code Here

  public BusinessList findBusiness(Name[] nameArray,
      DiscoveryURLs discoveryURLs, IdentifierBag identifierBag,
      CategoryBag categoryBag, TModelBag tModelBag,
      FindQualifiers findQualifiers, int maxRows)
      throws RegistryException {
    FindBusiness request = this.objectFactory.createFindBusiness();

    if (nameArray != null) {
      request.getName().addAll(Arrays.asList(nameArray));
    }

    if (discoveryURLs != null) {
      request.setDiscoveryURLs(discoveryURLs);
    }

    if (identifierBag != null) {
      request.setIdentifierBag(identifierBag);
    }

    if (categoryBag != null) {
      request.setCategoryBag(categoryBag);
    }

    if (tModelBag != null) {
      request.setTModelBag(tModelBag);
    } else {
      request.setTModelBag(this.objectFactory.createTModelBag());
     }

    if (findQualifiers != null) {
      request.setFindQualifiers(findQualifiers);
    }

    request.setMaxRows(maxRows);

        BusinessList bl;
        JAXBElement<?> o = execute(this.objectFactory.createFindBusiness(request),
            this.getInquiryURI());
        bl = (BusinessList) o.getValue();
View Full Code Here

                return r;
               
        }
       
        public static FindBusiness MapFindBusiness(org.uddi.api_v3.FindBusiness body) {
                FindBusiness r = new FindBusiness();
                r.setFindQualifiers(MapFindQualifiers(body.getFindQualifiers()));
                r.setMaxRows(body.getMaxRows());
                r.setTModelBag(MapTModelBag(body.getTModelBag()));
                r.setCategoryBag(MapCategoryBag(body.getCategoryBag()));
                r.setGeneric(VERSION);
                r.setDiscoveryURLs(MapDiscoveryURLs(body.getDiscoveryURLs()));
                r.setIdentifierBag(MapIdentBag(body.getIdentifierBag()));
                r.getName().addAll(MapName(body.getName()));
                if (ContainsWildCard(r.getName())) {
                        r.setFindQualifiers(AddApproximateMatch(r.getFindQualifiers()));
                }
                return r;
        }
View Full Code Here

            
             UDDISecurityPortType securityService = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             AuthToken authToken = securityService.getAuthToken(getAuthToken);
             System.out.println(authToken.getAuthInfo());
             Assert.assertNotNull(authToken);
           } else {
             Assert.fail();
           }
       } catch (Exception e) {
View Full Code Here

    }
  }
  public void findBinding() {
    try {
      FindBinding body = (FindBinding)EntityCreator.buildFromDoc(FIND_BINDING_XML, "org.uddi.api_v3");
      BindingDetail result = inquiry.findBinding(body);
      if (result == null)
        Assert.fail("Null result from find binding operation");
      List<BindingTemplate> btList = result.getBindingTemplate();
      if (btList == null || btList.size() == 0)
        Assert.fail("No result from find binding operation");
      BindingTemplate btOut = btList.get(0);
     
      BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(TckBindingTemplate.JOE_BINDING_XML, "org.uddi.api_v3");
View Full Code Here

  /**
   * Copies the TemplateBinding from one UDDI to another UDDI.
   */
  public void xRegisterServiceBinding() {
    try {
      BindingTemplate bindingTemplate = fromClerk.findServiceBinding(entityKey,fromClerk.getUDDINode().getApiNode());
      log.info("xregister binding " + bindingTemplate.getBindingKey()+ " + from "
          + fromClerk.getName() + " to " + toClerk.getName());
      toClerk.register(bindingTemplate,toClerk.getUDDINode().getApiNode());
    } catch (Exception e) {
      log.error("Could not " + toString() + ". " + e.getMessage() + " " + e.getCause(),e);
    }
View Full Code Here

      if (result == null)
        Assert.fail("Null result from find binding operation");
      List<BindingTemplate> btList = result.getBindingTemplate();
      if (btList == null || btList.size() == 0)
        Assert.fail("No result from find binding operation");
      BindingTemplate btOut = btList.get(0);
     
      BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(TckBindingTemplate.JOE_BINDING_XML, "org.uddi.api_v3");
     
      assertEquals(btIn.getServiceKey(), btOut.getServiceKey());
      assertEquals(btIn.getBindingKey(), btOut.getBindingKey());
     
      TckValidator.checkDescriptions(btIn.getDescription(), btOut.getDescription());
      TckValidator.checkCategories(btIn.getCategoryBag(), btOut.getCategoryBag());
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown:  " + e.getMessage());
    }
View Full Code Here

      ServiceDetail result = inquiry.getServiceDetail(getServiceDetail);
     
      if (result == null)
        Assert.fail("Null result from find service operation");
     
      BindingTemplates templates = result.getBusinessService().get(0).getBindingTemplates();
      if (templates!=null && templates.getBindingTemplate()!=null) {
        System.out.println(templates.getBindingTemplate().size());
        System.out.println("key=" + templates.getBindingTemplate().get(0).getBindingKey());
      }
//      ServiceInfos sInfos = result.getServiceInfos();
//      if (sInfos == null)
//        Assert.fail("No result from find service operation");
//      List<ServiceInfo> siList = sInfos.getServiceInfo();
View Full Code Here

    InquiryResponse response = new InquiryResponse();
    logger.debug("BusinessDetail " + getBusinessDetail + " sending businessDetail request..");
    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
           UDDIInquiryPortType inquiryService = transport.getUDDIInquiryService();
           BusinessDetail businessDetail = inquiryService.getBusinessDetail(getBusinessDetail);
           for (BusinessEntity businessEntity : businessDetail.getBusinessEntity()) {
             Business business = new Business(
                 businessEntity.getBusinessKey(),
                 EntityForLang.getName(businessEntity.getName(),lang).getValue(),
                 EntityForLang.getDescription(businessEntity.getDescription(),lang).getValue());
             if (businessEntity.getBusinessServices()!=null) {
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.FindBusiness

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.