Package org.uddi.api_v3

Examples of org.uddi.api_v3.Name


        @Test
        public void InquiryREST_GET_TModel() throws Exception {
                Assume.assumeTrue(TckPublisher.isInquiryRestEnabled());
                FindTModel fb = new FindTModel();
                fb.setMaxRows(1);
                fb.setName(new Name(UDDIConstants.WILDCARD, null));
                fb.setFindQualifiers(new FindQualifiers());
                fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                TModelList findTModel = inquiry.findTModel(fb);
                Assume.assumeTrue(findTModel != null);
                Assume.assumeTrue(findTModel.getTModelInfos() != null);
View Full Code Here


        public void InquiryREST_GET_Service() throws Exception {
                Assume.assumeTrue(TckPublisher.isInquiryRestEnabled());
                //find the first service via inquriy soap
                FindService fb = new FindService();
                fb.setMaxRows(1);
                fb.getName().add(new Name(UDDIConstants.WILDCARD, null));
                fb.setFindQualifiers(new FindQualifiers());
                fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                ServiceList findService = inquiry.findService(fb);
                Assume.assumeTrue(findService != null);
                Assume.assumeTrue(findService.getServiceInfos() != null);
View Full Code Here

                        int fetch = 10;
                        int offset = 0;
                        FindService fb = new FindService();
                        fb.setMaxRows(fetch);
                        fb.setListHead(offset);
                        fb.getName().add(new Name(UDDIConstants.WILDCARD, null));
                        fb.setFindQualifiers(new FindQualifiers());
                        fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                        ServiceList findService = inquiry.findService(fb);
                        int returnedcount = findService.getServiceInfos().getServiceInfo().size();
                        do {
                                for (int i = 0; i < findService.getServiceInfos().getServiceInfo().size(); i++) {
                                        GetServiceDetail gsd = new GetServiceDetail();
                                        gsd.getServiceKey().add(findService.getServiceInfos().getServiceInfo().get(i).getServiceKey());
                                        ServiceDetail serviceDetail = inquiry.getServiceDetail(gsd);
                                        if (serviceDetail.getBusinessService().get(0).getBindingTemplates() != null
                                                && !serviceDetail.getBusinessService().get(0).getBindingTemplates().getBindingTemplate().isEmpty()) {
                                                return serviceDetail.getBusinessService().get(0).getBindingTemplates().getBindingTemplate().get(0);
                                        }

                                }
                                offset = fetch;
                                fetch = fetch + 10;
                                fb = new FindService();
                                fb.setMaxRows(fetch);
                                fb.setListHead(offset);
                                fb.getName().add(new Name(UDDIConstants.WILDCARD, null));
                                fb.setFindQualifiers(new FindQualifiers());
                                fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                                findService = inquiry.findService(fb);
                                returnedcount = findService.getServiceInfos().getServiceInfo().size();
View Full Code Here

    logger.info("****************** Save " + numberOfServices + " Joes Services Duration=" + saveDuration);
   
                long startFind=System.currentTimeMillis();
                FindService fs = new FindService();
                fs.setAuthInfo(authInfoJoe);
                fs.getName().add(new Name(UDDIConstants.WILDCARD, null));
                fs.setFindQualifiers(new FindQualifiers());
                fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                inquiryJoe.findService(fs);
                long endFind = System.currentTimeMillis() - startFind;
                logger.info("****************** Find " + numberOfServices + " Joes Services Duration= " + endFind);
View Full Code Here

    logger.info("****************** Save " + numberOfServices + " Sams Services Duration=" + saveDuration);
               
                long startFind=System.currentTimeMillis();
                FindService fs = new FindService();
                fs.setAuthInfo(authInfoSam);
                fs.getName().add(new Name(UDDIConstants.WILDCARD, null));
                fs.setFindQualifiers(new FindQualifiers());
                fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                inquirySam.findService(fs);
                long endFind = System.currentTimeMillis() - startFind;
                logger.info("****************** Find " + numberOfServices + " Sams Services Duration= " + endFind);
View Full Code Here

                return r;
        }

        private static Collection<? extends Name> getNames() {
                List<Name> r = new ArrayList<Name>();
                r.add(new Name("name1", "en"));
                return r;
        }
View Full Code Here

        public void ContactMaxAddressFFFFTFFtest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("ContactMaxAddressFFFFTFFtest");
                SaveBusiness sb = new SaveBusiness();
                sb.setAuthInfo(authInfoJoe);
                BusinessEntity be = new BusinessEntity();
                Name n = new Name();
                n.setValue("ContactMaxAddressFFFFTFFtest A Test business");
                be.getName().add(n);
                be.setContacts(ContactAddressAllMax(false, false, false, false, true, false, false));
                sb.getBusinessEntity().add(be);
                try {
                        BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
View Full Code Here

        public void ContactMaxAddressFFFFFTFtest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("ContactMaxAddressFFFFFTFtest");
                SaveBusiness sb = new SaveBusiness();
                sb.setAuthInfo(authInfoJoe);
                BusinessEntity be = new BusinessEntity();
                Name n = new Name();
                n.setValue("ContactMaxAddressFFFFFTFtest A Test business");
                be.getName().add(n);
                be.setContacts(ContactAddressAllMax(false, false, false, false, false, true, false));
                sb.getBusinessEntity().add(be);
                try {
                        BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
View Full Code Here

        public void ContactMaxAddressFFFFFFTtest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("ContactMaxAddressFFFFFFTtest");
                SaveBusiness sb = new SaveBusiness();
                sb.setAuthInfo(authInfoJoe);
                BusinessEntity be = new BusinessEntity();
                Name n = new Name();
                n.setValue("ContactMaxAddressFFFFFFTtest A Test business");
                be.getName().add(n);
                be.setContacts(ContactAddressAllMax(false, false, false, false, false, false, true));
                sb.getBusinessEntity().add(be);
                try {
                        BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
View Full Code Here

        public void KeyReferenceMax() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("KeyReferenceMax");
                SaveBusiness sb = new SaveBusiness();
                sb.setAuthInfo(authInfoJoe);
                BusinessEntity be = new BusinessEntity();
                Name n = new Name();
                n.setValue("KeyReferenceMax A Test business");
                be.getName().add(n);
                be.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setKeyName(str255);
                kr.setKeyValue(str255);
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.Name

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.