Examples of SaveBinding


Examples of org.uddi.api_v3.SaveBinding

        public static SaveBinding MapSaveBinding(org.uddi.api_v2.SaveBinding body) {
                if (body == null) {
                        return null;
                }
                SaveBinding r = new SaveBinding();
                r.setAuthInfo(body.getAuthInfo());
                for (int i = 0; i < body.getBindingTemplate().size(); i++) {
                        r.getBindingTemplate().add(MapBinding(body.getBindingTemplate().get(i)));
                }
                return r;
        }
View Full Code Here

Examples of org.uddi.api_v3.SaveBinding

        DigSigUtil ds = GetDigSig();
        bt = ds.signUddiEntity(bt);
        bs.getBindingTemplates().getBindingTemplate().add(bt);

        try {
            SaveBinding sb1 = new SaveBinding();
            sb1.setAuthInfo(authInfoJoe);
            sb1.getBindingTemplate().add(bt);
            publication.saveBinding(sb1);
            Assert.fail("unexpected success");
        } catch (Exception ex) {
            logger.info("Expected failure: " + ex.getMessage());
        }
View Full Code Here

Examples of org.uddi.api_v3.SaveBinding

                                                throw new UnableToSignException(ex);
                                        }
                                }
                                break;
                }
                SaveBinding sb = new SaveBinding();
                sb.setAuthInfo(token);
                sb.getBindingTemplate().add(bt);

                BindingDetail saveBinding = uddiPublishService.saveBinding(sb);
                if (saveBinding.getBindingTemplate().isEmpty() || saveBinding.getBindingTemplate().size() > 1) {
                        throw new UnexpectedResponseException("The number of binding templates returned was unexpected, count=" + saveBinding.getBindingTemplate().size());
                }
View Full Code Here

Examples of org.uddi.api_v3.SaveBinding

        public BindingTemplate register(BindingTemplate binding, Node node) {

                BindingTemplate bindingTemplate = null;
                log.info("Registering bindingTemplate with key " + binding.getBindingKey());
                try {
                        SaveBinding saveBinding = new SaveBinding();
                        saveBinding.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                        saveBinding.getBindingTemplate().add(binding);
                        BindingDetail bindingDetail = getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).saveBinding(saveBinding);
                        bindingTemplate = bindingDetail.getBindingTemplate().get(0);
                        if (log.isDebugEnabled()) {
                                log.debug("Registering template binding " + bindingTemplate.getBindingKey() + " completed.");
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.