Package org.uddi.api_v2

Examples of org.uddi.api_v2.GetBusinessDetail


  }
 
  public void checkNumberOfServices(String businessKey, int expectedServices) {
   
    try {
      GetBusinessDetail gb = new GetBusinessDetail();
      gb.getBusinessKey().add(businessKey);
      BusinessDetail bd;
      bd = inquiry.getBusinessDetail(gb);
      List<BusinessEntity> beOutList = bd.getBusinessEntity();
      BusinessEntity beOut = beOutList.get(0);
      if (expectedServices > 0) {
View Full Code Here


    }
  }
 
        public void signBusiness(String authInfo, String businessKey) {
            try {
                GetBusinessDetail gb = new GetBusinessDetail();
                gb.getBusinessKey().add(businessKey);
                BusinessDetail bd = inquiry.getBusinessDetail(gb);
                List<BusinessEntity> beOutList = bd.getBusinessEntity();
                BusinessEntity bizEntity = beOutList.get(0);
                bizEntity.getSignature().clear();
                BusinessEntity bizEntitySigned = signJAXBObject(bizEntity);
View Full Code Here

            }
        }
       
        public void verifyBusinessSignature(String authInfo, String businessKey) {
            try {
                GetBusinessDetail gb = new GetBusinessDetail();
                gb.getBusinessKey().add(businessKey);
                BusinessDetail bd = inquiry.getBusinessDetail(gb);
                List<BusinessEntity> beOutList = bd.getBusinessEntity();
                BusinessEntity bizEntity = beOutList.get(0);
                       
                boolean sigOk = verifySignedJAXBObject(bizEntity);
View Full Code Here

      sb.getBusinessEntity().add(beIn);
     
      publication.saveBusiness(sb);
 
      // Now get the entity and check the values
      GetBusinessDetail gb = new GetBusinessDetail();
      gb.getBusinessKey().add(businessKey);
      BusinessDetail bd = inquiry.getBusinessDetail(gb);
      List<BusinessEntity> beOutList = bd.getBusinessEntity();
      BusinessEntity beOut = beOutList.get(0);

            if (serialize) {
View Full Code Here

 
  public void updateBusiness(String authInfo, String businessXML, String businessKey) {
    try {
     
      // Now get the entity and check the values
      GetBusinessDetail gb = new GetBusinessDetail();
      gb.getBusinessKey().add(businessKey);
      BusinessDetail bd = inquiry.getBusinessDetail(gb);
      List<BusinessEntity> beOutList = bd.getBusinessEntity();
      BusinessEntity beOut = beOutList.get(0);
      //We are expecting 2 services
      assertEquals(2,beOut.getBusinessServices().getBusinessService().size());
View Full Code Here

         * @throws TransportException
         * @throws ConfigurationException
         */
        public BusinessEntity getBusinessDetail(String businessKey, Node node) throws RemoteException,
                TransportException, ConfigurationException {
                GetBusinessDetail getBusinessDetail = new GetBusinessDetail();
                getBusinessDetail.getBusinessKey().add(businessKey);
                getBusinessDetail.setAuthInfo(node.getSecurityUrl());
                try {
                        BusinessDetail bd = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getBusinessDetail(getBusinessDetail);
                        return bd.getBusinessEntity().get(0);
                } catch (DispositionReportFaultMessage dr) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
View Full Code Here

        ds.put(DigSigUtil.SIGNATURE_OPTION_CERT_INCLUSION_SERIAL, "true");
        be = ds.signUddiEntity(be);
        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            GetBusinessDetail gsb=new GetBusinessDetail();
            gsb.setAuthInfo(authInfoJoe);
            gsb.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
            BusinessDetail businessDetail = inquiry.getBusinessDetail(gsb);
            PrintUDDI<BusinessEntity> printer = new PrintUDDI<BusinessEntity>();
            System.out.println(printer.print(businessDetail.getBusinessEntity().get(0)));
            AtomicReference<String> msg = new AtomicReference<String>();
            boolean b=ds.verifySignedUddiEntity(businessDetail.getBusinessEntity().get(0), msg);
View Full Code Here

                        throw new UnexpectedResponseException("Error caught checking for the existence of and if a signature is present for service key " + serviceKey, ex);
                }
                if (bizkey == null) {
                        throw new UnexpectedResponseException("The service with key " + serviceKey + " parent's business key could not be determined. This is unexpected");
                }
                GetBusinessDetail gbd = new GetBusinessDetail();
                gbd.setAuthInfo(token);
                gbd.getBusinessKey().add(bizkey);
                try {
                        BusinessDetail businessDetail = uddiInquiryService.getBusinessDetail(gbd);
                        if (businessDetail != null && !businessDetail.getBusinessEntity().isEmpty()) {
                                if (!businessDetail.getBusinessEntity().get(0).getSignature().isEmpty()) {
                                        log.info("the business with key=" + bizkey + " exists and is digitally signed");
View Full Code Here

        public static GetBusinessDetail MapGetBusinessDetailExt(GetBusinessDetailExt body) {
                if (body == null) {
                        return null;
                }
                GetBusinessDetail r = new GetBusinessDetail();
                r.getBusinessKey().addAll(body.getBusinessKey());
                return r;
        }
View Full Code Here

        public static GetBusinessDetail MapGetBusinessDetail(org.uddi.api_v2.GetBusinessDetail body) {
                if (body == null) {
                        return null;
                }
                GetBusinessDetail r = new GetBusinessDetail();
                r.getBusinessKey().addAll(body.getBusinessKey());
                return r;
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.GetBusinessDetail

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.