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

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


                be.getName().addAll(getNames());
                return be;
        }

        private static BusinessServices getServices() {
                BusinessServices r = new BusinessServices();
                BusinessService x = new BusinessService();
                x.setBusinessKey(domainprefix+"businesskey");
                x.setServiceKey(domainprefix+"servicekey");
                x.setCategoryBag(getCatbag());
                x.getDescription().addAll(getDescriptions());
                x.getName().addAll(getNames());
                x.setBindingTemplates(getBindingTemplates());
                r.getBusinessService().add(x);
                return r;
        }
View Full Code Here


                this.lang = properties.getProperty(Property.LANG, Property.DEFAULT_LANG);
        }

        public BusinessServices registerBusinessServices(Definition wsdlDefinition) throws RemoteException, ConfigurationException, TransportException, WSDLException, MalformedURLException {

                BusinessServices businessServices = new BusinessServices();

                for (Object serviceName : wsdlDefinition.getAllServices().keySet()) {
                        QName serviceQName = (QName) serviceName;
                        Service service = wsdlDefinition.getService(serviceQName);
                        BusinessService businessService = null;
                        //add service
                        URL serviceUrl = null;
                        if (service.getPorts() != null && service.getPorts().size() > 0) {
                                for (Object portName : service.getPorts().keySet()) {
                                        businessService = registerBusinessService(serviceQName, (String) portName, serviceUrl, wsdlDefinition).getBusinessService();
                                }
                        }
                        if (businessService != null) {
                                businessServices.getBusinessService().add(businessService);
                        }
                }

                return businessServices;
View Full Code Here

         */
        public BusinessServices createBusinessServices(Definition wsdlDefinition) throws MalformedURLException {
                if (wsdlDefinition == null) {
                        throw new IllegalArgumentException();
                }
                BusinessServices businessServices = new BusinessServices();
                for (Object serviceName : wsdlDefinition.getAllServices().keySet()) {
                        QName serviceQName = (QName) serviceName;
                        Service service = wsdlDefinition.getService(serviceQName);
                        BusinessService businessService = createBusinessService(serviceQName, wsdlDefinition);
            //service.getExtensibilityElements().
                        //add the bindingTemplates
                        URL serviceUrl = null;
                        if (service.getPorts() != null && service.getPorts().size() > 0) {
                                businessService.setBindingTemplates(new BindingTemplates());
                                for (Object portName : service.getPorts().keySet()) {
                                        BindingTemplate bindingTemplate = createWSDLBinding(serviceQName, (String) portName, serviceUrl, wsdlDefinition);
                                        businessService.getBindingTemplates().getBindingTemplate().add(bindingTemplate);
                                }
                        }
                        businessServices.getBusinessService().add(businessService);
                }

                return businessServices;
        }
View Full Code Here

        BusinessService bs = new BusinessService();
        n = new Name();
        n.setValue("Service1 No Lang");
        bs.getName().add(n);
        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);

        bs = new BusinessService();
        n = new Name();
        n.setValue("Service2 Lang");
View Full Code Here

        be.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);

        //service has neither business or service key
        BusinessService bs = new BusinessService();
        bs.getName().add(new Name("Joe's bs", null));
        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);

        DigSigUtil ds = GetDigSig();
        be = ds.signUddiEntity(be);
        sb.getBusinessEntity().add(be);
View Full Code Here

        //service has business but not service key
        BusinessService bs = new BusinessService();
        bs.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
        bs.getName().add(new Name("Joe's bs", null));
        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);

        DigSigUtil ds = GetDigSig();
        be = ds.signUddiEntity(be);
        sb.getBusinessEntity().add(be);
View Full Code Here

        //service has business but not service key
        BusinessService bs = new BusinessService();
        //bs.setBusinessKey(TckBusiness.JOE_BUSINESS_KEY);
        bs.setServiceKey(TckBusinessService.JOE_SERVICE_KEY);
        bs.getName().add(new Name("Joe's bs", null));
        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);

        DigSigUtil ds = GetDigSig();
        be = ds.signUddiEntity(be);
        sb.getBusinessEntity().add(be);
View Full Code Here

        bs.setServiceKey(null);
        bs.getName().add(new Name("Joe's bs", null));
        DigSigUtil ds = GetDigSig();
        bs = ds.signUddiEntity(bs);

        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);


        sb.getBusinessEntity().add(be);
        try {
View Full Code Here

        bs.setServiceKey(TckBusinessService.JOE_SERVICE_KEY);
        bs.getName().add(new Name("Joe's bs", null));
        DigSigUtil ds = GetDigSig();
        bs = ds.signUddiEntity(bs);

        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);


        sb.getBusinessEntity().add(be);
        try {
View Full Code Here

        bs.setServiceKey(null);
        bs.getName().add(new Name("Joe's bs", null));
        DigSigUtil ds = GetDigSig();
        bs = ds.signUddiEntity(bs);

        be.setBusinessServices(new BusinessServices());
        be.getBusinessServices().getBusinessService().add(bs);


        sb.getBusinessEntity().add(be);
        try {
View Full Code Here

TOP

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

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.