Package com.ibm.wsdl

Examples of com.ibm.wsdl.ServiceImpl


//            }

            if (!abstractWSDL)
            {
                def.addBinding(binding);
                ServiceImpl service = (ServiceImpl) def.createService();
                service.setQName(wsdlQName);
               
                PortImpl port = (PortImpl) def.createPort();
                port.setName(wsdlQName.getLocalPart() + WSDL_PORT_SUFFIX);
                port.setBinding(binding);
                service.addPort(port);

                SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                soapAddress.setLocationURI(serviceLocation);
                port.addExtensibilityElement(soapAddress);
                def.addService(service);
View Full Code Here


            Map<QName, javax.wsdl.Service> services = getAllServices(wsdlInfo.getWSDLDefinition(), new ArrayList<String>());
            //If WSDL has more than one services we only add the service which has been specified by the user
            if (services.size() > 0) {
                Iterator iterator = services.values().iterator();
                while (iterator.hasNext()) {
                    ServiceImpl service = (ServiceImpl) iterator.next();
                    if (serviceName.equals(service.getQName().getLocalPart())) {
                        businessServiceInfo.setService(service);
                        businessService = createBusinessService(businessKey);
                    }
                }
            }
            try {
                UDDIUtil.publishBusinessService(businessService);
            } catch (RegistryException e) {
                log.error("Failed to publish business service: " + serviceName + " into UDDI");
            }
        }//If true: WSDL has been added from add WSDL UI
        else if (wsdlInfo != null) {
            Iterator iterator = getAllServices(wsdlInfo.getWSDLDefinition(), new ArrayList<String>()).values().iterator();
            while (iterator.hasNext()) {
                ServiceImpl service = (ServiceImpl) iterator.next();
                businessServiceInfo.setService(service);
                businessService = createBusinessService(businessKey);
                try {
                    UDDIUtil.publishBusinessService(businessService);
                } catch (RegistryException e) {
View Full Code Here

     * @return businessService object
     */
    private BusinessService createBusinessService(String businessKey) {
        BusinessService businessService = new BusinessService();
        businessService.setBusinessKey(businessKey);
        ServiceImpl service = businessServiceInfo.getService();

        if (businessServiceInfo.getServiceDescription() != null) {
            //set service description
            Description serviceDesc = new Description();
            serviceDesc.setLang(UDDIConstants.ENGLISH);
            serviceDesc.setValue(businessServiceInfo.getServiceDescription());
            businessService.getDescription().add(serviceDesc);
        }
        CategoryBag categoryBag = new CategoryBag();
        addKeyedReferenceToCategoryBag(categoryBag, "uddi:uddi.org:wsdl:types", "WSDL type",
                "service");
        if (service != null) {
            String serviceName = service.getQName().getLocalPart();
            String serviceNamespace = service.getQName().getNamespaceURI();

            Name name = new Name();
            name.setValue(serviceName);
            businessService.getName().add(name);
            Map<String, PortImpl> ports = service.getPorts();

            if (ports != null) {
                BindingTemplates bindingTemplates = new BindingTemplates();
                for (PortImpl port : ports.values()) {
                    BindingTemplate bindingTemplate = null;
View Full Code Here

            // def.addExtensibilityElement(elem);
            // }

            if (!abstractWSDL) {
                def.addBinding(binding);
                ServiceImpl service = (ServiceImpl) def.createService();
                service.setQName(wsdlQName);

                PortImpl port = (PortImpl) def.createPort();
                port.setName(wsdlQName.getLocalPart() + WSDL_PORT_SUFFIX);
                port.setBinding(binding);
                service.addPort(port);

                SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                soapAddress.setLocationURI(serviceLocation);
                port.addExtensibilityElement(soapAddress);
                def.addService(service);
View Full Code Here

            // def.addExtensibilityElement(elem);
            // }

            if (!abstractWSDL) {
                def.addBinding(binding);
                ServiceImpl service = (ServiceImpl) def.createService();
                service.setQName(wsdlQName);

                PortImpl port = (PortImpl) def.createPort();
                port.setName(wsdlQName.getLocalPart() + WSDL_PORT_SUFFIX);
                port.setBinding(binding);
                service.addPort(port);

                SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                soapAddress.setLocationURI(serviceLocation);
                port.addExtensibilityElement(soapAddress);
                def.addService(service);
View Full Code Here

TOP

Related Classes of com.ibm.wsdl.ServiceImpl

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.